Skip to content

Commit a892adf

Browse files
committed
fixup! ASOAPI: add e2e test
1 parent f070378 commit a892adf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/e2e/azure_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,17 @@ var _ = Describe("Workload cluster creation", func() {
106106
Logf("Using existing cluster identity secret")
107107
}
108108

109-
asoSecretName := os.Getenv("ASO_CREDENTIAL_SECRET_NAME")
109+
asoSecretName := e2eConfig.GetVariable("ASO_CREDENTIAL_SECRET_NAME")
110110
asoSecret := &corev1.Secret{
111111
ObjectMeta: metav1.ObjectMeta{
112112
Namespace: namespace.Name,
113113
Name: asoSecretName,
114114
},
115115
StringData: map[string]string{
116-
config.AzureSubscriptionID: os.Getenv(AzureSubscriptionID),
117-
config.AzureTenantID: os.Getenv(AzureTenantID),
118-
config.AzureClientID: os.Getenv(AzureClientID),
119-
config.AuthMode: os.Getenv("ASO_CREDENTIAL_SECRET_MODE"),
116+
config.AzureSubscriptionID: e2eConfig.GetVariable(AzureSubscriptionID),
117+
config.AzureTenantID: e2eConfig.GetVariable(AzureTenantID),
118+
config.AzureClientID: e2eConfig.GetVariable(AzureClientID),
119+
config.AuthMode: e2eConfig.GetVariable("ASO_CREDENTIAL_SECRET_MODE"),
120120
},
121121
}
122122
err = bootstrapClusterProxy.GetClient().Create(ctx, asoSecret)

0 commit comments

Comments
 (0)