Skip to content

Commit 3023774

Browse files
blink1073qingyang-hu
authored andcommitted
GODRIVER-2900 Fix handling of EC2 Instance Profile in EG Tests (#1328)
1 parent 828810e commit 3023774

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.evergreen/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,17 @@ functions:
715715
# balancer is not running.
716716
DRIVERS_TOOLS=${DRIVERS_TOOLS} MONGODB_URI=${MONGODB_URI} bash ${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh stop || echo "Ignoring load balancer stop error"
717717
718+
teardown-aws:
719+
- command: shell.exec
720+
params:
721+
shell: "bash"
722+
script: |
723+
cd "${DRIVERS_TOOLS}/.evergreen/auth_aws"
724+
if [ -f "./aws_e2e_setup.json" ]; then
725+
. ./activate-authawsvenv.sh
726+
python ./lib/aws_assign_instance_profile.py
727+
fi
728+
718729
add-aws-auth-variables-to-file:
719730
- command: shell.exec
720731
type: test
@@ -1215,6 +1226,7 @@ post:
12151226
- "src/go.mongodb.org/mongo-driver/*.suite"
12161227
- func: upload-mo-artifacts
12171228
- func: stop-load-balancer
1229+
- func: teardown-aws
12181230
- func: cleanup
12191231

12201232
tasks:

0 commit comments

Comments
 (0)