From a1f0b9906e8010e06a0d415b7aa83c1eda7e1f44 Mon Sep 17 00:00:00 2001 From: Bohdan Mateiko Date: Fri, 8 Nov 2024 19:57:56 +0200 Subject: [PATCH] test change --- tests/test-tf-plan.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test-tf-plan.ps1 b/tests/test-tf-plan.ps1 index 983e3b0..faccfeb 100644 --- a/tests/test-tf-plan.ps1 +++ b/tests/test-tf-plan.ps1 @@ -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)