Skip to content

Commit

Permalink
Update tests to use new plan text
Browse files Browse the repository at this point in the history
  • Loading branch information
brikis98 committed Apr 23, 2021
1 parent 1380946 commit 3e5514e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/terraform/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func TestInitAndPlanWithPlanFile(t *testing.T) {
out, err := InitAndPlanE(t, options)
require.NoError(t, err)
assert.Contains(t, out, "1 to add, 0 to change, 0 to destroy.")
assert.Contains(t, out, fmt.Sprintf("This plan was saved to: %s", planFilePath))
assert.Contains(t, out, fmt.Sprintf("Saved the plan to: %s", planFilePath))
assert.FileExists(t, planFilePath, "Plan file was not saved to expected location:", planFilePath)
}

Expand Down
2 changes: 1 addition & 1 deletion modules/terraform/show_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestShowWithInlinePlan(t *testing.T) {
}

out := InitAndPlan(t, options)
require.Contains(t, out, fmt.Sprintf("This plan was saved to: %s", planFilePath))
require.Contains(t, out, fmt.Sprintf("Saved the plan to: %s", planFilePath))
require.FileExists(t, planFilePath, "Plan file was not saved to expected location:", planFilePath)

// show command does not accept Vars
Expand Down

0 comments on commit 3e5514e

Please sign in to comment.