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