@@ -42,7 +42,7 @@ functions:
42
42
# Make an evergreen expansion file with dynamic values
43
43
- command : subprocess.exec
44
44
params :
45
- include_expansions_in_env : ["is_patch", "project", "version_id", "AUTH", "SSL", "test_encryption", "test_encryption_pyopenssl", "test_crypt_shared", "test_pyopenssl", "SETDEFAULTENCODING", "test_loadbalancer", "test_serverless", "SKIP_CSOT_TESTS", "MONGODB_STARTED", "DISABLE_TEST_COMMANDS", "GREEN_FRAMEWORK", "NO_EXT", "COVERAGE", "COMPRESSORS", "TEST_SUITES", "MONGODB_API_VERSION", "skip_crypt_shared", "VERSION", "TOPOLOGY", "STORAGE_ENGINE", "ORCHESTRATION_FILE", "REQUIRE_API_VERSION", "LOAD_BALANCER", " skip_web_identity_auth_test", "skip_ECS_auth_test"]
45
+ include_expansions_in_env : ["is_patch", "project", "version_id", "skip_web_identity_auth_test", "skip_ECS_auth_test"]
46
46
binary : bash
47
47
working_dir : " src"
48
48
args :
@@ -205,18 +205,13 @@ functions:
205
205
- command : subprocess.exec
206
206
params :
207
207
binary : bash
208
- include_expansions_in_env : ["VERSION", "TOPOLOGY", "AUTH", "SSL", "ORCHESTRATION_FILE", "LOAD_BALANCER"]
208
+ include_expansions_in_env : [VERSION, TOPOLOGY, AUTH, SSL, ORCHESTRATION_FILE, LOAD_BALANCER,
209
+ STORAGE_ENGINE, REQUIRE_API_VERSION, DRIVERS_TOOLS, TEST_CRYPT_SHARED]
209
210
args :
210
- - src/.evergreen/scripts/run-with-env.sh
211
211
- src/.evergreen/scripts/bootstrap-mongo-orchestration.sh
212
212
- command : expansions.update
213
213
params :
214
214
file : mo-expansion.yml
215
- - command : expansions.update
216
- params :
217
- updates :
218
- - key : MONGODB_STARTED
219
- value : " 1"
220
215
221
216
" bootstrap data lake " :
222
217
- command : subprocess.exec
@@ -250,17 +245,6 @@ functions:
250
245
- .evergreen/scripts/run-with-env.sh
251
246
- .evergreen/scripts/run-mod-wsgi-tests.sh
252
247
253
- " run mockupdb tests " :
254
- - command : subprocess.exec
255
- type : test
256
- params :
257
- include_expansions_in_env : ["PYTHON_BINARY"]
258
- working_dir : " src"
259
- binary : bash
260
- args :
261
- - .evergreen/scripts/run-with-env.sh
262
- - .evergreen/scripts/run-mockupdb-tests.sh
263
-
264
248
" run doctests " :
265
249
- command : subprocess.exec
266
250
type : test
@@ -273,40 +257,21 @@ functions:
273
257
- .evergreen/scripts/run-doctests.sh
274
258
275
259
" run tests " :
276
- - command : subprocess.exec
277
- params :
278
- include_expansions_in_env : ["TEST_DATA_LAKE", "PYTHON_BINARY", "AUTH", "SSL", "TEST_INDEX_MANAGEMENT", "CRYPT_SHARED_LIB_PATH", "test_encryption", "test_encryption_pyopenssl", "test_crypt_shared", "test_pyopenssl", "test_loadbalancer", "test_serverless", "ORCHESTRATION_FILE"]
279
- binary : bash
280
- working_dir : " src"
281
- args :
282
- - .evergreen/scripts/setup-tests.sh
283
- - command : subprocess.exec
284
- params :
285
- working_dir : " src"
286
- binary : bash
287
- background : true
288
- include_expansions_in_env : ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
289
- args :
290
- - .evergreen/scripts/run-with-env.sh
291
- - .evergreen/scripts/setup-encryption.sh
292
260
- command : subprocess.exec
293
261
type : test
294
262
params :
295
- working_dir : " src"
263
+ include_expansions_in_env : [AUTH, SSL, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY,
264
+ AWS_SESSION_TOKEN, COVERAGE, PYTHON_BINARY, LIBMONGOCRYPT_URL, MONGODB_URI,
265
+ DISABLE_TEST_COMMANDS, GREEN_FRAMEWORK, NO_EXT, COMPRESSORS, MONGODB_API_VERSION]
296
266
binary : bash
297
- include_expansions_in_env : ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "PYTHON_BINARY", "TEST_DATA_LAKE", "TEST_INDEX_MANAGEMENT", "CRYPT_SHARED_LIB_PATH", "SINGLE_MONGOS_LB_URI", "MULTI_MONGOS_LB_URI", "TEST_SUITES"]
298
- args :
299
- - .evergreen/scripts/run-with-env.sh
300
- - .evergreen/scripts/run-tests.sh
301
-
302
- " run direct tests " :
267
+ working_dir : " src"
268
+ args : [.evergreen/just.sh, setup-test, "${TEST_NAME}", "${SUB_TEST_NAME}"]
303
269
- command : subprocess.exec
304
270
type : test
305
271
params :
306
272
working_dir : " src"
307
273
binary : bash
308
- include_expansions_in_env : ["PYTHON_BINARY"]
309
- args : [ .evergreen/scripts/run-direct-tests.sh ]
274
+ args : [.evergreen/just.sh, test-eg]
310
275
311
276
" run enterprise auth tests " :
312
277
- command : subprocess.exec
@@ -340,13 +305,6 @@ functions:
340
305
- ${DRIVERS_TOOLS}/.evergreen/auth_aws/setup-secrets.sh
341
306
342
307
" run aws auth test with regular aws credentials " :
343
- - command : subprocess.exec
344
- params :
345
- include_expansions_in_env : ["TEST_DATA_LAKE", "TEST_INDEX_MANAGEMENT", "CRYPT_SHARED_LIB_PATH", "test_encryption", "test_encryption_pyopenssl", "test_crypt_shared", "test_pyopenssl", "test_loadbalancer", "test_serverless", "ORCHESTRATION_FILE"]
346
- binary : bash
347
- working_dir : " src"
348
- args :
349
- - .evergreen/scripts/setup-tests.sh
350
308
- command : subprocess.exec
351
309
type : test
352
310
params :
@@ -359,13 +317,6 @@ functions:
359
317
- regular
360
318
361
319
" run aws auth test with assume role credentials " :
362
- - command : subprocess.exec
363
- params :
364
- include_expansions_in_env : [ "TEST_DATA_LAKE", "TEST_INDEX_MANAGEMENT", "CRYPT_SHARED_LIB_PATH", "test_encryption", "test_encryption_pyopenssl", "test_crypt_shared", "test_pyopenssl", "test_loadbalancer", "test_serverless", "ORCHESTRATION_FILE" ]
365
- binary : bash
366
- working_dir : " src"
367
- args :
368
- - .evergreen/scripts/setup-tests.sh
369
320
- command : subprocess.exec
370
321
type : test
371
322
params :
@@ -378,13 +329,6 @@ functions:
378
329
- assume-role
379
330
380
331
" run aws auth test with aws EC2 credentials " :
381
- - command : subprocess.exec
382
- params :
383
- include_expansions_in_env : [ "TEST_DATA_LAKE", "TEST_INDEX_MANAGEMENT", "CRYPT_SHARED_LIB_PATH", "test_encryption", "test_encryption_pyopenssl", "test_crypt_shared", "test_pyopenssl", "test_loadbalancer", "test_serverless", "ORCHESTRATION_FILE" ]
384
- binary : bash
385
- working_dir : " src"
386
- args :
387
- - .evergreen/scripts/setup-tests.sh
388
332
- command : subprocess.exec
389
333
type : test
390
334
params :
@@ -397,13 +341,6 @@ functions:
397
341
- ec2
398
342
399
343
" run aws auth test with aws web identity credentials " :
400
- - command : subprocess.exec
401
- params :
402
- include_expansions_in_env : [ "TEST_DATA_LAKE", "TEST_INDEX_MANAGEMENT", "CRYPT_SHARED_LIB_PATH", "test_encryption", "test_encryption_pyopenssl", "test_crypt_shared", "test_pyopenssl", "test_loadbalancer", "test_serverless", "ORCHESTRATION_FILE" ]
403
- binary : bash
404
- working_dir : " src"
405
- args :
406
- - .evergreen/scripts/setup-tests.sh
407
344
- # Test with and without AWS_ROLE_SESSION_NAME set.
408
345
- command : subprocess.exec
409
346
type : test
@@ -429,13 +366,6 @@ functions:
429
366
- web-identity
430
367
431
368
" run aws auth test with aws credentials as environment variables " :
432
- - command : subprocess.exec
433
- params :
434
- include_expansions_in_env : [ "TEST_DATA_LAKE", "TEST_INDEX_MANAGEMENT", "CRYPT_SHARED_LIB_PATH", "test_encryption", "test_encryption_pyopenssl", "test_crypt_shared", "test_pyopenssl", "test_loadbalancer", "test_serverless", "ORCHESTRATION_FILE" ]
435
- binary : bash
436
- working_dir : " src"
437
- args :
438
- - .evergreen/scripts/setup-tests.sh
439
369
- command : subprocess.exec
440
370
type : test
441
371
params :
@@ -448,13 +378,6 @@ functions:
448
378
- env-creds
449
379
450
380
" run aws auth test with aws credentials and session token as environment variables " :
451
- - command : subprocess.exec
452
- params :
453
- include_expansions_in_env : [ "TEST_DATA_LAKE", "TEST_INDEX_MANAGEMENT", "CRYPT_SHARED_LIB_PATH", "test_encryption", "test_encryption_pyopenssl", "test_crypt_shared", "test_pyopenssl", "test_loadbalancer", "test_serverless", "ORCHESTRATION_FILE" ]
454
- binary : bash
455
- working_dir : " src"
456
- args :
457
- - .evergreen/scripts/setup-tests.sh
458
381
- command : subprocess.exec
459
382
type : test
460
383
params :
@@ -467,13 +390,6 @@ functions:
467
390
- session-creds
468
391
469
392
" run oidc auth test with test credentials " :
470
- - command : subprocess.exec
471
- params :
472
- include_expansions_in_env : [ "TEST_DATA_LAKE", "TEST_INDEX_MANAGEMENT", "CRYPT_SHARED_LIB_PATH", "test_encryption", "test_encryption_pyopenssl", "test_crypt_shared", "test_pyopenssl", "test_loadbalancer", "test_serverless", "ORCHESTRATION_FILE" ]
473
- binary : bash
474
- working_dir : " src"
475
- args :
476
- - .evergreen/scripts/setup-tests.sh
477
393
- command : subprocess.exec
478
394
type : test
479
395
params :
@@ -561,13 +477,6 @@ functions:
561
477
file : atlas-expansion.yml
562
478
563
479
" run-ocsp-test " :
564
- - command : subprocess.exec
565
- params :
566
- include_expansions_in_env : [ "TEST_DATA_LAKE", "TEST_INDEX_MANAGEMENT", "CRYPT_SHARED_LIB_PATH", "test_encryption", "test_encryption_pyopenssl", "test_crypt_shared", "test_pyopenssl", "test_loadbalancer", "test_serverless", "ORCHESTRATION_FILE" ]
567
- binary : bash
568
- working_dir : " src"
569
- args :
570
- - .evergreen/scripts/setup-tests.sh
571
480
- command : subprocess.exec
572
481
type : test
573
482
params :
@@ -587,25 +496,6 @@ functions:
587
496
args :
588
497
- ${DRIVERS_TOOLS}/.evergreen/ocsp/setup.sh
589
498
590
- " run load-balancer " :
591
- - command : subprocess.exec
592
- params :
593
- binary : bash
594
- include_expansions_in_env : ["MONGODB_URI"]
595
- args :
596
- - src/.evergreen/scripts/run-with-env.sh
597
- - src/.evergreen/scripts/run-load-balancer.sh
598
- - command : expansions.update
599
- params :
600
- file : lb-expansion.yml
601
-
602
- " stop load-balancer " :
603
- - command : subprocess.exec
604
- params :
605
- binary : bash
606
- args :
607
- - src/.evergreen/scripts/stop-load-balancer.sh
608
-
609
499
" teardown atlas " :
610
500
- command : subprocess.exec
611
501
params :
@@ -847,7 +737,9 @@ tasks:
847
737
- name : " mockupdb"
848
738
tags : ["mockupdb"]
849
739
commands :
850
- - func : " run mockupdb tests"
740
+ - func : " run tests"
741
+ vars :
742
+ TEST_NAME : mockupdb
851
743
852
744
- name : " doctests"
853
745
tags : ["doctests"]
@@ -862,6 +754,8 @@ tasks:
862
754
tags : ["serverless"]
863
755
commands :
864
756
- func : " run tests"
757
+ vars :
758
+ TEST_NAME : serverless
865
759
866
760
- name : " test-enterprise-auth"
867
761
tags : ["enterprise-auth"]
@@ -881,7 +775,8 @@ tasks:
881
775
TOPOLOGY : " replica_set"
882
776
- func : " run tests"
883
777
vars :
884
- TEST_INDEX_MANAGEMENT : " 1"
778
+ TEST_NAME : index_management
779
+ AUTH : " auth"
885
780
886
781
- name : " mod-wsgi-standalone"
887
782
tags : ["mod_wsgi"]
@@ -935,7 +830,7 @@ tasks:
935
830
vars :
936
831
VERSION : " 8.0"
937
832
TOPOLOGY : " replica_set"
938
- - func : " run direct tests"
833
+ - func : " run tests"
939
834
940
835
- name : " atlas-connect"
941
836
tags : ["atlas-connect"]
@@ -948,7 +843,7 @@ tasks:
948
843
- func : " bootstrap data lake"
949
844
- func : " run tests"
950
845
vars :
951
- TEST_DATA_LAKE : " true "
846
+ TEST_NAME : " data_lake "
952
847
953
848
- name : " test-aws-lambda-deployed"
954
849
commands :
@@ -1503,7 +1398,7 @@ tasks:
1503
1398
- name : " testgcpkms-task"
1504
1399
commands :
1505
1400
- command : subprocess.exec
1506
- type : setup
1401
+ type : test
1507
1402
params :
1508
1403
working_dir : " src"
1509
1404
binary : bash
@@ -1531,6 +1426,7 @@ tasks:
1531
1426
- name : testazurekms-task
1532
1427
commands :
1533
1428
- command : subprocess.exec
1429
+ type : test
1534
1430
params :
1535
1431
binary : bash
1536
1432
working_dir : src
0 commit comments