Skip to content

Commit 12ecd2b

Browse files
authored
acc: use really non existing subdomain (#3831)
https://non-existing-subdomain.databricks.com/ works now, that was not the intention.
1 parent d37fd28 commit 12ecd2b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

acceptance/auth/bundle_and_profile/.databrickscfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
host = $DATABRICKS_HOST
33

44
[profile_name]
5-
host = https://test@non-existing-subdomain.databricks.com
5+
host = https://test@non.existing.subdomain.databricks.com

acceptance/auth/bundle_and_profile/output.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
=== Inside the bundle, profile flag not matching bundle host. Should use profile from the flag and not the bundle.
1515
>>> errcode [CLI] current-user me -p profile_name
16-
Error: Credential was not sent or was of an unsupported type for this API. [ReqId: [UUID]]
16+
Error: Get "https://non.existing.subdomain.databricks.com/api/2.0/preview/scim/v2/Me": (redacted)
1717

1818
Exit code: 1
1919

2020
=== Inside the bundle, target and not matching profile
2121
>>> errcode [CLI] current-user me -t dev -p profile_name
22-
Error: cannot resolve bundle auth configuration: the host in the profile (https://non-existing-subdomain.databricks.com) doesn’t match the host configured in the bundle ([DATABRICKS_TARGET]). The profile "DEFAULT" has host="[DATABRICKS_TARGET]" that matches host in the bundle. To select it, pass "-p DEFAULT"
22+
Error: cannot resolve bundle auth configuration: the host in the profile (https://non.existing.subdomain.databricks.com) doesn’t match the host configured in the bundle ([DATABRICKS_TARGET]). The profile "DEFAULT" has host="[DATABRICKS_TARGET]" that matches host in the bundle. To select it, pass "-p DEFAULT"
2323

2424

2525
Exit code: 1
@@ -48,7 +48,7 @@ Validation OK!
4848

4949
=== Bundle commands load bundle configuration with -p flag, validation not OK (profile host don't match bundle host)
5050
>>> errcode [CLI] bundle validate -p profile_name
51-
Error: cannot resolve bundle auth configuration: the host in the profile (https://non-existing-subdomain.databricks.com) doesn’t match the host configured in the bundle ([DATABRICKS_TARGET]). The profile "DEFAULT" has host="[DATABRICKS_TARGET]" that matches host in the bundle. To select it, pass "-p DEFAULT"
51+
Error: cannot resolve bundle auth configuration: the host in the profile (https://non.existing.subdomain.databricks.com) doesn’t match the host configured in the bundle ([DATABRICKS_TARGET]). The profile "DEFAULT" has host="[DATABRICKS_TARGET]" that matches host in the bundle. To select it, pass "-p DEFAULT"
5252

5353
Name: test-auth
5454
Target: dev

acceptance/auth/bundle_and_profile/test.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Old='DATABRICKS_URL'
1010
New='DATABRICKS_TARGET'
1111

1212
[[Repls]]
13-
Old='Get "https://non-existing-subdomain.databricks.com/api/2.0/preview/scim/v2/Me": .*'
14-
New='Get "https://non-existing-subdomain.databricks.com/api/2.0/preview/scim/v2/Me": (redacted)'
13+
Old='Get "https://non.existing.subdomain.databricks.com/api/2.0/preview/scim/v2/Me": .*'
14+
New='Get "https://non.existing.subdomain.databricks.com/api/2.0/preview/scim/v2/Me": (redacted)'

0 commit comments

Comments
 (0)