We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2679730 + f6535af commit 43b8486Copy full SHA for 43b8486
exp/controllers/azuremachinepoolmachine_controller_test.go
@@ -18,9 +18,12 @@ package controllers
18
19
import (
20
"context"
21
+ "os"
22
"testing"
23
"time"
24
25
+ "github.com/Azure/go-autorest/autorest/azure/auth"
26
+
27
"github.com/golang/mock/gomock"
28
. "github.com/onsi/gomega"
29
corev1 "k8s.io/api/core/v1"
@@ -73,6 +76,10 @@ func TestAzureMachinePoolMachineReconciler_Reconcile(t *testing.T) {
73
76
},
74
77
}
75
78
79
+ os.Setenv(auth.ClientID, "fooClient")
80
+ os.Setenv(auth.ClientSecret, "fooSecret")
81
+ os.Setenv(auth.TenantID, "fooTenant")
82
83
for _, c := range cases {
84
t.Run(c.Name, func(t *testing.T) {
85
var (
0 commit comments