@@ -18,6 +18,7 @@ import (
18
18
)
19
19
20
20
func TestExamplesStartup (t * testing.T ) {
21
+ t .Parallel ()
21
22
vars := map [string ]interface {}{
22
23
"client_id" : "" ,
23
24
"client_secret" : "" ,
@@ -45,6 +46,7 @@ func assertOutputNotEmpty(t *testing.T, output test_helper.TerraformOutput, name
45
46
}
46
47
47
48
func TestExamplesWithoutMonitor (t * testing.T ) {
49
+ t .Parallel ()
48
50
vars := make (map [string ]interface {}, 0 )
49
51
managedIdentityId := os .Getenv ("MSI_ID" )
50
52
if managedIdentityId != "" {
@@ -70,6 +72,7 @@ func TestExamplesWithoutMonitor(t *testing.T) {
70
72
}
71
73
72
74
func TestExamplesNamedCluster (t * testing.T ) {
75
+ t .Parallel ()
73
76
vars := make (map [string ]interface {})
74
77
managedIdentityId := os .Getenv ("MSI_ID" )
75
78
if managedIdentityId != "" {
@@ -97,13 +100,15 @@ func TestExamplesNamedCluster(t *testing.T) {
97
100
}
98
101
99
102
func TestExamplesWithoutAssertion (t * testing.T ) {
103
+ t .Parallel ()
100
104
examples := []string {
101
105
"examples/with_acr" ,
102
106
"examples/multiple_node_pools" ,
103
107
}
104
108
for _ , e := range examples {
105
109
example := e
106
110
t .Run (example , func (t * testing.T ) {
111
+ t .Parallel ()
107
112
test_helper .RunE2ETest (t , "../../" , example , terraform.Options {
108
113
Upgrade : true ,
109
114
}, nil )
@@ -112,6 +117,7 @@ func TestExamplesWithoutAssertion(t *testing.T) {
112
117
}
113
118
114
119
func TestExamples_differentLocationForLogAnalyticsSolution (t * testing.T ) {
120
+ t .Parallel ()
115
121
vars := make (map [string ]any , 0 )
116
122
managedIdentityId := os .Getenv ("MSI_ID" )
117
123
if managedIdentityId != "" {
@@ -127,6 +133,7 @@ func TestExamples_differentLocationForLogAnalyticsSolution(t *testing.T) {
127
133
}
128
134
129
135
func TestExamples_applicationGatewayIngress (t * testing.T ) {
136
+ t .Parallel ()
130
137
useExistingAppGw := []struct {
131
138
useBrownFieldAppGw bool
132
139
bringYourOwnVnet bool
@@ -150,6 +157,7 @@ func TestExamples_applicationGatewayIngress(t *testing.T) {
150
157
}
151
158
for _ , u := range useExistingAppGw {
152
159
t .Run (fmt .Sprintf ("useExistingAppGw %t %t %t" , u .bringYourOwnVnet , u .useBrownFieldAppGw , u .createRoleBindingForAppGw ), func (t * testing.T ) {
160
+ t .Parallel ()
153
161
test_helper .RunE2ETest (t , "../../" , "examples/application_gateway_ingress" , terraform.Options {
154
162
Upgrade : true ,
155
163
Vars : map [string ]interface {}{
@@ -178,6 +186,7 @@ func TestExamples_applicationGatewayIngress(t *testing.T) {
178
186
}
179
187
180
188
func TestExamplesForV4 (t * testing.T ) {
189
+ t .Parallel ()
181
190
examples , err := os .ReadDir ("../../examples" )
182
191
require .NoError (t , err )
183
192
for _ , example := range examples {
@@ -188,12 +197,7 @@ func TestExamplesForV4(t *testing.T) {
188
197
continue
189
198
}
190
199
t .Run (example .Name (), func (t * testing.T ) {
191
- managedIdentityId := os .Getenv ("MSI_ID" )
192
- if managedIdentityId != "" {
193
- t .Setenv ("TF_VAR_managed_identity_principal_id" , managedIdentityId )
194
- }
195
- t .Setenv ("TF_VAR_client_id" , "" )
196
- t .Setenv ("TF_VAR_client_secret" , "" )
200
+ t .Parallel ()
197
201
tmp , err := os .MkdirTemp ("" , "" )
198
202
require .NoError (t , err )
199
203
defer func () {
0 commit comments