@@ -25,7 +25,7 @@ import (
2525)
2626
2727const fullyConfigurableSolutionTerraformDir = "solutions/fully-configurable"
28- const securityEnforcedTerraformDir = "solutions/security-enforced"
28+ const securityEnforcedSolutionTerraformDir = "solutions/security-enforced"
2929const latestVersion = "8.0"
3030
3131// Use existing resource group
@@ -66,8 +66,8 @@ func TestRunFullyConfigurableSolutionSchematics(t *testing.T) {
6666 Testing : t ,
6767 TarIncludePatterns : []string {
6868 "*.tf" ,
69- fmt . Sprintf ( "%s /*.tf", fullyConfigurableSolutionTerraformDir ) ,
70- fmt . Sprintf ( "%s /*.sh", "scripts" ) ,
69+ fullyConfigurableSolutionTerraformDir + " /*.tf" ,
70+ "scripts /*.sh" ,
7171 },
7272 TemplateFolder : fullyConfigurableSolutionTerraformDir ,
7373 BestRegionYAMLPath : regionSelectionPath ,
@@ -131,11 +131,11 @@ func TestRunSecurityEnforcedSolutionSchematics(t *testing.T) {
131131 Testing : t ,
132132 TarIncludePatterns : []string {
133133 "*.tf" ,
134- fmt . Sprintf ( "%s /*.tf", securityEnforcedTerraformDir ) ,
135- fmt . Sprintf ( "%s /*.tf", fullyConfigurableSolutionTerraformDir ) ,
136- fmt . Sprintf ( "%s /*.sh", "scripts" ) ,
134+ fullyConfigurableSolutionTerraformDir + " /*.tf" ,
135+ securityEnforcedSolutionTerraformDir + " /*.tf" ,
136+ "scripts /*.sh" ,
137137 },
138- TemplateFolder : securityEnforcedTerraformDir ,
138+ TemplateFolder : securityEnforcedSolutionTerraformDir ,
139139 BestRegionYAMLPath : regionSelectionPath ,
140140 Prefix : prefix ,
141141 // ResourceGroup: resourceGroup,
@@ -199,10 +199,11 @@ func TestRunSecurityEnforcedUpgradeSolution(t *testing.T) {
199199 Testing : t ,
200200 TarIncludePatterns : []string {
201201 "*.tf" ,
202- fmt .Sprintf ("%s/*.tf" , securityEnforcedTerraformDir ),
203- fmt .Sprintf ("%s/*.sh" , "scripts" ),
202+ fullyConfigurableSolutionTerraformDir + "/*.tf" ,
203+ securityEnforcedSolutionTerraformDir + "/*.tf" ,
204+ "scripts/*.sh" ,
204205 },
205- TemplateFolder : securityEnforcedTerraformDir ,
206+ TemplateFolder : securityEnforcedSolutionTerraformDir ,
206207 BestRegionYAMLPath : regionSelectionPath ,
207208 Prefix : "mysql-upg" ,
208209 // ResourceGroup: resourceGroup,
@@ -242,7 +243,6 @@ func TestRunSecurityEnforcedUpgradeSolution(t *testing.T) {
242243 {Name : "prefix" , Value : options .Prefix , DataType : "string" },
243244 {Name : "access_tags" , Value : permanentResources ["accessTags" ], DataType : "list(string)" },
244245 {Name : "existing_kms_instance_crn" , Value : permanentResources ["hpcs_south_crn" ], DataType : "string" },
245- {Name : "existing_backup_kms_key_crn" , Value : permanentResources ["hpcs_south_root_key_crn" ], DataType : "string" },
246246 {Name : "existing_resource_group_name" , Value : resourceGroup , DataType : "string" },
247247 {Name : "mysql_version" , Value : "8.0" , DataType : "string" }, // Always lock this test into the latest supported MySQL version
248248 {Name : "existing_secrets_manager_instance_crn" , Value : permanentResources ["secretsManagerCRN" ], DataType : "string" },
@@ -399,8 +399,8 @@ func TestRunExistingInstance(t *testing.T) {
399399 Testing : t ,
400400 TarIncludePatterns : []string {
401401 "*.tf" ,
402- fmt . Sprintf ( "%s /*.tf", fullyConfigurableSolutionTerraformDir ) ,
403- fmt . Sprintf ( "%s /*.sh", "scripts" ) ,
402+ fullyConfigurableSolutionTerraformDir + " /*.tf" ,
403+ "scripts /*.sh" ,
404404 },
405405 TemplateFolder : fullyConfigurableSolutionTerraformDir ,
406406 BestRegionYAMLPath : regionSelectionPath ,
0 commit comments