Skip to content

Commit

Permalink
test change
Browse files Browse the repository at this point in the history
  • Loading branch information
id27182 committed Nov 8, 2024
1 parent 82111c0 commit a1f0b99
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test-tf-plan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ if (Test-Path $tfPlanPath) {
throw "`u{1F635} Unable to find terraform plan file. Please make sure that you saved terraform execution plan to the file and try again. "
}

Write-Output "Debug step"
# Convert execution plan to json
$tfPlanJsonPath = "tfPlan.json"
try {
# try {
terraform show -json $tfPlanPath
terraform show -json $tfPlanPath > $tfPlanJsonPath
} catch {
throw "`u{1F635} Unexpected error: unable to read terraform plan file. Please contact your course mentor. "
}
# } catch {
# throw "`u{1F635} Unexpected error: unable to read terraform plan file. Please contact your course mentor. "
# }

$plan = (Get-Content -Path $tfPlanJsonPath | ConvertFrom-Json)

Expand Down

0 comments on commit a1f0b99

Please sign in to comment.