Skip to content

Commit f98c135

Browse files
committed
fix test
1 parent d890def commit f98c135

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/pr_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func TestRunFullyConfigurableSolutionSchematics(t *testing.T) {
8181
options.TerraformVars = []testschematic.TestSchematicTerraformVar{
8282
{Name: "prefix", Value: options.Prefix, DataType: "string"},
8383
{Name: "ibmcloud_api_key", Value: options.RequiredEnvironmentVars["TF_VAR_ibmcloud_api_key"], DataType: "string", Secure: true},
84-
{Name: "postgresql_access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"},
84+
{Name: "access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"},
8585
{Name: "kms_encryption_enabled", Value: true, DataType: "bool"},
8686
{Name: "existing_kms_instance_crn", Value: permanentResources["hpcs_south_crn"], DataType: "string"},
8787
{Name: "existing_backup_kms_key_crn", Value: permanentResources["hpcs_south_root_key_crn"], DataType: "string"},
@@ -118,7 +118,7 @@ func TestRunSecurityEnforcedSolutionSchematics(t *testing.T) {
118118
options.TerraformVars = []testschematic.TestSchematicTerraformVar{
119119
{Name: "prefix", Value: options.Prefix, DataType: "string", Secure: true},
120120
{Name: "ibmcloud_api_key", Value: options.RequiredEnvironmentVars["TF_VAR_ibmcloud_api_key"], DataType: "string", Secure: true},
121-
{Name: "postgresql_access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"},
121+
{Name: "access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"},
122122
{Name: "existing_kms_instance_crn", Value: permanentResources["hpcs_south_crn"], DataType: "string"},
123123
{Name: "existing_backup_kms_key_crn", Value: permanentResources["hpcs_south_root_key_crn"], DataType: "string"},
124124
{Name: "postgresql_version", Value: "16", DataType: "string"}, // Always lock this test into the latest supported PostgresSQL version
@@ -143,7 +143,7 @@ func TestRunSecurityEnforcedUpgradeSolution(t *testing.T) {
143143

144144
options.TerraformVars = map[string]interface{}{
145145
"prefix": options.Prefix,
146-
"postgresql_access_tags": permanentResources["accessTags"],
146+
"access_tags": permanentResources["accessTags"],
147147
"existing_kms_instance_crn": permanentResources["hpcs_south_crn"],
148148
"existing_resource_group_name": resourceGroup,
149149
}
@@ -248,10 +248,10 @@ func TestRunExistingInstance(t *testing.T) {
248248
existingTerraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
249249
TerraformDir: tempTerraformDir + "/examples/basic",
250250
Vars: map[string]interface{}{
251-
"prefix": prefix,
252-
"region": region,
253-
"pg_version": latestVersion,
254-
"service_endpoints": "public-and-private",
251+
"prefix": prefix,
252+
"region": region,
253+
"postgresql_version": latestVersion,
254+
"service_endpoints": "public-and-private",
255255
},
256256
// Set Upgrade to true to ensure latest version of providers and modules are used by terratest.
257257
// This is the same as setting the -upgrade=true flag with terraform.

0 commit comments

Comments
 (0)