Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamengual committed Oct 20, 2024
1 parent 5733b2b commit e5fbce8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ 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_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_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g' "$file"
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' "$file"
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' "$file"
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_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_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g" "$file"
sed -i -e "s#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
sed -i -e "s#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
fi
done
cat ./tests/terraform/stacks/catalog/foobar.yaml
Expand Down
2 changes: 1 addition & 1 deletion tests/terraform/stacks/catalog/foobar-changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ components:
plan-repository-type: aws
blob-account-name:
blob-container-name:
metadata-repository-type: dynamodb
metadata-repository-type: dynamo
cosmos-container-name:
cosmos-database-name:
cosmos-endpoint:
Expand Down
2 changes: 1 addition & 1 deletion tests/terraform/stacks/catalog/foobar-disabled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ components:
plan-repository-type: aws
blob-account-name:
blob-container-name:
metadata-repository-type: dynamodb
metadata-repository-type: dynamo
cosmos-container-name:
cosmos-database-name:
cosmos-endpoint:
Expand Down
2 changes: 1 addition & 1 deletion tests/terraform/stacks/catalog/foobar-fail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ components:
plan-repository-type: aws
blob-account-name:
blob-container-name:
metadata-repository-type: dynamodb
metadata-repository-type: dynamo
cosmos-container-name:
cosmos-database-name:
cosmos-endpoint:
Expand Down
2 changes: 1 addition & 1 deletion tests/terraform/stacks/catalog/foobar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ components:
plan-repository-type: aws
blob-account-name:
blob-container-name:
metadata-repository-type: dynamodb
metadata-repository-type: dynamo
cosmos-container-name:
cosmos-database-name:
cosmos-endpoint:
Expand Down

0 comments on commit e5fbce8

Please sign in to comment.