Skip to content

Commit 58be59d

Browse files
Jordan-Williams2Jordan-Williams2
authored andcommitted
fix: vpe tests UNSKIP UPGRADE TESTS
1 parent 8e1ca2c commit 58be59d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

solutions/standard/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ locals {
233233
# if - replace first char with J
234234
# elseif _ replace first char with K
235235
# else use asis
236-
generated_admin_password = startswith(random_password.admin_password[0].result, "-") ? "J${substr(random_password.admin_password[0].result, 1, -1)}" : startswith(random_password.admin_password[0].result, "_") ? "K${substr(random_password.admin_password[0].result, 1, -1)}" : random_password.admin_password[0].result
236+
generated_admin_password = var.admin_pass == null ? (startswith(random_password.admin_password[0].result, "-") ? "J${substr(random_password.admin_password[0].result, 1, -1)}" : startswith(random_password.admin_password[0].result, "_") ? "K${substr(random_password.admin_password[0].result, 1, -1)}" : random_password.admin_password[0].result) : var.admin_pass
237237

238238
# admin password to use
239239
admin_pass = var.admin_pass == null ? local.generated_admin_password : var.admin_pass

tests/pr_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ func TestRunStandardUpgradeSolution(t *testing.T) {
187187
"kms_endpoint_type": "public",
188188
"provider_visibility": "public",
189189
"resource_group_name": options.Prefix,
190+
"admin_pass": options.Prefix,
190191
}
191192

192193
output, err := options.RunTestUpgrade()

0 commit comments

Comments
 (0)