PYTHON-3413 Ensure AWS EC2 Credential Test is Running Properly (#1048)

This commit is contained in:
Steven Silvester 2022-08-25 20:16:39 -05:00 committed by GitHub
parent 1575e53ef7
commit 0f135a157e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -643,6 +643,13 @@ functions:
working_dir: "src"
script: |
${PREPARE_SHELL}
if [ "${skip_EC2_auth_test}" = "true" ]; then
echo "This platform does not support the EC2 auth test, skipping..."
exit 0
fi
# Write an empty prepare_mongodb_aws so no auth environment variables
# are set.
echo "" > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
PYTHON_BINARY=${PYTHON_BINARY} ASSERT_NO_URI_CREDS=true .evergreen/run-mongodb-aws-test.sh
"run aws auth test with aws credentials as environment variables":