Debian Codegraph @

.evergreen/run-mongodb-aws-ecs-test.sh

raw
1 #!/bin/bash
2
3 set -o errexit # Exit the script with error if any of the commands fail
4
5 ############################################
6 # Main Program #
7 ############################################
8
9 if [[ -z "$1" ]]; then
10 echo "usage: $0 <MONGODB_URI>"
11 exit 1
12 fi
13 export MONGODB_URI="$1"
14
15 echo "Running MONGODB-AWS ECS authentication tests"
16
17 if echo "$MONGODB_URI" | grep -q "@"; then
18 echo "MONGODB_URI unexpectedly contains user credentials in ECS test!";
19 exit 1
20 fi
21
22 ./src/main