Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6dd2f05

Browse files
committed
Update unit test
Signed-off-by: Jacky Hu <jacky.hu@databricks.com>
1 parent508faf1 commit6dd2f05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎tests/unit/test_auth.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_oauth_auth_provider(self, mock_get_tokens, mock_check_and_refresh):
5757

5858
params= [(CloudType.AWS,"foo.cloud.databricks.com",AwsOAuthEndpointCollection,"offline_access sql"),
5959
(CloudType.AZURE,"foo.1.azuredatabricks.net",AzureOAuthEndpointCollection,
60-
f"{AzureOAuthEndpointCollection.DATATRICKS_AZURE_TENANT_ID}/user_impersonation offline_access")]
60+
f"{AzureOAuthEndpointCollection.DATATRICKS_AZURE_APP}/user_impersonation offline_access")]
6161

6262
forcloud_type,host,expected_endpoint_type,expected_scopesinparams:
6363
withself.subTest(cloud_type.value):

‎tests/unit/test_endpoint.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_infer_cloud_from_host(self):
2323
deftest_oauth_endpoint(self):
2424
scopes= ["offline_access","sql","admin"]
2525
scopes2= ["sql","admin"]
26-
azure_scope=f"{AzureOAuthEndpointCollection.DATATRICKS_AZURE_TENANT_ID}/user_impersonation"
26+
azure_scope=f"{AzureOAuthEndpointCollection.DATATRICKS_AZURE_APP}/user_impersonation"
2727

2828
param_list= [(CloudType.AWS,
2929
aws_host,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp