File tree 2 files changed +26
-0
lines changed
2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,19 @@ functions:
352
352
args :
353
353
- " ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-scope-test.sh"
354
354
355
+
356
+ " reset aws instance profile " :
357
+ - command : shell.exec
358
+ params :
359
+ shell : " bash"
360
+ script : |
361
+ ${PREPARE_SHELL}
362
+ cd "${DRIVERS_TOOLS}/.evergreen/auth_aws"
363
+ if [ -f "./aws_e2e_setup.json" ]; then
364
+ . ./activate-authawsvenv.sh
365
+ python ./lib/aws_assign_instance_profile.py
366
+ fi
367
+
355
368
" cleanup " :
356
369
- command : shell.exec
357
370
params :
@@ -1087,6 +1100,7 @@ pre:
1087
1100
- func : " make files executable"
1088
1101
1089
1102
post :
1103
+ - func : " reset aws instance profile"
1090
1104
- func : " upload test results"
1091
1105
- func : " upload coverage report"
1092
1106
- func : " cleanup"
Original file line number Diff line number Diff line change @@ -310,6 +310,17 @@ functions:
310
310
binary : bash
311
311
args :
312
312
- ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-scope-test.sh
313
+ reset aws instance profile :
314
+ - command : shell.exec
315
+ params :
316
+ shell : bash
317
+ script : |
318
+ ${PREPARE_SHELL}
319
+ cd "${DRIVERS_TOOLS}/.evergreen/auth_aws"
320
+ if [ -f "./aws_e2e_setup.json" ]; then
321
+ . ./activate-authawsvenv.sh
322
+ python ./lib/aws_assign_instance_profile.py
323
+ fi
313
324
cleanup :
314
325
- command : shell.exec
315
326
params :
@@ -3100,6 +3111,7 @@ pre:
3100
3111
- func : fix absolute paths
3101
3112
- func : make files executable
3102
3113
post :
3114
+ - func : reset aws instance profile
3103
3115
- func : upload test results
3104
3116
- func : upload coverage report
3105
3117
- func : cleanup
You can’t perform that action at this time.
0 commit comments