@@ -143,11 +143,11 @@ func TestProviderValidate(t *testing.T) {
143143 cloud string // Optional field
144144 expectError bool
145145 }{
146- {"valid client_id + client_secret" , "clientID" , "clientSecret" , "vanityDomain" , "cloud " , false },
147- {"missing client_id" , "" , "clientSecret" , "vanityDomain" , "cloud " , true },
148- {"missing clientSecret" , "clientID" , "" , "vanityDomain" , "cloud " , true },
149- {"missing vanity domain" , "clientID" , "clientSecret" , "" , "cloud " , true },
150- {"valid client_id + client_secret without cloud " , "clientID" , "clientSecret" , "vanityDomain" , "" , false }, // Ensures cloud is optional
146+ {"valid client_id + client_secret" , "clientID" , "clientSecret" , "vanityDomain" , "zscaler_cloud " , false },
147+ {"missing client_id" , "" , "clientSecret" , "vanityDomain" , "zscaler_cloud " , true },
148+ {"missing clientSecret" , "clientID" , "" , "vanityDomain" , "zscaler_cloud " , true },
149+ {"missing vanity domain" , "clientID" , "clientSecret" , "" , "zscaler_cloud " , true },
150+ {"valid client_id + client_secret without zscaler_cloud " , "clientID" , "clientSecret" , "vanityDomain" , "" , false }, // Ensures cloud is optional
151151 }
152152
153153 // Execute each test case
@@ -162,7 +162,7 @@ func TestProviderValidate(t *testing.T) {
162162 resourceConfig ["client_secret" ] = test .clientSecret
163163 }
164164 if test .cloud != "" {
165- resourceConfig ["cloud " ] = test .cloud
165+ resourceConfig ["zscaler_cloud " ] = test .cloud
166166 }
167167
168168 config := terraform .NewResourceConfigRaw (resourceConfig )
0 commit comments