Skip to content

Commit 4ad6ba3

Browse files
authored
Replace bar.com with bar.test in tests (#5125)
bar.com is a real domain, so we have tests fetching databricks-config from it. It is also faster to use non-existing domain.
1 parent 4a6e12a commit 4ad6ba3

26 files changed

Lines changed: 121 additions & 121 deletions

File tree

acceptance/auth/bundle_and_profile/databricks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ targets:
1111
host: $DATABRICKS_HOST
1212
prod:
1313
workspace:
14-
host: https://bar.com
14+
host: https://bar.test

acceptance/auth/bundle_and_profile/output.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ Validation OK!
7373

7474
=== Bundle commands load bundle configuration with -t and -p flag, validation not OK (profile host don't match bundle host)
7575
>>> errcode [CLI] bundle validate -t prod -p DEFAULT
76-
Warn: [hostmetadata] failed to fetch host metadata for https://bar.com, will skip for 1m0s
77-
Error: cannot resolve bundle auth configuration: the host in the profile ([DATABRICKS_TARGET]) doesn’t match the host configured in the bundle (https://bar.com)
76+
Warn: [hostmetadata] failed to fetch host metadata for https://bar.test, will skip for 1m0s
77+
Error: cannot resolve bundle auth configuration: the host in the profile ([DATABRICKS_TARGET]) doesn’t match the host configured in the bundle (https://bar.test)
7878

7979
Name: test-auth
8080
Target: prod
8181
Workspace:
82-
Host: https://bar.com
82+
Host: https://bar.test
8383

8484
Found 1 error
8585

acceptance/bundle/artifacts/artifact_upload_for_workspace/databricks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resources:
1616
entry_point: "run"
1717
libraries:
1818
- whl: whl/*.whl
19-
- whl: /Workspace/Users/foo@bar.com/mywheel.whl
19+
- whl: /Workspace/Users/foo@bar.test/mywheel.whl
2020
- task_key: TestTask2
2121
for_each_task:
2222
inputs: "[1]"
@@ -28,11 +28,11 @@ resources:
2828
entry_point: "run"
2929
libraries:
3030
- whl: whl/*.whl
31-
- whl: /Workspace/Users/foo@bar.com/mywheel.whl
31+
- whl: /Workspace/Users/foo@bar.test/mywheel.whl
3232
environments:
3333
- environment_key: "test_env"
3434
spec:
3535
client: "1"
3636
dependencies:
3737
- whl/source.whl
38-
- /Workspace/Users/foo@bar.com/mywheel.whl
38+
- /Workspace/Users/foo@bar.test/mywheel.whl

acceptance/bundle/artifacts/artifact_upload_for_workspace/output.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Deployment complete!
1616
"whl": "/Workspace/foo/bar/artifacts/.internal/source.whl"
1717
},
1818
{
19-
"whl": "/Workspace/Users/foo@bar.com/mywheel.whl"
19+
"whl": "/Workspace/Users/foo@bar.test/mywheel.whl"
2020
}
2121
],
2222
"python_wheel_task": {
@@ -35,7 +35,7 @@ Deployment complete!
3535
"whl": "/Workspace/foo/bar/artifacts/.internal/source.whl"
3636
},
3737
{
38-
"whl": "/Workspace/Users/foo@bar.com/mywheel.whl"
38+
"whl": "/Workspace/Users/foo@bar.test/mywheel.whl"
3939
}
4040
],
4141
"python_wheel_task": {
@@ -63,7 +63,7 @@ Deployment complete!
6363
"client": "1",
6464
"dependencies": [
6565
"/Workspace/foo/bar/artifacts/.internal/source.whl",
66-
"/Workspace/Users/foo@bar.com/mywheel.whl"
66+
"/Workspace/Users/foo@bar.test/mywheel.whl"
6767
]
6868
}
6969
}

acceptance/bundle/artifacts/upload_multiple_libraries/databricks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ resources:
1616
entry_point: "run"
1717
libraries:
1818
- whl: whl/*.whl
19-
- whl: /Workspace/Users/foo@bar.com/mywheel.whl
19+
- whl: /Workspace/Users/foo@bar.test/mywheel.whl
2020
environments:
2121
- environment_key: "test_env"
2222
spec:
2323
client: "1"
2424
dependencies:
2525
- whl/*.whl
26-
- /Workspace/Users/foo@bar.com/mywheel.whl
26+
- /Workspace/Users/foo@bar.test/mywheel.whl

acceptance/bundle/artifacts/upload_multiple_libraries/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Deployment complete!
2828
"whl": "/Workspace/foo/bar/artifacts/.internal/source4.whl"
2929
},
3030
{
31-
"whl": "/Workspace/Users/foo@bar.com/mywheel.whl"
31+
"whl": "/Workspace/Users/foo@bar.test/mywheel.whl"
3232
}
3333
],
3434
"python_wheel_task": {
@@ -62,7 +62,7 @@ Deployment complete!
6262
"/Workspace/foo/bar/artifacts/.internal/source2.whl",
6363
"/Workspace/foo/bar/artifacts/.internal/source3.whl",
6464
"/Workspace/foo/bar/artifacts/.internal/source4.whl",
65-
"/Workspace/Users/foo@bar.com/mywheel.whl"
65+
"/Workspace/Users/foo@bar.test/mywheel.whl"
6666
]
6767
}
6868
}

acceptance/bundle/generate/app_subfolders/test.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Response.Body = '''
55
"app_id": "1234567890",
66
"name": "my_app",
77
"description": "This is a test app",
8-
"default_source_code_path": "/Workspace/Users/foo@bar.com/my_app"
8+
"default_source_code_path": "/Workspace/Users/foo@bar.test/my_app"
99
}
1010
'''
1111

@@ -15,7 +15,7 @@ Response.Body = '''
1515
{
1616
"objects": [
1717
{
18-
"path": "/Workspace/Users/foo@bar.com/my_app/sub/folder/1.py",
18+
"path": "/Workspace/Users/foo@bar.test/my_app/sub/folder/1.py",
1919
"object_type": "FILE"
2020
}
2121
]
@@ -25,7 +25,7 @@ Response.Body = '''
2525
Pattern = "GET /api/2.0/workspace/get-status"
2626
Response.Body = '''
2727
{
28-
"path": "/Workspace/Users/foo@bar.com/my_app/sub/folder/1.py",
28+
"path": "/Workspace/Users/foo@bar.test/my_app/sub/folder/1.py",
2929
"object_type": "FILE"
3030
}
3131
'''

acceptance/bundle/generate/git_job/out.job.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resources:
88
notebook_path: some/test/notebook.py
99
- task_key: test_task_2
1010
notebook_task:
11-
notebook_path: /Workspace/Users/foo@bar.com/some/test/notebook.py
11+
notebook_path: /Workspace/Users/foo@bar.test/some/test/notebook.py
1212
source: WORKSPACE
1313
git_source:
1414
git_branch: main

acceptance/bundle/generate/git_job/test.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Response.Body = '''
2222
"task_key": "test_task_2",
2323
"notebook_task": {
2424
"source": "WORKSPACE",
25-
"notebook_path": "/Workspace/Users/foo@bar.com/some/test/notebook.py"
25+
"notebook_path": "/Workspace/Users/foo@bar.test/some/test/notebook.py"
2626
}
2727
}
2828
]

acceptance/bundle/resources/jobs/delete_job/databricks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ resources:
1111
package_name: "whl"
1212
entry_point: "run"
1313
libraries:
14-
- whl: /Workspace/Users/foo@bar.com/mywheel.whl
14+
- whl: /Workspace/Users/foo@bar.test/mywheel.whl
1515
- task_key: TestTask2
1616
for_each_task:
1717
inputs: "[1]"
@@ -22,4 +22,4 @@ resources:
2222
package_name: "whl"
2323
entry_point: "run"
2424
libraries:
25-
- whl: /Workspace/Users/foo@bar.com/mywheel.whl
25+
- whl: /Workspace/Users/foo@bar.test/mywheel.whl

0 commit comments

Comments
 (0)