@@ -42,7 +42,7 @@ functions:
4242 # Make an evergreen expansion file with dynamic values
4343 - command : subprocess.exec
4444 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"]
4646 binary : bash
4747 working_dir : " src"
4848 args :
@@ -205,18 +205,13 @@ functions:
205205 - command : subprocess.exec
206206 params :
207207 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]
209210 args :
210- - src/.evergreen/scripts/run-with-env.sh
211211 - src/.evergreen/scripts/bootstrap-mongo-orchestration.sh
212212 - command : expansions.update
213213 params :
214214 file : mo-expansion.yml
215- - command : expansions.update
216- params :
217- updates :
218- - key : MONGODB_STARTED
219- value : " 1"
220215
221216 " bootstrap data lake " :
222217 - command : subprocess.exec
@@ -250,17 +245,6 @@ functions:
250245 - .evergreen/scripts/run-with-env.sh
251246 - .evergreen/scripts/run-mod-wsgi-tests.sh
252247
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-
264248 " run doctests " :
265249 - command : subprocess.exec
266250 type : test
@@ -273,40 +257,21 @@ functions:
273257 - .evergreen/scripts/run-doctests.sh
274258
275259 " 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
292260 - command : subprocess.exec
293261 type : test
294262 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]
296266 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}"]
303269 - command : subprocess.exec
304270 type : test
305271 params :
306272 working_dir : " src"
307273 binary : bash
308- include_expansions_in_env : ["PYTHON_BINARY"]
309- args : [ .evergreen/scripts/run-direct-tests.sh ]
274+ args : [.evergreen/just.sh, test-eg]
310275
311276 " run enterprise auth tests " :
312277 - command : subprocess.exec
@@ -340,13 +305,6 @@ functions:
340305 - ${DRIVERS_TOOLS}/.evergreen/auth_aws/setup-secrets.sh
341306
342307 " 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
350308 - command : subprocess.exec
351309 type : test
352310 params :
@@ -359,13 +317,6 @@ functions:
359317 - regular
360318
361319 " 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
369320 - command : subprocess.exec
370321 type : test
371322 params :
@@ -378,13 +329,6 @@ functions:
378329 - assume-role
379330
380331 " 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
388332 - command : subprocess.exec
389333 type : test
390334 params :
@@ -397,13 +341,6 @@ functions:
397341 - ec2
398342
399343 " 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
407344 - # Test with and without AWS_ROLE_SESSION_NAME set.
408345 - command : subprocess.exec
409346 type : test
@@ -429,13 +366,6 @@ functions:
429366 - web-identity
430367
431368 " 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
439369 - command : subprocess.exec
440370 type : test
441371 params :
@@ -448,13 +378,6 @@ functions:
448378 - env-creds
449379
450380 " 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
458381 - command : subprocess.exec
459382 type : test
460383 params :
@@ -467,13 +390,6 @@ functions:
467390 - session-creds
468391
469392 " 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
477393 - command : subprocess.exec
478394 type : test
479395 params :
@@ -561,13 +477,6 @@ functions:
561477 file : atlas-expansion.yml
562478
563479 " 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
571480 - command : subprocess.exec
572481 type : test
573482 params :
@@ -587,25 +496,6 @@ functions:
587496 args :
588497 - ${DRIVERS_TOOLS}/.evergreen/ocsp/setup.sh
589498
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-
609499 " teardown atlas " :
610500 - command : subprocess.exec
611501 params :
@@ -847,7 +737,9 @@ tasks:
847737 - name : " mockupdb"
848738 tags : ["mockupdb"]
849739 commands :
850- - func : " run mockupdb tests"
740+ - func : " run tests"
741+ vars :
742+ TEST_NAME : mockupdb
851743
852744 - name : " doctests"
853745 tags : ["doctests"]
@@ -862,6 +754,8 @@ tasks:
862754 tags : ["serverless"]
863755 commands :
864756 - func : " run tests"
757+ vars :
758+ TEST_NAME : serverless
865759
866760 - name : " test-enterprise-auth"
867761 tags : ["enterprise-auth"]
@@ -881,7 +775,8 @@ tasks:
881775 TOPOLOGY : " replica_set"
882776 - func : " run tests"
883777 vars :
884- TEST_INDEX_MANAGEMENT : " 1"
778+ TEST_NAME : index_management
779+ AUTH : " auth"
885780
886781 - name : " mod-wsgi-standalone"
887782 tags : ["mod_wsgi"]
@@ -935,7 +830,7 @@ tasks:
935830 vars :
936831 VERSION : " 8.0"
937832 TOPOLOGY : " replica_set"
938- - func : " run direct tests"
833+ - func : " run tests"
939834
940835 - name : " atlas-connect"
941836 tags : ["atlas-connect"]
@@ -948,7 +843,7 @@ tasks:
948843 - func : " bootstrap data lake"
949844 - func : " run tests"
950845 vars :
951- TEST_DATA_LAKE : " true "
846+ TEST_NAME : " data_lake "
952847
953848 - name : " test-aws-lambda-deployed"
954849 commands :
@@ -1503,7 +1398,7 @@ tasks:
15031398 - name : " testgcpkms-task"
15041399 commands :
15051400 - command : subprocess.exec
1506- type : setup
1401+ type : test
15071402 params :
15081403 working_dir : " src"
15091404 binary : bash
@@ -1531,6 +1426,7 @@ tasks:
15311426 - name : testazurekms-task
15321427 commands :
15331428 - command : subprocess.exec
1429+ type : test
15341430 params :
15351431 binary : bash
15361432 working_dir : src
0 commit comments