Skip to content

Commit

Permalink
GODRIVER-2900 Fix handling of EC2 Instance Profile in EG Tests (#1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored and qingyang-hu committed Nov 8, 2023
1 parent 828810e commit 3023774
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,17 @@ functions:
# balancer is not running.
DRIVERS_TOOLS=${DRIVERS_TOOLS} MONGODB_URI=${MONGODB_URI} bash ${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh stop || echo "Ignoring load balancer stop error"
teardown-aws:
- command: shell.exec
params:
shell: "bash"
script: |
cd "${DRIVERS_TOOLS}/.evergreen/auth_aws"
if [ -f "./aws_e2e_setup.json" ]; then
. ./activate-authawsvenv.sh
python ./lib/aws_assign_instance_profile.py
fi
add-aws-auth-variables-to-file:
- command: shell.exec
type: test
Expand Down Expand Up @@ -1215,6 +1226,7 @@ post:
- "src/go.mongodb.org/mongo-driver/*.suite"
- func: upload-mo-artifacts
- func: stop-load-balancer
- func: teardown-aws
- func: cleanup

tasks:
Expand Down

0 comments on commit 3023774

Please sign in to comment.