Skip to content

Commit dbaad75

Browse files
committed
Update tests for terraform json output format 1.1
1 parent 88cbe1a commit dbaad75

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/test-apply.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ jobs:
122122
exit 1
123123
fi
124124
125-
if [[ $(jq -r .format_version "${{ steps.apply.outputs.json_plan_path }}") != "1.0" ]]; then
125+
cat "${{ steps.apply.outputs.json_plan_path }}"
126+
if [[ $(jq -r .format_version "${{ steps.apply.outputs.json_plan_path }}") != "1.1" ]]; then
126127
echo "::error:: json_plan_path not set correctly"
127128
exit 1
128129
fi
@@ -226,7 +227,7 @@ jobs:
226227
exit 1
227228
fi
228229
229-
if [[ $(jq -r .format_version "${{ steps.second-apply.outputs.json_plan_path }}") != "1.0" ]]; then
230+
if [[ $(jq -r .format_version "${{ steps.second-apply.outputs.json_plan_path }}") != "1.1" ]]; then
230231
echo "::error:: json_plan_path not set correctly"
231232
exit 1
232233
fi
@@ -623,7 +624,8 @@ jobs:
623624
exit 1
624625
fi
625626
626-
if [[ $(jq -r .format_version "${{ steps.apply.outputs.json_plan_path }}") != "1.0" ]]; then
627+
cat "${{ steps.apply.outputs.json_plan_path }}"
628+
if [[ $(jq -r .format_version "${{ steps.apply.outputs.json_plan_path }}") != "1.1" ]]; then
627629
echo "::error:: json_plan_path not set correctly"
628630
exit 1
629631
fi

.github/workflows/test-plan.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
fi
3030
3131
cat '${{ steps.plan.outputs.json_plan_path }}'
32-
if [[ $(jq -r .format_version "${{ steps.plan.outputs.json_plan_path }}") != "1.0" ]]; then
32+
if [[ $(jq -r .format_version "${{ steps.plan.outputs.json_plan_path }}") != "1.1" ]]; then
3333
echo "::error:: json_plan_path not set correctly"
3434
exit 1
3535
fi
@@ -69,7 +69,7 @@ jobs:
6969
- name: Verify outputs
7070
run: |
7171
cat '${{ steps.plan.outputs.json_plan_path }}'
72-
if [[ $(jq -r .format_version "${{ steps.plan.outputs.json_plan_path }}") != "1.0" ]]; then
72+
if [[ $(jq -r .format_version "${{ steps.plan.outputs.json_plan_path }}") != "1.1" ]]; then
7373
echo "::error:: json_plan_path not set correctly"
7474
exit 1
7575
fi

0 commit comments

Comments
 (0)