Skip to content

Commit

Permalink
Re-enabling Client Secret auth for the acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Nov 2, 2018
1 parent 7de5019 commit 3a60e48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion azurerm/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,15 @@ func testGetAzureConfig(t *testing.T) *authentication.Config {

environment := testArmEnvironmentName()

// we deliberately don't use the main config - since we care about
builder := authentication.Builder{
SubscriptionID: os.Getenv("ARM_SUBSCRIPTION_ID"),
ClientID: os.Getenv("ARM_CLIENT_ID"),
TenantID: os.Getenv("ARM_TENANT_ID"),
ClientSecret: os.Getenv("ARM_CLIENT_SECRET"),
Environment: environment,

// we intentionally only support Client Secret auth for tests (since those variables are used all over)
SupportsClientSecretAuth: true,
}
config, err := builder.Build()
if err != nil {
Expand Down

0 comments on commit 3a60e48

Please sign in to comment.