Skip to content
44 changes: 7 additions & 37 deletions .github/workflows/test-failed-plan-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ jobs:
for file in ./tests/terraform/stacks/catalog/*.yaml; do
if [ -f "$file" ]; then
sed -i -e "s#__INFRACOST_ENABLED__#false#g" "$file"
sed -i -e "s#__STORAGE_REGION__#${{ env.AWS_REGION }}#g" "$file"
sed -i -e "s#__STORAGE_REGION__#${{ env.AWS_REGION }}#g" "$file"
sed -i -e "s#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g" "$file"
sed -i -e "s#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
id: metadata
run: |
set +e

test -d ./metadata
DIR_EXISTS=$?
echo "dir_exists=${DIR_EXISTS}" >> $GITHUB_OUTPUT
Expand All @@ -109,10 +109,10 @@ jobs:
test -f ./metadata/issue-description-plat-ue2-sandbox-foobar-fail.md
FILE_EXISTS=$?
echo "file_md_exists=${FILE_EXISTS}" >> $GITHUB_OUTPUT

echo "file_md=$(cat ./metadata/issue-description-plat-ue2-sandbox-foobar-fail.md | jq -Rs .)" >> $GITHUB_OUTPUT
echo "file_json=$(cat ./metadata/plat-ue2-sandbox-foobar-fail.metadata.json | jq -Rs . )" >> $GITHUB_OUTPUT

echo "file_json=$(cat ./metadata/plat-ue2-sandbox-foobar-fail.metadata.json | jq -Rs . )" >> $GITHUB_OUTPUT

- uses: nick-fields/assert-action@v2
with:
Expand Down Expand Up @@ -142,11 +142,10 @@ jobs:

- uses: nick-fields/assert-action@v2
with:
comparison: contains
comparison: contains
actual: |
${{ fromJSON(needs.test.outputs.summary) }}
expected: |

## Drift Detection Failed for `foobar-fail` in `plat-ue2-sandbox`!


Expand Down Expand Up @@ -185,35 +184,6 @@ jobs:
resource in this configuration you must instead obtain this result from an
attribute of that resource.

# Error

**Error:** subcommand exited with code 1
```





</details>







<details><summary>Metadata</summary>

```json
{
"component": "foobar-fail",
"stack": "plat-ue2-sandbox",
"componentPath": "tests/terraform/components/terraform/foobar",
"commitSHA": "${{ github.sha }}"
}
```
</details>

teardown:
runs-on: ubuntu-latest
needs: [assert]
Expand Down
Loading