Skip to content

Commit 52a79e6

Browse files
authored
fix: add workaround for the subnet available error (#11)
1 parent 89e59de commit 52a79e6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/pr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestRunUpgradeFullyConfigurable(t *testing.T) {
120120
t.Parallel()
121121

122122
// Provision existing resources first
123-
prefix := fmt.Sprintf("pp-existing-%s", strings.ToLower(random.UniqueId()))
123+
prefix := fmt.Sprintf("pp-upg-%s", strings.ToLower(random.UniqueId()))
124124
existingTerraformOptions := setupTerraform(t, prefix, "./resources")
125125

126126
options := testschematic.TestSchematicOptionsDefault(&testschematic.TestSchematicOptions{

tests/scripts/pre-validation-private-path-vpc.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ TF_VARS_FILE="terraform.tfvars"
2626
} >>${TF_VARS_FILE}
2727
terraform apply -input=false -auto-approve -var-file=${TF_VARS_FILE} || exit 1
2828

29+
sleep 120 # temp workaround for this error: `Please make sure to use an existing subnet with ''available'' status.'`
30+
2931
resource_group_name_var_name="existing_resource_group_name"
3032
resource_group_name_var_value=$(terraform output -state=terraform.tfstate -raw resource_group_name)
3133
existing_subnet_id_var_name="existing_subnet_id"

0 commit comments

Comments
 (0)