You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use same logic as Go SDK for DatabricksConfig.isAzure() (#174)
## Changes
The current isAzure() logic only checks if ".azuredatabricks." is
contained in the hostname, which fails for workspaces in other Azure
environments. This PR copies the logic directly from the Go SDK:
https://github.com/databricks/databricks-sdk-go/blob/main/config/config.go#L142
## Tests
- [x] Some unit tests ensuring that isAzure() returns the right values
for various hosts, including AWS, Azure public, Azure US Gov, and Azure
China.
Copy file name to clipboardExpand all lines: databricks-sdk-java/src/test/java/com/databricks/sdk/core/oauth/AzureServicePrincipalCredentialsProviderTest.java
0 commit comments