From 0763feb80b48a7ec1494d1fdd42542e6ca8833b8 Mon Sep 17 00:00:00 2001 From: Bohdan Mateiko Date: Fri, 8 Nov 2024 20:14:51 +0200 Subject: [PATCH] test change --- tests/test-tf-plan.ps1 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/test-tf-plan.ps1 b/tests/test-tf-plan.ps1 index a7a4d16..5d114ed 100644 --- a/tests/test-tf-plan.ps1 +++ b/tests/test-tf-plan.ps1 @@ -9,15 +9,19 @@ if (Test-Path $tfPlanPath) { # Convert execution plan to json $tfPlanJsonPath = "tfPlan.json" -try { +# try { + Write-Output "Runnint terraform init..." terraform init + Write-Output "Runnint terraform show..." 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) +Write-Output "Readinig execution plan..." Get-Content -Path $tfPlanJsonPath $plan