Debian Codegraph @

.evergreen/run-deployed-lambda-aws-tests.sh

raw
1 #!/bin/bash
2 #
3 set -o errexit # Exit the script with error if any of the commands fail.
4
5 source ${DRIVERS_TOOLS}/.evergreen/atlas/secrets-export.sh
6
7 VARLIST=(
8 AWS_REGION
9 DRIVERS_TOOLS
10 DRIVERS_ATLAS_PUBLIC_API_KEY
11 DRIVERS_ATLAS_PRIVATE_API_KEY
12 DRIVERS_ATLAS_LAMBDA_USER
13 DRIVERS_ATLAS_LAMBDA_PASSWORD
14 DRIVERS_ATLAS_GROUP_ID
15 LAMBDA_STACK_NAME
16 PROJECT_DIRECTORY
17 TEST_LAMBDA_DIRECTORY
18 )
19
20 # Ensure that all variables required to run the test are set, otherwise throw
21 # an error.
22 for VARNAME in ${VARLIST[*]}; do
23 [[ -z "${!VARNAME}" ]] && echo "ERROR: $VARNAME not set" && exit 1;
24 done
25
26 echo "Starting deployment"
27 . ${DRIVERS_TOOLS}/.evergreen/aws_lambda/run-deployed-lambda-aws-tests.sh