Skip to content

Commit

Permalink
validate in examples/complete (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocode authored Nov 29, 2021
1 parent 5b96043 commit 4bb088d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/terraform/validate.bats
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ function teardown() {
@test "check if terraform code is valid" {
skip_unless_terraform
if [[ "`terraform version | head -1`" =~ 0\.11 ]]; then
run terraform validate -check-variables=false
run terraform validate -chdir=examples/complete -check-variables=false
[ $status -eq 0 ]
[ -z "$output" ]
else
export AWS_DEFAULT_REGION="us-east-2"
run terraform validate .
run terraform validate -chdir=examples/complete .
log_on_error "$status" "$output"
fi
}

0 comments on commit 4bb088d

Please sign in to comment.