@@ -243,7 +243,7 @@ functions:
243
243
"iam_auth_ec2_instance_profile" : "${iam_auth_ec2_instance_profile}"
244
244
}
245
245
EOF
246
- run aws auth test with regular aws credentials :
246
+ setup aws env :
247
247
- command : shell.exec
248
248
type : test
249
249
params :
@@ -252,6 +252,14 @@ functions:
252
252
${PREPARE_SHELL}
253
253
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
254
254
. ./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
255
263
${MONGODB_BINARIES}/mongo aws_e2e_regular_aws.js
256
264
- command : shell.exec
257
265
type : test
@@ -329,6 +337,9 @@ functions:
329
337
working_dir : src
330
338
silent : true
331
339
script : |
340
+ cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
341
+ ${MONGODB_BINARIES}/mongo --verbose aws_e2e_regular_aws.js
342
+ cd -
332
343
cat <<EOF > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
333
344
export AWS_ACCESS_KEY_ID=${iam_auth_ecs_account}
334
345
export AWS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
@@ -348,6 +359,9 @@ functions:
348
359
working_dir : src
349
360
silent : true
350
361
script : |
362
+ cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
363
+ ${MONGODB_BINARIES}/mongo --verbose aws_e2e_assume_role.js
364
+ cd -
351
365
cat <<'EOF' > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
352
366
export AWS_ACCESS_KEY_ID=$(jq -r '.AccessKeyId' ${DRIVERS_TOOLS}/.evergreen/auth_aws/creds.json)
353
367
export AWS_SECRET_ACCESS_KEY=$(jq -r '.SecretAccessKey' ${DRIVERS_TOOLS}/.evergreen/auth_aws/creds.json)
@@ -387,7 +401,7 @@ functions:
387
401
388
402
cat setup.js
389
403
. ./activate_venv.sh
390
- mongo --nodb setup.js aws_e2e_ecs.js
404
+ ${MONGODB_BINARIES}/ mongo --nodb setup.js aws_e2e_ecs.js
391
405
run-ocsp-test :
392
406
- command : shell.exec
393
407
type : test
@@ -1377,7 +1391,7 @@ tasks:
1377
1391
- func : run-ocsp-test
1378
1392
vars :
1379
1393
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
1381
1395
commands :
1382
1396
- func : install dependencies
1383
1397
- func : bootstrap mongo-orchestration
@@ -1387,13 +1401,69 @@ tasks:
1387
1401
ORCHESTRATION_FILE : auth-aws.json
1388
1402
TOPOLOGY : server
1389
1403
- func : add aws auth variables to file
1404
+ - func : setup aws env
1390
1405
- 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
1391
1417
- 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
1392
1429
- 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
1393
1441
- 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
1394
1453
- 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
1395
1465
- 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
1397
1467
commands :
1398
1468
- func : install dependencies
1399
1469
- func : bootstrap mongo-orchestration
@@ -1403,11 +1473,67 @@ tasks:
1403
1473
ORCHESTRATION_FILE : auth-aws.json
1404
1474
TOPOLOGY : server
1405
1475
- func : add aws auth variables to file
1476
+ - func : setup aws env
1406
1477
- 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
1407
1489
- 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
1408
1501
- 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
1409
1513
- 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
1410
1525
- 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
1411
1537
- func : run aws ECS auth test
1412
1538
- name : run-checks
1413
1539
tags :
@@ -1994,5 +2120,15 @@ buildvariants:
1994
2120
expansions :
1995
2121
NODE_LTS_NAME : carbon
1996
2122
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