Skip to content

Commit

Permalink
auto-approve for test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwwillis committed Nov 5, 2023
1 parent 094b8be commit 39c8689
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/0002-plan-files-disabled.t
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ _t_plan_files_disabled_destroy () {
fi
}

# Test that plan files don't show up, but tfvars are used
# This tests that plan files don't show up,
# *and* that when using apply, tfvars are passed if you disable
# plan files. Requires use of -auto-approve to pass in CI.
# (if you aren't running in CI, use '-E APPLY_ARGS=()' to remove
# the -input=false option)
_t_plan_files_disabled_apply_tfvars () {
pwd

Expand All @@ -101,7 +105,7 @@ _t_plan_files_disabled_apply_tfvars () {
insert-value = "(this is from the tfvars file)"
EOTFFILE1

if $testsh_pwd/terraformsh -P apply
if $testsh_pwd/terraformsh -P apply -auto-approve
then

TERRAFORM_PWD="$(pwd)"
Expand Down

0 comments on commit 39c8689

Please sign in to comment.