|
7 | 7 | from databricks.sql.auth.auth import get_python_sql_connector_auth_provider |
8 | 8 | from databricks.sql.auth.oauth import OAuthManager |
9 | 9 | from databricks.sql.auth.authenticators import DatabricksOAuthProvider |
10 | | -from databricks.sql.auth.endpoint import CloudType, AwsOAuthEndpointCollection, AzureOAuthEndpointCollection |
| 10 | +from databricks.sql.auth.endpoint import CloudType, InHouseOAuthEndpointCollection, AzureOAuthEndpointCollection |
11 | 11 | from databricks.sql.auth.authenticators import CredentialsProvider, HeaderFactory |
12 | 12 | from databricks.sql.experimental.oauth_persistence import OAuthPersistenceCache |
13 | 13 |
|
@@ -55,9 +55,10 @@ def test_oauth_auth_provider(self, mock_get_tokens, mock_check_and_refresh): |
55 | 55 | mock_get_tokens.return_value = (access_token, refresh_token) |
56 | 56 | mock_check_and_refresh.return_value = (access_token, refresh_token, False) |
57 | 57 |
|
58 | | - params = [(CloudType.AWS, "foo.cloud.databricks.com", AwsOAuthEndpointCollection, "offline_access sql"), |
| 58 | + params = [(CloudType.AWS, "foo.cloud.databricks.com", InHouseOAuthEndpointCollection, "offline_access sql"), |
59 | 59 | (CloudType.AZURE, "foo.1.azuredatabricks.net", AzureOAuthEndpointCollection, |
60 | | - f"{AzureOAuthEndpointCollection.DATATRICKS_AZURE_APP}/user_impersonation offline_access")] |
| 60 | + f"{AzureOAuthEndpointCollection.DATATRICKS_AZURE_APP}/user_impersonation offline_access"), |
| 61 | + (CloudType.GCP, "foo.gcp.databricks.com", InHouseOAuthEndpointCollection, "offline_access sql")] |
61 | 62 |
|
62 | 63 | for cloud_type, host, expected_endpoint_type, expected_scopes in params: |
63 | 64 | with self.subTest(cloud_type.value): |
|
0 commit comments