@@ -243,7 +243,7 @@ functions:
243243 "iam_auth_ec2_instance_profile" : "${iam_auth_ec2_instance_profile}"
244244 }
245245 EOF
246- run aws auth test with regular aws credentials :
246+ setup aws env :
247247 - command : shell.exec
248248 type : test
249249 params :
@@ -252,6 +252,14 @@ functions:
252252 ${PREPARE_SHELL}
253253 cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
254254 . ./activate_venv.sh
255+ cd -
256+ run aws auth test with regular aws credentials :
257+ - command : shell.exec
258+ type : test
259+ params :
260+ working_dir : src
261+ script : |
262+ cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
255263 ${MONGODB_BINARIES}/mongo aws_e2e_regular_aws.js
256264 - command : shell.exec
257265 type : test
@@ -329,6 +337,9 @@ functions:
329337 working_dir : src
330338 silent : true
331339 script : |
340+ cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
341+ ${MONGODB_BINARIES}/mongo --verbose aws_e2e_regular_aws.js
342+ cd -
332343 cat <<EOF > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
333344 export AWS_ACCESS_KEY_ID=${iam_auth_ecs_account}
334345 export AWS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
@@ -348,6 +359,9 @@ functions:
348359 working_dir : src
349360 silent : true
350361 script : |
362+ cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
363+ ${MONGODB_BINARIES}/mongo --verbose aws_e2e_assume_role.js
364+ cd -
351365 cat <<'EOF' > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
352366 export AWS_ACCESS_KEY_ID=$(jq -r '.AccessKeyId' ${DRIVERS_TOOLS}/.evergreen/auth_aws/creds.json)
353367 export AWS_SECRET_ACCESS_KEY=$(jq -r '.SecretAccessKey' ${DRIVERS_TOOLS}/.evergreen/auth_aws/creds.json)
@@ -387,7 +401,7 @@ functions:
387401
388402 cat setup.js
389403 . ./activate_venv.sh
390- mongo --nodb setup.js aws_e2e_ecs.js
404+ ${MONGODB_BINARIES}/ mongo --nodb setup.js aws_e2e_ecs.js
391405 run-ocsp-test :
392406 - command : shell.exec
393407 type : test
@@ -1377,7 +1391,7 @@ tasks:
13771391 - func : run-ocsp-test
13781392 vars :
13791393 OCSP_TLS_SHOULD_SUCCEED : 0
1380- - name : aws-latest-auth-test
1394+ - name : aws-latest-auth-test-run-aws-auth-test-with-regular-aws-credentials
13811395 commands :
13821396 - func : install dependencies
13831397 - func : bootstrap mongo-orchestration
@@ -1387,13 +1401,69 @@ tasks:
13871401 ORCHESTRATION_FILE : auth-aws.json
13881402 TOPOLOGY : server
13891403 - func : add aws auth variables to file
1404+ - func : setup aws env
13901405 - func : run aws auth test with regular aws credentials
1406+ - name : aws-latest-auth-test-run-aws-auth-test-with-assume-role-credentials
1407+ commands :
1408+ - func : install dependencies
1409+ - func : bootstrap mongo-orchestration
1410+ vars :
1411+ VERSION : latest
1412+ AUTH : auth
1413+ ORCHESTRATION_FILE : auth-aws.json
1414+ TOPOLOGY : server
1415+ - func : add aws auth variables to file
1416+ - func : setup aws env
13911417 - func : run aws auth test with assume role credentials
1418+ - name : aws-latest-auth-test-run-aws-auth-test-with-aws-EC2-credentials
1419+ commands :
1420+ - func : install dependencies
1421+ - func : bootstrap mongo-orchestration
1422+ vars :
1423+ VERSION : latest
1424+ AUTH : auth
1425+ ORCHESTRATION_FILE : auth-aws.json
1426+ TOPOLOGY : server
1427+ - func : add aws auth variables to file
1428+ - func : setup aws env
13921429 - func : run aws auth test with aws EC2 credentials
1430+ - name : aws-latest-auth-test-run-aws-auth-test-with-aws-credentials-as-environment-variables
1431+ commands :
1432+ - func : install dependencies
1433+ - func : bootstrap mongo-orchestration
1434+ vars :
1435+ VERSION : latest
1436+ AUTH : auth
1437+ ORCHESTRATION_FILE : auth-aws.json
1438+ TOPOLOGY : server
1439+ - func : add aws auth variables to file
1440+ - func : setup aws env
13931441 - func : run aws auth test with aws credentials as environment variables
1442+ - name : aws-latest-auth-test-run-aws-auth-test-with-aws-credentials-and-session-token-as-environment-variables
1443+ commands :
1444+ - func : install dependencies
1445+ - func : bootstrap mongo-orchestration
1446+ vars :
1447+ VERSION : latest
1448+ AUTH : auth
1449+ ORCHESTRATION_FILE : auth-aws.json
1450+ TOPOLOGY : server
1451+ - func : add aws auth variables to file
1452+ - func : setup aws env
13941453 - func : run aws auth test with aws credentials and session token as environment variables
1454+ - name : aws-latest-auth-test-run-aws-ECS-auth-test
1455+ commands :
1456+ - func : install dependencies
1457+ - func : bootstrap mongo-orchestration
1458+ vars :
1459+ VERSION : latest
1460+ AUTH : auth
1461+ ORCHESTRATION_FILE : auth-aws.json
1462+ TOPOLOGY : server
1463+ - func : add aws auth variables to file
1464+ - func : setup aws env
13951465 - func : run aws ECS auth test
1396- - name : aws-4.4-auth-test
1466+ - name : aws-4.4-auth-test-run-aws-auth-test-with-regular-aws-credentials
13971467 commands :
13981468 - func : install dependencies
13991469 - func : bootstrap mongo-orchestration
@@ -1403,11 +1473,67 @@ tasks:
14031473 ORCHESTRATION_FILE : auth-aws.json
14041474 TOPOLOGY : server
14051475 - func : add aws auth variables to file
1476+ - func : setup aws env
14061477 - func : run aws auth test with regular aws credentials
1478+ - name : aws-4.4-auth-test-run-aws-auth-test-with-assume-role-credentials
1479+ commands :
1480+ - func : install dependencies
1481+ - func : bootstrap mongo-orchestration
1482+ vars :
1483+ VERSION : ' 4.4'
1484+ AUTH : auth
1485+ ORCHESTRATION_FILE : auth-aws.json
1486+ TOPOLOGY : server
1487+ - func : add aws auth variables to file
1488+ - func : setup aws env
14071489 - func : run aws auth test with assume role credentials
1490+ - name : aws-4.4-auth-test-run-aws-auth-test-with-aws-EC2-credentials
1491+ commands :
1492+ - func : install dependencies
1493+ - func : bootstrap mongo-orchestration
1494+ vars :
1495+ VERSION : ' 4.4'
1496+ AUTH : auth
1497+ ORCHESTRATION_FILE : auth-aws.json
1498+ TOPOLOGY : server
1499+ - func : add aws auth variables to file
1500+ - func : setup aws env
14081501 - func : run aws auth test with aws EC2 credentials
1502+ - name : aws-4.4-auth-test-run-aws-auth-test-with-aws-credentials-as-environment-variables
1503+ commands :
1504+ - func : install dependencies
1505+ - func : bootstrap mongo-orchestration
1506+ vars :
1507+ VERSION : ' 4.4'
1508+ AUTH : auth
1509+ ORCHESTRATION_FILE : auth-aws.json
1510+ TOPOLOGY : server
1511+ - func : add aws auth variables to file
1512+ - func : setup aws env
14091513 - func : run aws auth test with aws credentials as environment variables
1514+ - name : aws-4.4-auth-test-run-aws-auth-test-with-aws-credentials-and-session-token-as-environment-variables
1515+ commands :
1516+ - func : install dependencies
1517+ - func : bootstrap mongo-orchestration
1518+ vars :
1519+ VERSION : ' 4.4'
1520+ AUTH : auth
1521+ ORCHESTRATION_FILE : auth-aws.json
1522+ TOPOLOGY : server
1523+ - func : add aws auth variables to file
1524+ - func : setup aws env
14101525 - func : run aws auth test with aws credentials and session token as environment variables
1526+ - name : aws-4.4-auth-test-run-aws-ECS-auth-test
1527+ commands :
1528+ - func : install dependencies
1529+ - func : bootstrap mongo-orchestration
1530+ vars :
1531+ VERSION : ' 4.4'
1532+ AUTH : auth
1533+ ORCHESTRATION_FILE : auth-aws.json
1534+ TOPOLOGY : server
1535+ - func : add aws auth variables to file
1536+ - func : setup aws env
14111537 - func : run aws ECS auth test
14121538 - name : run-checks
14131539 tags :
@@ -1994,5 +2120,15 @@ buildvariants:
19942120 expansions :
19952121 NODE_LTS_NAME : carbon
19962122 tasks :
1997- - aws-latest-auth-test
1998- - aws-4.4-auth-test
2123+ - aws-latest-auth-test-run-aws-auth-test-with-regular-aws-credentials
2124+ - aws-latest-auth-test-run-aws-auth-test-with-assume-role-credentials
2125+ - aws-latest-auth-test-run-aws-auth-test-with-aws-EC2-credentials
2126+ - aws-latest-auth-test-run-aws-auth-test-with-aws-credentials-as-environment-variables
2127+ - aws-latest-auth-test-run-aws-auth-test-with-aws-credentials-and-session-token-as-environment-variables
2128+ - aws-latest-auth-test-run-aws-ECS-auth-test
2129+ - aws-4.4-auth-test-run-aws-auth-test-with-regular-aws-credentials
2130+ - aws-4.4-auth-test-run-aws-auth-test-with-assume-role-credentials
2131+ - aws-4.4-auth-test-run-aws-auth-test-with-aws-EC2-credentials
2132+ - aws-4.4-auth-test-run-aws-auth-test-with-aws-credentials-as-environment-variables
2133+ - aws-4.4-auth-test-run-aws-auth-test-with-aws-credentials-and-session-token-as-environment-variables
2134+ - aws-4.4-auth-test-run-aws-ECS-auth-test
0 commit comments