@@ -277,6 +277,16 @@ functions:
277
277
"iam_auth_ec2_instance_profile" : "${iam_auth_ec2_instance_profile}"
278
278
}
279
279
EOF
280
+ setup aws env :
281
+ - command : shell.exec
282
+ type : test
283
+ params :
284
+ working_dir : src
285
+ script : |
286
+ ${PREPARE_SHELL}
287
+ cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
288
+ . ./activate_venv.sh
289
+ cd -
280
290
run aws auth test with regular aws credentials :
281
291
- command : shell.exec
282
292
type : test
@@ -363,6 +373,9 @@ functions:
363
373
working_dir : src
364
374
silent : true
365
375
script : |
376
+ cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
377
+ ${MONGODB_BINARIES}/mongo --verbose aws_e2e_regular_aws.js
378
+ cd -
366
379
cat <<EOF > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
367
380
export AWS_ACCESS_KEY_ID=${iam_auth_ecs_account}
368
381
export AWS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
@@ -382,6 +395,9 @@ functions:
382
395
working_dir : src
383
396
silent : true
384
397
script : |
398
+ cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
399
+ ${MONGODB_BINARIES}/mongo --verbose aws_e2e_assume_role.js
400
+ cd -
385
401
cat <<'EOF' > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
386
402
export AWS_ACCESS_KEY_ID=$(jq -r '.AccessKeyId' ${DRIVERS_TOOLS}/.evergreen/auth_aws/creds.json)
387
403
export AWS_SECRET_ACCESS_KEY=$(jq -r '.SecretAccessKey' ${DRIVERS_TOOLS}/.evergreen/auth_aws/creds.json)
@@ -421,7 +437,7 @@ functions:
421
437
422
438
cat setup.js
423
439
. ./activate_venv.sh
424
- mongo --nodb setup.js aws_e2e_ecs.js
440
+ ${MONGODB_BINARIES}/ mongo --nodb setup.js aws_e2e_ecs.js
425
441
run-ocsp-test :
426
442
- command : shell.exec
427
443
type : test
@@ -1164,7 +1180,7 @@ tasks:
1164
1180
- func : run-ocsp-test
1165
1181
vars :
1166
1182
OCSP_TLS_SHOULD_SUCCEED : 0
1167
- - name : aws-latest-auth-test
1183
+ - name : aws-latest-auth-test-run-aws-auth-test-with-regular-aws-credentials
1168
1184
commands :
1169
1185
- func : install dependencies
1170
1186
- func : bootstrap mongo-orchestration
@@ -1174,10 +1190,69 @@ tasks:
1174
1190
ORCHESTRATION_FILE : auth-aws.json
1175
1191
TOPOLOGY : server
1176
1192
- func : add aws auth variables to file
1193
+ - func : setup aws env
1177
1194
- func : run aws auth test with regular aws credentials
1195
+ - name : aws-latest-auth-test-run-aws-auth-test-with-assume-role-credentials
1196
+ commands :
1197
+ - func : install dependencies
1198
+ - func : bootstrap mongo-orchestration
1199
+ vars :
1200
+ VERSION : latest
1201
+ AUTH : auth
1202
+ ORCHESTRATION_FILE : auth-aws.json
1203
+ TOPOLOGY : server
1204
+ - func : add aws auth variables to file
1205
+ - func : setup aws env
1178
1206
- func : run aws auth test with assume role credentials
1207
+ - name : aws-latest-auth-test-run-aws-auth-test-with-aws-EC2-credentials
1208
+ commands :
1209
+ - func : install dependencies
1210
+ - func : bootstrap mongo-orchestration
1211
+ vars :
1212
+ VERSION : latest
1213
+ AUTH : auth
1214
+ ORCHESTRATION_FILE : auth-aws.json
1215
+ TOPOLOGY : server
1216
+ - func : add aws auth variables to file
1217
+ - func : setup aws env
1179
1218
- func : run aws auth test with aws EC2 credentials
1180
- - name : aws-4.4-auth-test
1219
+ - name : aws-latest-auth-test-run-aws-auth-test-with-aws-credentials-as-environment-variables
1220
+ commands :
1221
+ - func : install dependencies
1222
+ - func : bootstrap mongo-orchestration
1223
+ vars :
1224
+ VERSION : latest
1225
+ AUTH : auth
1226
+ ORCHESTRATION_FILE : auth-aws.json
1227
+ TOPOLOGY : server
1228
+ - func : add aws auth variables to file
1229
+ - func : setup aws env
1230
+ - func : run aws auth test with aws credentials as environment variables
1231
+ - name : aws-latest-auth-test-run-aws-auth-test-with-aws-credentials-and-session-token-as-environment-variables
1232
+ commands :
1233
+ - func : install dependencies
1234
+ - func : bootstrap mongo-orchestration
1235
+ vars :
1236
+ VERSION : latest
1237
+ AUTH : auth
1238
+ ORCHESTRATION_FILE : auth-aws.json
1239
+ TOPOLOGY : server
1240
+ - func : add aws auth variables to file
1241
+ - func : setup aws env
1242
+ - func : run aws auth test with aws credentials and session token as environment variables
1243
+ - name : aws-latest-auth-test-run-aws-ECS-auth-test
1244
+ commands :
1245
+ - func : install dependencies
1246
+ - func : bootstrap mongo-orchestration
1247
+ vars :
1248
+ VERSION : latest
1249
+ AUTH : auth
1250
+ ORCHESTRATION_FILE : auth-aws.json
1251
+ TOPOLOGY : server
1252
+ - func : add aws auth variables to file
1253
+ - func : setup aws env
1254
+ - func : run aws ECS auth test
1255
+ - name : aws-4.4-auth-test-run-aws-auth-test-with-regular-aws-credentials
1181
1256
commands :
1182
1257
- func : install dependencies
1183
1258
- func : bootstrap mongo-orchestration
@@ -1187,9 +1262,68 @@ tasks:
1187
1262
ORCHESTRATION_FILE : auth-aws.json
1188
1263
TOPOLOGY : server
1189
1264
- func : add aws auth variables to file
1265
+ - func : setup aws env
1190
1266
- func : run aws auth test with regular aws credentials
1267
+ - name : aws-4.4-auth-test-run-aws-auth-test-with-assume-role-credentials
1268
+ commands :
1269
+ - func : install dependencies
1270
+ - func : bootstrap mongo-orchestration
1271
+ vars :
1272
+ VERSION : ' 4.4'
1273
+ AUTH : auth
1274
+ ORCHESTRATION_FILE : auth-aws.json
1275
+ TOPOLOGY : server
1276
+ - func : add aws auth variables to file
1277
+ - func : setup aws env
1191
1278
- func : run aws auth test with assume role credentials
1279
+ - name : aws-4.4-auth-test-run-aws-auth-test-with-aws-EC2-credentials
1280
+ commands :
1281
+ - func : install dependencies
1282
+ - func : bootstrap mongo-orchestration
1283
+ vars :
1284
+ VERSION : ' 4.4'
1285
+ AUTH : auth
1286
+ ORCHESTRATION_FILE : auth-aws.json
1287
+ TOPOLOGY : server
1288
+ - func : add aws auth variables to file
1289
+ - func : setup aws env
1192
1290
- func : run aws auth test with aws EC2 credentials
1291
+ - name : aws-4.4-auth-test-run-aws-auth-test-with-aws-credentials-as-environment-variables
1292
+ commands :
1293
+ - func : install dependencies
1294
+ - func : bootstrap mongo-orchestration
1295
+ vars :
1296
+ VERSION : ' 4.4'
1297
+ AUTH : auth
1298
+ ORCHESTRATION_FILE : auth-aws.json
1299
+ TOPOLOGY : server
1300
+ - func : add aws auth variables to file
1301
+ - func : setup aws env
1302
+ - func : run aws auth test with aws credentials as environment variables
1303
+ - name : aws-4.4-auth-test-run-aws-auth-test-with-aws-credentials-and-session-token-as-environment-variables
1304
+ commands :
1305
+ - func : install dependencies
1306
+ - func : bootstrap mongo-orchestration
1307
+ vars :
1308
+ VERSION : ' 4.4'
1309
+ AUTH : auth
1310
+ ORCHESTRATION_FILE : auth-aws.json
1311
+ TOPOLOGY : server
1312
+ - func : add aws auth variables to file
1313
+ - func : setup aws env
1314
+ - func : run aws auth test with aws credentials and session token as environment variables
1315
+ - name : aws-4.4-auth-test-run-aws-ECS-auth-test
1316
+ commands :
1317
+ - func : install dependencies
1318
+ - func : bootstrap mongo-orchestration
1319
+ vars :
1320
+ VERSION : ' 4.4'
1321
+ AUTH : auth
1322
+ ORCHESTRATION_FILE : auth-aws.json
1323
+ TOPOLOGY : server
1324
+ - func : add aws auth variables to file
1325
+ - func : setup aws env
1326
+ - func : run aws ECS auth test
1193
1327
- name : run-checks
1194
1328
tags :
1195
1329
- run-checks
@@ -1562,5 +1696,15 @@ buildvariants:
1562
1696
expansions :
1563
1697
NODE_LTS_NAME : dubnium
1564
1698
tasks :
1565
- - aws-latest-auth-test
1566
- - aws-4.4-auth-test
1699
+ - aws-latest-auth-test-run-aws-auth-test-with-regular-aws-credentials
1700
+ - aws-latest-auth-test-run-aws-auth-test-with-assume-role-credentials
1701
+ - aws-latest-auth-test-run-aws-auth-test-with-aws-EC2-credentials
1702
+ - aws-latest-auth-test-run-aws-auth-test-with-aws-credentials-as-environment-variables
1703
+ - aws-latest-auth-test-run-aws-auth-test-with-aws-credentials-and-session-token-as-environment-variables
1704
+ - aws-latest-auth-test-run-aws-ECS-auth-test
1705
+ - aws-4.4-auth-test-run-aws-auth-test-with-regular-aws-credentials
1706
+ - aws-4.4-auth-test-run-aws-auth-test-with-assume-role-credentials
1707
+ - aws-4.4-auth-test-run-aws-auth-test-with-aws-EC2-credentials
1708
+ - aws-4.4-auth-test-run-aws-auth-test-with-aws-credentials-as-environment-variables
1709
+ - aws-4.4-auth-test-run-aws-auth-test-with-aws-credentials-and-session-token-as-environment-variables
1710
+ - aws-4.4-auth-test-run-aws-ECS-auth-test
0 commit comments