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

Commite9de21a

Browse files
committed
minor
1 parent2e12935 commite9de21a

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

‎tests/token_federation/github_oidc_test.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python3
2-
31
"""
42
Test script for Databricks SQL token federation with GitHub Actions OIDC tokens.
53

‎tests/unit/test_token_federation.py‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
#!/usr/bin/env python3
2-
3-
"""
4-
Unit tests for token federation functionality in the Databricks SQL connector.
5-
"""
6-
71
importpytest
82
fromunittest.mockimportMagicMock,patch
93
fromdatetimeimportdatetime,timezone,timedelta
@@ -134,7 +128,7 @@ def mock_discover_token_endpoint(self):
134128
withpatch(
135129
"databricks.sql.auth.oidc_utils.OIDCDiscoveryUtil.discover_token_endpoint"
136130
)asmock:
137-
mock.return_value="https://databricks.com/token"
131+
mock.return_value="https://databricks.com/oidc/v1/token"
138132
yieldmock
139133

140134
@pytest.fixture
@@ -375,7 +369,7 @@ def test_exchange_token(
375369
mock_request_post.return_value=mock_response
376370

377371
# Set the token endpoint
378-
federation_provider.token_endpoint="https://databricks.com/token"
372+
federation_provider.token_endpoint="https://databricks.com/oidc/v1/token"
379373

380374
# Call the method
381375
token=federation_provider._exchange_token("original_token")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp