@@ -18,6 +18,7 @@ import (
1818)
1919
2020func TestExamplesStartup (t * testing.T ) {
21+ t .Parallel ()
2122 vars := map [string ]interface {}{
2223 "client_id" : "" ,
2324 "client_secret" : "" ,
@@ -45,6 +46,7 @@ func assertOutputNotEmpty(t *testing.T, output test_helper.TerraformOutput, name
4546}
4647
4748func TestExamplesWithoutMonitor (t * testing.T ) {
49+ t .Parallel ()
4850 vars := make (map [string ]interface {}, 0 )
4951 managedIdentityId := os .Getenv ("MSI_ID" )
5052 if managedIdentityId != "" {
@@ -70,6 +72,7 @@ func TestExamplesWithoutMonitor(t *testing.T) {
7072}
7173
7274func TestExamplesNamedCluster (t * testing.T ) {
75+ t .Parallel ()
7376 vars := make (map [string ]interface {})
7477 managedIdentityId := os .Getenv ("MSI_ID" )
7578 if managedIdentityId != "" {
@@ -97,13 +100,15 @@ func TestExamplesNamedCluster(t *testing.T) {
97100}
98101
99102func TestExamplesWithoutAssertion (t * testing.T ) {
103+ t .Parallel ()
100104 examples := []string {
101105 "examples/with_acr" ,
102106 "examples/multiple_node_pools" ,
103107 }
104108 for _ , e := range examples {
105109 example := e
106110 t .Run (example , func (t * testing.T ) {
111+ t .Parallel ()
107112 test_helper .RunE2ETest (t , "../../" , example , terraform.Options {
108113 Upgrade : true ,
109114 }, nil )
@@ -112,6 +117,7 @@ func TestExamplesWithoutAssertion(t *testing.T) {
112117}
113118
114119func TestExamples_differentLocationForLogAnalyticsSolution (t * testing.T ) {
120+ t .Parallel ()
115121 vars := make (map [string ]any , 0 )
116122 managedIdentityId := os .Getenv ("MSI_ID" )
117123 if managedIdentityId != "" {
@@ -127,6 +133,7 @@ func TestExamples_differentLocationForLogAnalyticsSolution(t *testing.T) {
127133}
128134
129135func TestExamples_applicationGatewayIngress (t * testing.T ) {
136+ t .Parallel ()
130137 useExistingAppGw := []struct {
131138 useBrownFieldAppGw bool
132139 bringYourOwnVnet bool
@@ -150,6 +157,7 @@ func TestExamples_applicationGatewayIngress(t *testing.T) {
150157 }
151158 for _ , u := range useExistingAppGw {
152159 t .Run (fmt .Sprintf ("useExistingAppGw %t %t %t" , u .bringYourOwnVnet , u .useBrownFieldAppGw , u .createRoleBindingForAppGw ), func (t * testing.T ) {
160+ t .Parallel ()
153161 test_helper .RunE2ETest (t , "../../" , "examples/application_gateway_ingress" , terraform.Options {
154162 Upgrade : true ,
155163 Vars : map [string ]interface {}{
@@ -178,6 +186,7 @@ func TestExamples_applicationGatewayIngress(t *testing.T) {
178186}
179187
180188func TestExamplesForV4 (t * testing.T ) {
189+ t .Parallel ()
181190 examples , err := os .ReadDir ("../../examples" )
182191 require .NoError (t , err )
183192 for _ , example := range examples {
@@ -188,12 +197,7 @@ func TestExamplesForV4(t *testing.T) {
188197 continue
189198 }
190199 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 ()
197201 tmp , err := os .MkdirTemp ("" , "" )
198202 require .NoError (t , err )
199203 defer func () {
0 commit comments