PYTHON-2445 Use new setup script for MONGODB-AWS testing

(cherry picked from commit 7ca1efda43)
This commit is contained in:
Shane Harvey 2021-01-28 12:58:48 -08:00
parent 44c1b0da9c
commit d69da74eb6

View File

@ -463,6 +463,7 @@ functions:
script: |
${PREPARE_SHELL}
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
mongo aws_e2e_regular_aws.js
- command: shell.exec
type: test
@ -491,15 +492,8 @@ functions:
working_dir: "src"
script: |
${PREPARE_SHELL}
# The aws_e2e_assume_role script requires python3 with boto3.
virtualenv -p ${python3_binary} mongovenv
if [ "Windows_NT" = "$OS" ]; then
. mongovenv/Scripts/activate
else
. mongovenv/bin/activate
fi
pip install --upgrade boto3
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
mongo aws_e2e_assume_role.js
- command: shell.exec
type: test
@ -538,13 +532,8 @@ functions:
echo "This platform does not support the EC2 auth test, skipping..."
exit 0
fi
# The mongovenv was created earlier in "run aws auth test with assume role credentials".
if [ "Windows_NT" = "$OS" ]; then
. mongovenv/Scripts/activate
else
. mongovenv/bin/activate
fi
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
mongo aws_e2e_ec2.js
- command: shell.exec
type: test
@ -607,13 +596,8 @@ functions:
echo "This platform does not support the ECS auth test, skipping..."
exit 0
fi
# The mongovenv was created earlier in "run aws auth test with assume role credentials".
if [ "Windows_NT" = "$OS" ]; then
. mongovenv/Scripts/activate
else
. mongovenv/bin/activate
fi
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
cat <<EOF > setup.js
const mongo_binaries = "$MONGODB_BINARIES";
const project_dir = "$PROJECT_DIRECTORY";