-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactored jobrunner (#67)
* refactored jobrunner * removed non relevant file * removed commented code * Updated with review comments
- Loading branch information
1 parent
179e999
commit f3f43e3
Showing
10 changed files
with
476 additions
and
1,104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
STACK_NAME="token-vending-machine-integ" | ||
|
||
LAMBDA_FUNCTION_NAME=$(aws cloudformation describe-stacks --stack-name $STACK_NAME --query "Stacks[0].Outputs[?OutputKey=='TVMTestFunctionName'].OutputValue" --output text) | ||
|
||
TEMP_FILE=$(mktemp) | ||
|
||
aws lambda invoke --function-name $LAMBDA_FUNCTION_NAME --payload "{}" $TEMP_FILE | ||
|
||
RESPONSE_VALUE=$(cat $TEMP_FILE | jq -r '.statusCode') | ||
|
||
rm $TEMP_FILE | ||
|
||
echo "Response code: $RESPONSE_VALUE" | ||
|
||
# Check the contents of the response | ||
if [[ "$RESPONSE_VALUE" == "200" ]]; then | ||
echo "Token vending machine tests passed successfully!" | ||
exit 0 | ||
else | ||
echo "Token vending machine tests failed!" | ||
exit 1 | ||
fi |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.