Skip to content

Commit

Permalink
Fix integration tests (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronMoat authored Sep 22, 2024
1 parent d8610b3 commit eab3a24
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/test-template.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash

set -e

Expand Down Expand Up @@ -79,8 +79,9 @@ pnpm exec skuba --version
set +e
echo "--- pnpm build ${template}"
output=$(pnpm build 2>&1)
echo $output
if [[ $? -ne 0 && $output != *"Command \"build\" not found"* ]]; then
result=$?
echo "$output"
if [[ $result -ne 0 && $output != *"Command \"build\" not found"* ]]; then
exit 1
fi
set -e
Expand All @@ -96,7 +97,7 @@ if [ "$update_snapshot" = true ]; then
pnpm test -- --updateSnapshot
cd ../../skuba || exit 1
bash ./scripts/update-template-snapshot.sh ${skuba_temp_directory} ${template}
else
else
echo "--- pnpm test ${template}"
pnpm test
pnpm test
fi
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ exports[`returns expected CloudFormation stack for dev 1`] = `
],
],
},
"Tags": [
{
"Key": "aws-codedeploy-hooks",
"Value": "x.x.x-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
},
],
},
"Type": "AWS::Lambda::EventSourceMapping",
},
Expand Down Expand Up @@ -1007,6 +1013,12 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
],
],
},
"Tags": [
{
"Key": "aws-codedeploy-hooks",
"Value": "x.x.x-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
},
],
},
"Type": "AWS::Lambda::EventSourceMapping",
},
Expand Down

0 comments on commit eab3a24

Please sign in to comment.