Skip to content

Commit 76883d5

Browse files
authored
tests: set CheckApplyResultForUpgrade: true (#369)
1 parent 86446b6 commit 76883d5

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tests/pr_test.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ Common setup options
2121
*/
2222
func setupOptions(t *testing.T, prefix string, dir string) *testschematic.TestSchematicOptions {
2323
options := testschematic.TestSchematicOptionsDefault(&testschematic.TestSchematicOptions{
24-
Testing: t,
25-
TarIncludePatterns: []string{"*.tf", fmt.Sprintf("%s/*.tf", solutionDir)},
26-
TemplateFolder: solutionDir,
27-
Prefix: prefix,
28-
Tags: tags,
29-
DeleteWorkspaceOnFail: false,
30-
WaitJobCompleteMinutes: 30,
31-
TerraformVersion: terraformVersion,
24+
Testing: t,
25+
TarIncludePatterns: []string{"*.tf", fmt.Sprintf("%s/*.tf", solutionDir)},
26+
TemplateFolder: solutionDir,
27+
Prefix: prefix,
28+
Tags: tags,
29+
DeleteWorkspaceOnFail: false,
30+
WaitJobCompleteMinutes: 30,
31+
TerraformVersion: terraformVersion,
32+
CheckApplyResultForUpgrade: true, // Set to true to test the actual terraform apply upgrade
3233
})
3334

3435
options.TerraformVars = []testschematic.TestSchematicTerraformVar{

0 commit comments

Comments
 (0)