-
Notifications
You must be signed in to change notification settings - Fork 66
~/.databrickscfg is loaded even when direct config has precedence #304
Copy link
Copy link
Closed
Labels
bugThe issue is a bug.The issue is a bug.
Description
steps to reproduce:
- direct host & az resource ID
- configuration file with DEFAULT profile with
token+host - expected: azure CLI working for that host
- happens:
validate: more than one authorization method configured: azure and paterror
this issue blocks databricks/terraform-provider-databricks#1848
func TestConfig_AzureCliHostAndResourceID(t *testing.T) {
p, _ := filepath.Abs("../common/testdata")
providerFixture{
// omit request to management endpoint to get workspace properties
azureResourceID: azResourceID,
host: "x",
env: map[string]string{
// these may fail on windows. use docker container for testing.
"PATH": p,
"HOME": p,
},
assertAzure: true,
assertHost: "https://x",
assertAuth: "azure-cli",
}.apply(t)
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThe issue is a bug.The issue is a bug.