diff --git a/.evergreen/config.yml b/.evergreen/config.yml index 5ebe4ec65a..3f29391373 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -201,17 +201,17 @@ functions: params: file: "src/xunit-results/TEST-*.xml" - "bootstrap mongo-orchestration": + "run-server": - command: subprocess.exec params: binary: bash - include_expansions_in_env: [VERSION, TOPOLOGY, AUTH, SSL, ORCHESTRATION_FILE, LOAD_BALANCER, - STORAGE_ENGINE, REQUIRE_API_VERSION, DRIVERS_TOOLS, TEST_CRYPT_SHARED, AUTH_AWS] - args: - - src/.evergreen/scripts/bootstrap-mongo-orchestration.sh + working_dir: "src" + include_expansions_in_env: [VERSION, TOPOLOGY, AUTH, SSL, ORCHESTRATION_FILE, + STORAGE_ENGINE, REQUIRE_API_VERSION, DRIVERS_TOOLS, TEST_CRYPT_SHARED, AUTH_AWS, LOAD_BALANCER] + args: [.evergreen/just.sh, run-server, "${TEST_NAME}", "${SUB_TEST_NAME}"] - command: expansions.update params: - file: mo-expansion.yml + file: ${DRIVERS_TOOLS}/mo-expansion.yml "bootstrap data lake": - command: subprocess.exec @@ -227,13 +227,6 @@ functions: args: - ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-image.sh - "stop mongo-orchestration": - - command: subprocess.exec - params: - binary: bash - args: - - ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh - "run mod_wsgi tests": - command: subprocess.exec type: test @@ -423,7 +416,6 @@ post: - func: "upload coverage" - func: "upload mo artifacts" - func: "upload test results" - - func: "stop mongo-orchestration" - func: "cleanup" task_groups: @@ -587,10 +579,7 @@ tasks: - name: "doctests" tags: ["doctests"] commands: - - func: "bootstrap mongo-orchestration" - vars: - VERSION: "latest" - TOPOLOGY: "server" + - func: "run-server" - func: "run doctests" - name: "test-serverless" @@ -603,16 +592,13 @@ tasks: - name: "test-enterprise-auth" tags: ["enterprise-auth"] commands: - - func: "bootstrap mongo-orchestration" - vars: - VERSION: "latest" - TOPOLOGY: "server" + - func: "run-server" - func: "assume ec2 role" - func: "run enterprise auth tests" - name: "test-search-index-helpers" commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: VERSION: "6.0" TOPOLOGY: "replica_set" @@ -624,28 +610,23 @@ tasks: - name: "mod-wsgi-standalone" tags: ["mod_wsgi"] commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: - VERSION: "latest" TOPOLOGY: "server" - func: "run mod_wsgi tests" - name: "mod-wsgi-replica-set" tags: ["mod_wsgi"] commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: - VERSION: "latest" TOPOLOGY: "replica_set" - func: "run mod_wsgi tests" - name: "mod-wsgi-embedded-mode-standalone" tags: ["mod_wsgi"] commands: - - func: "bootstrap mongo-orchestration" - vars: - VERSION: "latest" - TOPOLOGY: "server" + - func: "run-server" - func: "run mod_wsgi tests" vars: MOD_WSGI_EMBEDDED: "1" @@ -653,9 +634,8 @@ tasks: - name: "mod-wsgi-embedded-mode-replica-set" tags: ["mod_wsgi"] commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: - VERSION: "latest" TOPOLOGY: "replica_set" - func: "run mod_wsgi tests" vars: @@ -669,7 +649,7 @@ tasks: - name: "free-threading" tags: ["free-threading"] commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: VERSION: "8.0" TOPOLOGY: "replica_set" @@ -711,7 +691,7 @@ tasks: vars: OCSP_ALGORITHM: "rsa" SERVER_TYPE: "valid" - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple.json" - func: run-ocsp-test @@ -726,7 +706,7 @@ tasks: vars: OCSP_ALGORITHM: "rsa" SERVER_TYPE: "revoked" - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple.json" - func: run-ocsp-test @@ -741,7 +721,7 @@ tasks: vars: OCSP_ALGORITHM: "rsa" SERVER_TYPE: valid - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-disableStapling.json" - func: run-ocsp-test @@ -756,7 +736,7 @@ tasks: vars: OCSP_ALGORITHM: "rsa" SERVER_TYPE: revoked - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-disableStapling.json" - func: run-ocsp-test @@ -767,7 +747,7 @@ tasks: - name: test-ocsp-rsa-soft-fail tags: ["ocsp", "ocsp-rsa"] commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-disableStapling.json" - func: run-ocsp-test @@ -782,7 +762,7 @@ tasks: vars: OCSP_ALGORITHM: "rsa" SERVER_TYPE: revoked - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple-disableStapling.json" - func: run-ocsp-test @@ -793,7 +773,7 @@ tasks: - name: test-ocsp-rsa-malicious-no-responder-mustStaple-server-does-not-staple tags: ["ocsp", "ocsp-rsa"] commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple-disableStapling.json" - func: run-ocsp-test @@ -808,7 +788,7 @@ tasks: vars: OCSP_ALGORITHM: "rsa" SERVER_TYPE: valid-delegate - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple.json" - func: run-ocsp-test @@ -823,7 +803,7 @@ tasks: vars: OCSP_ALGORITHM: "rsa" SERVER_TYPE: revoked-delegate - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple.json" - func: run-ocsp-test @@ -838,7 +818,7 @@ tasks: vars: OCSP_ALGORITHM: "rsa" SERVER_TYPE: valid-delegate - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-disableStapling.json" - func: run-ocsp-test @@ -853,7 +833,7 @@ tasks: vars: OCSP_ALGORITHM: "rsa" SERVER_TYPE: revoked-delegate - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-disableStapling.json" - func: run-ocsp-test @@ -868,7 +848,7 @@ tasks: vars: OCSP_ALGORITHM: "rsa" SERVER_TYPE: revoked-delegate - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple-disableStapling.json" - func: run-ocsp-test @@ -883,7 +863,7 @@ tasks: vars: OCSP_ALGORITHM: "ecdsa" SERVER_TYPE: valid - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple.json" - func: run-ocsp-test @@ -898,7 +878,7 @@ tasks: vars: OCSP_ALGORITHM: "ecdsa" SERVER_TYPE: revoked - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple.json" - func: run-ocsp-test @@ -913,7 +893,7 @@ tasks: vars: OCSP_ALGORITHM: "ecdsa" SERVER_TYPE: valid - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-disableStapling.json" - func: run-ocsp-test @@ -928,7 +908,7 @@ tasks: vars: OCSP_ALGORITHM: "ecdsa" SERVER_TYPE: revoked - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-disableStapling.json" - func: run-ocsp-test @@ -939,7 +919,7 @@ tasks: - name: test-ocsp-ecdsa-soft-fail tags: ["ocsp", "ocsp-ecdsa"] commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-disableStapling.json" - func: run-ocsp-test @@ -954,7 +934,7 @@ tasks: vars: OCSP_ALGORITHM: "ecdsa" SERVER_TYPE: revoked - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple-disableStapling.json" - func: run-ocsp-test @@ -965,7 +945,7 @@ tasks: - name: test-ocsp-ecdsa-malicious-no-responder-mustStaple-server-does-not-staple tags: ["ocsp", "ocsp-ecdsa"] commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple-disableStapling.json" - func: run-ocsp-test @@ -980,7 +960,7 @@ tasks: vars: OCSP_ALGORITHM: "ecdsa" SERVER_TYPE: valid-delegate - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple.json" - func: run-ocsp-test @@ -995,7 +975,7 @@ tasks: vars: OCSP_ALGORITHM: "ecdsa" SERVER_TYPE: revoked-delegate - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple.json" - func: run-ocsp-test @@ -1010,7 +990,7 @@ tasks: vars: OCSP_ALGORITHM: "ecdsa" SERVER_TYPE: valid-delegate - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-disableStapling.json" - func: run-ocsp-test @@ -1025,7 +1005,7 @@ tasks: vars: OCSP_ALGORITHM: "ecdsa" SERVER_TYPE: revoked-delegate - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-disableStapling.json" - func: run-ocsp-test @@ -1040,7 +1020,7 @@ tasks: vars: OCSP_ALGORITHM: "ecdsa" SERVER_TYPE: valid-delegate - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple-disableStapling.json" - func: run-ocsp-test @@ -1115,10 +1095,9 @@ tasks: - name: "perf-6.0-standalone" tags: ["perf"] commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: VERSION: "v6.0-perf" - TOPOLOGY: "server" - func: "run perf tests" - func: "attach benchmark test results" - func: "send dashboard data" @@ -1126,10 +1105,9 @@ tasks: - name: "perf-6.0-standalone-ssl" tags: ["perf"] commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: VERSION: "v6.0-perf" - TOPOLOGY: "server" SSL: "ssl" - func: "run perf tests" - func: "attach benchmark test results" @@ -1138,10 +1116,9 @@ tasks: - name: "perf-8.0-standalone" tags: ["perf"] commands: - - func: "bootstrap mongo-orchestration" + - func: "run-server" vars: VERSION: "8.0" - TOPOLOGY: "server" - func: "run perf tests" - func: "attach benchmark test results" - func: "send dashboard data" diff --git a/.evergreen/generated_configs/tasks.yml b/.evergreen/generated_configs/tasks.yml index 56fdc1aa67..04e1451d45 100644 --- a/.evergreen/generated_configs/tasks.yml +++ b/.evergreen/generated_configs/tasks.yml @@ -2,7 +2,7 @@ tasks: # Aws tests - name: test-auth-aws-4.4-regular commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "4.4" @@ -14,7 +14,7 @@ tasks: tags: [auth-aws, auth-aws-regular] - name: test-auth-aws-4.4-assume-role commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "4.4" @@ -26,7 +26,7 @@ tasks: tags: [auth-aws, auth-aws-assume-role] - name: test-auth-aws-4.4-ec2 commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "4.4" @@ -38,7 +38,7 @@ tasks: tags: [auth-aws, auth-aws-ec2] - name: test-auth-aws-4.4-env-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "4.4" @@ -50,7 +50,7 @@ tasks: tags: [auth-aws, auth-aws-env-creds] - name: test-auth-aws-4.4-session-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "4.4" @@ -62,7 +62,7 @@ tasks: tags: [auth-aws, auth-aws-session-creds] - name: test-auth-aws-4.4-web-identity commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "4.4" @@ -74,7 +74,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-4.4-ecs commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "4.4" @@ -86,7 +86,7 @@ tasks: tags: [auth-aws, auth-aws-ecs] - name: test-auth-aws-4.4-web-identity-session-name commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "4.4" @@ -99,7 +99,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-5.0-regular commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "5.0" @@ -111,7 +111,7 @@ tasks: tags: [auth-aws, auth-aws-regular] - name: test-auth-aws-5.0-assume-role commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "5.0" @@ -123,7 +123,7 @@ tasks: tags: [auth-aws, auth-aws-assume-role] - name: test-auth-aws-5.0-ec2 commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "5.0" @@ -135,7 +135,7 @@ tasks: tags: [auth-aws, auth-aws-ec2] - name: test-auth-aws-5.0-env-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "5.0" @@ -147,7 +147,7 @@ tasks: tags: [auth-aws, auth-aws-env-creds] - name: test-auth-aws-5.0-session-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "5.0" @@ -159,7 +159,7 @@ tasks: tags: [auth-aws, auth-aws-session-creds] - name: test-auth-aws-5.0-web-identity commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "5.0" @@ -171,7 +171,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-5.0-ecs commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "5.0" @@ -183,7 +183,7 @@ tasks: tags: [auth-aws, auth-aws-ecs] - name: test-auth-aws-5.0-web-identity-session-name commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "5.0" @@ -196,7 +196,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-6.0-regular commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "6.0" @@ -208,7 +208,7 @@ tasks: tags: [auth-aws, auth-aws-regular] - name: test-auth-aws-6.0-assume-role commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "6.0" @@ -220,7 +220,7 @@ tasks: tags: [auth-aws, auth-aws-assume-role] - name: test-auth-aws-6.0-ec2 commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "6.0" @@ -232,7 +232,7 @@ tasks: tags: [auth-aws, auth-aws-ec2] - name: test-auth-aws-6.0-env-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "6.0" @@ -244,7 +244,7 @@ tasks: tags: [auth-aws, auth-aws-env-creds] - name: test-auth-aws-6.0-session-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "6.0" @@ -256,7 +256,7 @@ tasks: tags: [auth-aws, auth-aws-session-creds] - name: test-auth-aws-6.0-web-identity commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "6.0" @@ -268,7 +268,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-6.0-ecs commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "6.0" @@ -280,7 +280,7 @@ tasks: tags: [auth-aws, auth-aws-ecs] - name: test-auth-aws-6.0-web-identity-session-name commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "6.0" @@ -293,7 +293,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-7.0-regular commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "7.0" @@ -305,7 +305,7 @@ tasks: tags: [auth-aws, auth-aws-regular] - name: test-auth-aws-7.0-assume-role commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "7.0" @@ -317,7 +317,7 @@ tasks: tags: [auth-aws, auth-aws-assume-role] - name: test-auth-aws-7.0-ec2 commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "7.0" @@ -329,7 +329,7 @@ tasks: tags: [auth-aws, auth-aws-ec2] - name: test-auth-aws-7.0-env-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "7.0" @@ -341,7 +341,7 @@ tasks: tags: [auth-aws, auth-aws-env-creds] - name: test-auth-aws-7.0-session-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "7.0" @@ -353,7 +353,7 @@ tasks: tags: [auth-aws, auth-aws-session-creds] - name: test-auth-aws-7.0-web-identity commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "7.0" @@ -365,7 +365,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-7.0-ecs commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "7.0" @@ -377,7 +377,7 @@ tasks: tags: [auth-aws, auth-aws-ecs] - name: test-auth-aws-7.0-web-identity-session-name commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "7.0" @@ -390,7 +390,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-8.0-regular commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "8.0" @@ -402,7 +402,7 @@ tasks: tags: [auth-aws, auth-aws-regular] - name: test-auth-aws-8.0-assume-role commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "8.0" @@ -414,7 +414,7 @@ tasks: tags: [auth-aws, auth-aws-assume-role] - name: test-auth-aws-8.0-ec2 commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "8.0" @@ -426,7 +426,7 @@ tasks: tags: [auth-aws, auth-aws-ec2] - name: test-auth-aws-8.0-env-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "8.0" @@ -438,7 +438,7 @@ tasks: tags: [auth-aws, auth-aws-env-creds] - name: test-auth-aws-8.0-session-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "8.0" @@ -450,7 +450,7 @@ tasks: tags: [auth-aws, auth-aws-session-creds] - name: test-auth-aws-8.0-web-identity commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "8.0" @@ -462,7 +462,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-8.0-ecs commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "8.0" @@ -474,7 +474,7 @@ tasks: tags: [auth-aws, auth-aws-ecs] - name: test-auth-aws-8.0-web-identity-session-name commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: "8.0" @@ -487,7 +487,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-rapid-regular commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: rapid @@ -499,7 +499,7 @@ tasks: tags: [auth-aws, auth-aws-regular] - name: test-auth-aws-rapid-assume-role commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: rapid @@ -511,7 +511,7 @@ tasks: tags: [auth-aws, auth-aws-assume-role] - name: test-auth-aws-rapid-ec2 commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: rapid @@ -523,7 +523,7 @@ tasks: tags: [auth-aws, auth-aws-ec2] - name: test-auth-aws-rapid-env-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: rapid @@ -535,7 +535,7 @@ tasks: tags: [auth-aws, auth-aws-env-creds] - name: test-auth-aws-rapid-session-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: rapid @@ -547,7 +547,7 @@ tasks: tags: [auth-aws, auth-aws-session-creds] - name: test-auth-aws-rapid-web-identity commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: rapid @@ -559,7 +559,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-rapid-ecs commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: rapid @@ -571,7 +571,7 @@ tasks: tags: [auth-aws, auth-aws-ecs] - name: test-auth-aws-rapid-web-identity-session-name commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: rapid @@ -584,7 +584,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-latest-regular commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: latest @@ -596,7 +596,7 @@ tasks: tags: [auth-aws, auth-aws-regular] - name: test-auth-aws-latest-assume-role commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: latest @@ -608,7 +608,7 @@ tasks: tags: [auth-aws, auth-aws-assume-role] - name: test-auth-aws-latest-ec2 commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: latest @@ -620,7 +620,7 @@ tasks: tags: [auth-aws, auth-aws-ec2] - name: test-auth-aws-latest-env-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: latest @@ -632,7 +632,7 @@ tasks: tags: [auth-aws, auth-aws-env-creds] - name: test-auth-aws-latest-session-creds commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: latest @@ -644,7 +644,7 @@ tasks: tags: [auth-aws, auth-aws-session-creds] - name: test-auth-aws-latest-web-identity commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: latest @@ -656,7 +656,7 @@ tasks: tags: [auth-aws, auth-aws-web-identity] - name: test-auth-aws-latest-ecs commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: latest @@ -668,7 +668,7 @@ tasks: tags: [auth-aws, auth-aws-ecs] - name: test-auth-aws-latest-web-identity-session-name commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: AUTH_AWS: "1" VERSION: latest @@ -689,7 +689,7 @@ tasks: SUB_TEST_NAME: gcp - name: test-gcpkms-fail commands: - - func: bootstrap mongo-orchestration + - func: run-server - func: run tests vars: TEST_NAME: kms @@ -702,7 +702,7 @@ tasks: SUB_TEST_NAME: azure - name: test-azurekms-fail commands: - - func: bootstrap mongo-orchestration + - func: run-server - func: run tests vars: TEST_NAME: kms @@ -711,12 +711,12 @@ tasks: # Load balancer tests - name: test-load-balancer-auth-ssl commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: TOPOLOGY: sharded_cluster AUTH: auth SSL: ssl - LOAD_BALANCER: "true" + TEST_NAME: load_balancer - func: run tests vars: AUTH: auth @@ -725,12 +725,12 @@ tasks: tags: [load-balancer, auth, ssl] - name: test-load-balancer-noauth-ssl commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: TOPOLOGY: sharded_cluster AUTH: noauth SSL: ssl - LOAD_BALANCER: "true" + TEST_NAME: load_balancer - func: run tests vars: AUTH: noauth @@ -739,12 +739,12 @@ tasks: tags: [load-balancer, noauth, ssl] - name: test-load-balancer-noauth-nossl commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: TOPOLOGY: sharded_cluster AUTH: noauth SSL: nossl - LOAD_BALANCER: "true" + TEST_NAME: load_balancer - func: run tests vars: AUTH: noauth @@ -755,7 +755,7 @@ tasks: # Server tests - name: test-4.0-standalone-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: server @@ -775,7 +775,7 @@ tasks: - sync - name: test-4.0-standalone-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: server @@ -795,7 +795,7 @@ tasks: - async - name: test-4.0-standalone-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: server @@ -814,7 +814,7 @@ tasks: - sync_async - name: test-4.0-standalone-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: server @@ -834,7 +834,7 @@ tasks: - sync - name: test-4.0-standalone-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: server @@ -854,7 +854,7 @@ tasks: - async - name: test-4.0-standalone-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: server @@ -873,7 +873,7 @@ tasks: - sync_async - name: test-4.0-standalone-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: server @@ -893,7 +893,7 @@ tasks: - sync - name: test-4.0-standalone-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: server @@ -913,7 +913,7 @@ tasks: - async - name: test-4.0-standalone-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: server @@ -932,7 +932,7 @@ tasks: - sync_async - name: test-4.2-standalone-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: server @@ -952,7 +952,7 @@ tasks: - sync - name: test-4.2-standalone-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: server @@ -972,7 +972,7 @@ tasks: - async - name: test-4.2-standalone-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: server @@ -991,7 +991,7 @@ tasks: - sync_async - name: test-4.2-standalone-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: server @@ -1011,7 +1011,7 @@ tasks: - sync - name: test-4.2-standalone-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: server @@ -1031,7 +1031,7 @@ tasks: - async - name: test-4.2-standalone-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: server @@ -1050,7 +1050,7 @@ tasks: - sync_async - name: test-4.2-standalone-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: server @@ -1070,7 +1070,7 @@ tasks: - sync - name: test-4.2-standalone-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: server @@ -1090,7 +1090,7 @@ tasks: - async - name: test-4.2-standalone-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: server @@ -1109,7 +1109,7 @@ tasks: - sync_async - name: test-4.4-standalone-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: server @@ -1129,7 +1129,7 @@ tasks: - sync - name: test-4.4-standalone-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: server @@ -1149,7 +1149,7 @@ tasks: - async - name: test-4.4-standalone-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: server @@ -1168,7 +1168,7 @@ tasks: - sync_async - name: test-4.4-standalone-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: server @@ -1188,7 +1188,7 @@ tasks: - sync - name: test-4.4-standalone-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: server @@ -1208,7 +1208,7 @@ tasks: - async - name: test-4.4-standalone-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: server @@ -1227,7 +1227,7 @@ tasks: - sync_async - name: test-4.4-standalone-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: server @@ -1247,7 +1247,7 @@ tasks: - sync - name: test-4.4-standalone-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: server @@ -1267,7 +1267,7 @@ tasks: - async - name: test-4.4-standalone-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: server @@ -1286,7 +1286,7 @@ tasks: - sync_async - name: test-5.0-standalone-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: server @@ -1306,7 +1306,7 @@ tasks: - sync - name: test-5.0-standalone-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: server @@ -1326,7 +1326,7 @@ tasks: - async - name: test-5.0-standalone-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: server @@ -1345,7 +1345,7 @@ tasks: - sync_async - name: test-5.0-standalone-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: server @@ -1365,7 +1365,7 @@ tasks: - sync - name: test-5.0-standalone-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: server @@ -1385,7 +1385,7 @@ tasks: - async - name: test-5.0-standalone-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: server @@ -1404,7 +1404,7 @@ tasks: - sync_async - name: test-5.0-standalone-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: server @@ -1424,7 +1424,7 @@ tasks: - sync - name: test-5.0-standalone-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: server @@ -1444,7 +1444,7 @@ tasks: - async - name: test-5.0-standalone-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: server @@ -1463,7 +1463,7 @@ tasks: - sync_async - name: test-6.0-standalone-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: server @@ -1483,7 +1483,7 @@ tasks: - sync - name: test-6.0-standalone-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: server @@ -1503,7 +1503,7 @@ tasks: - async - name: test-6.0-standalone-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: server @@ -1522,7 +1522,7 @@ tasks: - sync_async - name: test-6.0-standalone-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: server @@ -1542,7 +1542,7 @@ tasks: - sync - name: test-6.0-standalone-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: server @@ -1562,7 +1562,7 @@ tasks: - async - name: test-6.0-standalone-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: server @@ -1581,7 +1581,7 @@ tasks: - sync_async - name: test-6.0-standalone-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: server @@ -1601,7 +1601,7 @@ tasks: - sync - name: test-6.0-standalone-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: server @@ -1621,7 +1621,7 @@ tasks: - async - name: test-6.0-standalone-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: server @@ -1640,7 +1640,7 @@ tasks: - sync_async - name: test-7.0-standalone-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: server @@ -1660,7 +1660,7 @@ tasks: - sync - name: test-7.0-standalone-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: server @@ -1680,7 +1680,7 @@ tasks: - async - name: test-7.0-standalone-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: server @@ -1699,7 +1699,7 @@ tasks: - sync_async - name: test-7.0-standalone-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: server @@ -1719,7 +1719,7 @@ tasks: - sync - name: test-7.0-standalone-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: server @@ -1739,7 +1739,7 @@ tasks: - async - name: test-7.0-standalone-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: server @@ -1758,7 +1758,7 @@ tasks: - sync_async - name: test-7.0-standalone-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: server @@ -1778,7 +1778,7 @@ tasks: - sync - name: test-7.0-standalone-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: server @@ -1798,7 +1798,7 @@ tasks: - async - name: test-7.0-standalone-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: server @@ -1817,7 +1817,7 @@ tasks: - sync_async - name: test-8.0-standalone-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: server @@ -1837,7 +1837,7 @@ tasks: - sync - name: test-8.0-standalone-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: server @@ -1857,7 +1857,7 @@ tasks: - async - name: test-8.0-standalone-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: server @@ -1876,7 +1876,7 @@ tasks: - sync_async - name: test-8.0-standalone-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: server @@ -1896,7 +1896,7 @@ tasks: - sync - name: test-8.0-standalone-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: server @@ -1916,7 +1916,7 @@ tasks: - async - name: test-8.0-standalone-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: server @@ -1935,7 +1935,7 @@ tasks: - sync_async - name: test-8.0-standalone-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: server @@ -1955,7 +1955,7 @@ tasks: - sync - name: test-8.0-standalone-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: server @@ -1975,7 +1975,7 @@ tasks: - async - name: test-8.0-standalone-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: server @@ -1994,7 +1994,7 @@ tasks: - sync_async - name: test-rapid-standalone-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: server @@ -2014,7 +2014,7 @@ tasks: - sync - name: test-rapid-standalone-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: server @@ -2034,7 +2034,7 @@ tasks: - async - name: test-rapid-standalone-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: server @@ -2053,7 +2053,7 @@ tasks: - sync_async - name: test-rapid-standalone-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: server @@ -2073,7 +2073,7 @@ tasks: - sync - name: test-rapid-standalone-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: server @@ -2093,7 +2093,7 @@ tasks: - async - name: test-rapid-standalone-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: server @@ -2112,7 +2112,7 @@ tasks: - sync_async - name: test-rapid-standalone-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: server @@ -2132,7 +2132,7 @@ tasks: - sync - name: test-rapid-standalone-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: server @@ -2152,7 +2152,7 @@ tasks: - async - name: test-rapid-standalone-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: server @@ -2171,7 +2171,7 @@ tasks: - sync_async - name: test-latest-standalone-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: server @@ -2191,7 +2191,7 @@ tasks: - sync - name: test-latest-standalone-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: server @@ -2211,7 +2211,7 @@ tasks: - async - name: test-latest-standalone-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: server @@ -2230,7 +2230,7 @@ tasks: - sync_async - name: test-latest-standalone-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: server @@ -2250,7 +2250,7 @@ tasks: - sync - name: test-latest-standalone-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: server @@ -2270,7 +2270,7 @@ tasks: - async - name: test-latest-standalone-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: server @@ -2289,7 +2289,7 @@ tasks: - sync_async - name: test-latest-standalone-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: server @@ -2309,7 +2309,7 @@ tasks: - sync - name: test-latest-standalone-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: server @@ -2329,7 +2329,7 @@ tasks: - async - name: test-latest-standalone-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: server @@ -2348,7 +2348,7 @@ tasks: - sync_async - name: test-4.0-replica_set-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: replica_set @@ -2368,7 +2368,7 @@ tasks: - sync - name: test-4.0-replica_set-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: replica_set @@ -2388,7 +2388,7 @@ tasks: - async - name: test-4.0-replica_set-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: replica_set @@ -2407,7 +2407,7 @@ tasks: - sync_async - name: test-4.0-replica_set-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: replica_set @@ -2427,7 +2427,7 @@ tasks: - sync - name: test-4.0-replica_set-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: replica_set @@ -2447,7 +2447,7 @@ tasks: - async - name: test-4.0-replica_set-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: replica_set @@ -2466,7 +2466,7 @@ tasks: - sync_async - name: test-4.0-replica_set-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: replica_set @@ -2486,7 +2486,7 @@ tasks: - sync - name: test-4.0-replica_set-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: replica_set @@ -2506,7 +2506,7 @@ tasks: - async - name: test-4.0-replica_set-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: replica_set @@ -2525,7 +2525,7 @@ tasks: - sync_async - name: test-4.2-replica_set-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: replica_set @@ -2545,7 +2545,7 @@ tasks: - sync - name: test-4.2-replica_set-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: replica_set @@ -2565,7 +2565,7 @@ tasks: - async - name: test-4.2-replica_set-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: replica_set @@ -2584,7 +2584,7 @@ tasks: - sync_async - name: test-4.2-replica_set-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: replica_set @@ -2604,7 +2604,7 @@ tasks: - sync - name: test-4.2-replica_set-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: replica_set @@ -2624,7 +2624,7 @@ tasks: - async - name: test-4.2-replica_set-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: replica_set @@ -2643,7 +2643,7 @@ tasks: - sync_async - name: test-4.2-replica_set-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: replica_set @@ -2663,7 +2663,7 @@ tasks: - sync - name: test-4.2-replica_set-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: replica_set @@ -2683,7 +2683,7 @@ tasks: - async - name: test-4.2-replica_set-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: replica_set @@ -2702,7 +2702,7 @@ tasks: - sync_async - name: test-4.4-replica_set-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: replica_set @@ -2722,7 +2722,7 @@ tasks: - sync - name: test-4.4-replica_set-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: replica_set @@ -2742,7 +2742,7 @@ tasks: - async - name: test-4.4-replica_set-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: replica_set @@ -2761,7 +2761,7 @@ tasks: - sync_async - name: test-4.4-replica_set-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: replica_set @@ -2781,7 +2781,7 @@ tasks: - sync - name: test-4.4-replica_set-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: replica_set @@ -2801,7 +2801,7 @@ tasks: - async - name: test-4.4-replica_set-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: replica_set @@ -2820,7 +2820,7 @@ tasks: - sync_async - name: test-4.4-replica_set-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: replica_set @@ -2840,7 +2840,7 @@ tasks: - sync - name: test-4.4-replica_set-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: replica_set @@ -2860,7 +2860,7 @@ tasks: - async - name: test-4.4-replica_set-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: replica_set @@ -2879,7 +2879,7 @@ tasks: - sync_async - name: test-5.0-replica_set-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: replica_set @@ -2899,7 +2899,7 @@ tasks: - sync - name: test-5.0-replica_set-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: replica_set @@ -2919,7 +2919,7 @@ tasks: - async - name: test-5.0-replica_set-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: replica_set @@ -2938,7 +2938,7 @@ tasks: - sync_async - name: test-5.0-replica_set-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: replica_set @@ -2958,7 +2958,7 @@ tasks: - sync - name: test-5.0-replica_set-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: replica_set @@ -2978,7 +2978,7 @@ tasks: - async - name: test-5.0-replica_set-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: replica_set @@ -2997,7 +2997,7 @@ tasks: - sync_async - name: test-5.0-replica_set-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: replica_set @@ -3017,7 +3017,7 @@ tasks: - sync - name: test-5.0-replica_set-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: replica_set @@ -3037,7 +3037,7 @@ tasks: - async - name: test-5.0-replica_set-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: replica_set @@ -3056,7 +3056,7 @@ tasks: - sync_async - name: test-6.0-replica_set-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: replica_set @@ -3076,7 +3076,7 @@ tasks: - sync - name: test-6.0-replica_set-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: replica_set @@ -3096,7 +3096,7 @@ tasks: - async - name: test-6.0-replica_set-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: replica_set @@ -3115,7 +3115,7 @@ tasks: - sync_async - name: test-6.0-replica_set-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: replica_set @@ -3135,7 +3135,7 @@ tasks: - sync - name: test-6.0-replica_set-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: replica_set @@ -3155,7 +3155,7 @@ tasks: - async - name: test-6.0-replica_set-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: replica_set @@ -3174,7 +3174,7 @@ tasks: - sync_async - name: test-6.0-replica_set-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: replica_set @@ -3194,7 +3194,7 @@ tasks: - sync - name: test-6.0-replica_set-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: replica_set @@ -3214,7 +3214,7 @@ tasks: - async - name: test-6.0-replica_set-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: replica_set @@ -3233,7 +3233,7 @@ tasks: - sync_async - name: test-7.0-replica_set-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: replica_set @@ -3253,7 +3253,7 @@ tasks: - sync - name: test-7.0-replica_set-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: replica_set @@ -3273,7 +3273,7 @@ tasks: - async - name: test-7.0-replica_set-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: replica_set @@ -3292,7 +3292,7 @@ tasks: - sync_async - name: test-7.0-replica_set-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: replica_set @@ -3312,7 +3312,7 @@ tasks: - sync - name: test-7.0-replica_set-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: replica_set @@ -3332,7 +3332,7 @@ tasks: - async - name: test-7.0-replica_set-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: replica_set @@ -3351,7 +3351,7 @@ tasks: - sync_async - name: test-7.0-replica_set-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: replica_set @@ -3371,7 +3371,7 @@ tasks: - sync - name: test-7.0-replica_set-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: replica_set @@ -3391,7 +3391,7 @@ tasks: - async - name: test-7.0-replica_set-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: replica_set @@ -3410,7 +3410,7 @@ tasks: - sync_async - name: test-8.0-replica_set-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: replica_set @@ -3430,7 +3430,7 @@ tasks: - sync - name: test-8.0-replica_set-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: replica_set @@ -3450,7 +3450,7 @@ tasks: - async - name: test-8.0-replica_set-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: replica_set @@ -3469,7 +3469,7 @@ tasks: - sync_async - name: test-8.0-replica_set-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: replica_set @@ -3489,7 +3489,7 @@ tasks: - sync - name: test-8.0-replica_set-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: replica_set @@ -3509,7 +3509,7 @@ tasks: - async - name: test-8.0-replica_set-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: replica_set @@ -3528,7 +3528,7 @@ tasks: - sync_async - name: test-8.0-replica_set-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: replica_set @@ -3548,7 +3548,7 @@ tasks: - sync - name: test-8.0-replica_set-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: replica_set @@ -3568,7 +3568,7 @@ tasks: - async - name: test-8.0-replica_set-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: replica_set @@ -3587,7 +3587,7 @@ tasks: - sync_async - name: test-rapid-replica_set-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: replica_set @@ -3607,7 +3607,7 @@ tasks: - sync - name: test-rapid-replica_set-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: replica_set @@ -3627,7 +3627,7 @@ tasks: - async - name: test-rapid-replica_set-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: replica_set @@ -3646,7 +3646,7 @@ tasks: - sync_async - name: test-rapid-replica_set-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: replica_set @@ -3666,7 +3666,7 @@ tasks: - sync - name: test-rapid-replica_set-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: replica_set @@ -3686,7 +3686,7 @@ tasks: - async - name: test-rapid-replica_set-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: replica_set @@ -3705,7 +3705,7 @@ tasks: - sync_async - name: test-rapid-replica_set-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: replica_set @@ -3725,7 +3725,7 @@ tasks: - sync - name: test-rapid-replica_set-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: replica_set @@ -3745,7 +3745,7 @@ tasks: - async - name: test-rapid-replica_set-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: replica_set @@ -3764,7 +3764,7 @@ tasks: - sync_async - name: test-latest-replica_set-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: replica_set @@ -3784,7 +3784,7 @@ tasks: - sync - name: test-latest-replica_set-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: replica_set @@ -3804,7 +3804,7 @@ tasks: - async - name: test-latest-replica_set-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: replica_set @@ -3823,7 +3823,7 @@ tasks: - sync_async - name: test-latest-replica_set-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: replica_set @@ -3843,7 +3843,7 @@ tasks: - sync - name: test-latest-replica_set-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: replica_set @@ -3863,7 +3863,7 @@ tasks: - async - name: test-latest-replica_set-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: replica_set @@ -3882,7 +3882,7 @@ tasks: - sync_async - name: test-latest-replica_set-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: replica_set @@ -3902,7 +3902,7 @@ tasks: - sync - name: test-latest-replica_set-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: replica_set @@ -3922,7 +3922,7 @@ tasks: - async - name: test-latest-replica_set-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: replica_set @@ -3941,7 +3941,7 @@ tasks: - sync_async - name: test-4.0-sharded_cluster-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: sharded_cluster @@ -3961,7 +3961,7 @@ tasks: - sync - name: test-4.0-sharded_cluster-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: sharded_cluster @@ -3981,7 +3981,7 @@ tasks: - async - name: test-4.0-sharded_cluster-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: sharded_cluster @@ -4000,7 +4000,7 @@ tasks: - sync_async - name: test-4.0-sharded_cluster-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: sharded_cluster @@ -4020,7 +4020,7 @@ tasks: - sync - name: test-4.0-sharded_cluster-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: sharded_cluster @@ -4040,7 +4040,7 @@ tasks: - async - name: test-4.0-sharded_cluster-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: sharded_cluster @@ -4059,7 +4059,7 @@ tasks: - sync_async - name: test-4.0-sharded_cluster-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: sharded_cluster @@ -4079,7 +4079,7 @@ tasks: - sync - name: test-4.0-sharded_cluster-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: sharded_cluster @@ -4099,7 +4099,7 @@ tasks: - async - name: test-4.0-sharded_cluster-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.0" TOPOLOGY: sharded_cluster @@ -4118,7 +4118,7 @@ tasks: - sync_async - name: test-4.2-sharded_cluster-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: sharded_cluster @@ -4138,7 +4138,7 @@ tasks: - sync - name: test-4.2-sharded_cluster-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: sharded_cluster @@ -4158,7 +4158,7 @@ tasks: - async - name: test-4.2-sharded_cluster-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: sharded_cluster @@ -4177,7 +4177,7 @@ tasks: - sync_async - name: test-4.2-sharded_cluster-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: sharded_cluster @@ -4197,7 +4197,7 @@ tasks: - sync - name: test-4.2-sharded_cluster-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: sharded_cluster @@ -4217,7 +4217,7 @@ tasks: - async - name: test-4.2-sharded_cluster-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: sharded_cluster @@ -4236,7 +4236,7 @@ tasks: - sync_async - name: test-4.2-sharded_cluster-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: sharded_cluster @@ -4256,7 +4256,7 @@ tasks: - sync - name: test-4.2-sharded_cluster-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: sharded_cluster @@ -4276,7 +4276,7 @@ tasks: - async - name: test-4.2-sharded_cluster-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.2" TOPOLOGY: sharded_cluster @@ -4295,7 +4295,7 @@ tasks: - sync_async - name: test-4.4-sharded_cluster-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: sharded_cluster @@ -4315,7 +4315,7 @@ tasks: - sync - name: test-4.4-sharded_cluster-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: sharded_cluster @@ -4335,7 +4335,7 @@ tasks: - async - name: test-4.4-sharded_cluster-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: sharded_cluster @@ -4354,7 +4354,7 @@ tasks: - sync_async - name: test-4.4-sharded_cluster-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: sharded_cluster @@ -4374,7 +4374,7 @@ tasks: - sync - name: test-4.4-sharded_cluster-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: sharded_cluster @@ -4394,7 +4394,7 @@ tasks: - async - name: test-4.4-sharded_cluster-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: sharded_cluster @@ -4413,7 +4413,7 @@ tasks: - sync_async - name: test-4.4-sharded_cluster-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: sharded_cluster @@ -4433,7 +4433,7 @@ tasks: - sync - name: test-4.4-sharded_cluster-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: sharded_cluster @@ -4453,7 +4453,7 @@ tasks: - async - name: test-4.4-sharded_cluster-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "4.4" TOPOLOGY: sharded_cluster @@ -4472,7 +4472,7 @@ tasks: - sync_async - name: test-5.0-sharded_cluster-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: sharded_cluster @@ -4492,7 +4492,7 @@ tasks: - sync - name: test-5.0-sharded_cluster-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: sharded_cluster @@ -4512,7 +4512,7 @@ tasks: - async - name: test-5.0-sharded_cluster-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: sharded_cluster @@ -4531,7 +4531,7 @@ tasks: - sync_async - name: test-5.0-sharded_cluster-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: sharded_cluster @@ -4551,7 +4551,7 @@ tasks: - sync - name: test-5.0-sharded_cluster-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: sharded_cluster @@ -4571,7 +4571,7 @@ tasks: - async - name: test-5.0-sharded_cluster-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: sharded_cluster @@ -4590,7 +4590,7 @@ tasks: - sync_async - name: test-5.0-sharded_cluster-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: sharded_cluster @@ -4610,7 +4610,7 @@ tasks: - sync - name: test-5.0-sharded_cluster-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: sharded_cluster @@ -4630,7 +4630,7 @@ tasks: - async - name: test-5.0-sharded_cluster-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "5.0" TOPOLOGY: sharded_cluster @@ -4649,7 +4649,7 @@ tasks: - sync_async - name: test-6.0-sharded_cluster-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: sharded_cluster @@ -4669,7 +4669,7 @@ tasks: - sync - name: test-6.0-sharded_cluster-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: sharded_cluster @@ -4689,7 +4689,7 @@ tasks: - async - name: test-6.0-sharded_cluster-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: sharded_cluster @@ -4708,7 +4708,7 @@ tasks: - sync_async - name: test-6.0-sharded_cluster-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: sharded_cluster @@ -4728,7 +4728,7 @@ tasks: - sync - name: test-6.0-sharded_cluster-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: sharded_cluster @@ -4748,7 +4748,7 @@ tasks: - async - name: test-6.0-sharded_cluster-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: sharded_cluster @@ -4767,7 +4767,7 @@ tasks: - sync_async - name: test-6.0-sharded_cluster-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: sharded_cluster @@ -4787,7 +4787,7 @@ tasks: - sync - name: test-6.0-sharded_cluster-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: sharded_cluster @@ -4807,7 +4807,7 @@ tasks: - async - name: test-6.0-sharded_cluster-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "6.0" TOPOLOGY: sharded_cluster @@ -4826,7 +4826,7 @@ tasks: - sync_async - name: test-7.0-sharded_cluster-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: sharded_cluster @@ -4846,7 +4846,7 @@ tasks: - sync - name: test-7.0-sharded_cluster-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: sharded_cluster @@ -4866,7 +4866,7 @@ tasks: - async - name: test-7.0-sharded_cluster-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: sharded_cluster @@ -4885,7 +4885,7 @@ tasks: - sync_async - name: test-7.0-sharded_cluster-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: sharded_cluster @@ -4905,7 +4905,7 @@ tasks: - sync - name: test-7.0-sharded_cluster-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: sharded_cluster @@ -4925,7 +4925,7 @@ tasks: - async - name: test-7.0-sharded_cluster-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: sharded_cluster @@ -4944,7 +4944,7 @@ tasks: - sync_async - name: test-7.0-sharded_cluster-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: sharded_cluster @@ -4964,7 +4964,7 @@ tasks: - sync - name: test-7.0-sharded_cluster-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: sharded_cluster @@ -4984,7 +4984,7 @@ tasks: - async - name: test-7.0-sharded_cluster-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "7.0" TOPOLOGY: sharded_cluster @@ -5003,7 +5003,7 @@ tasks: - sync_async - name: test-8.0-sharded_cluster-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: sharded_cluster @@ -5023,7 +5023,7 @@ tasks: - sync - name: test-8.0-sharded_cluster-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: sharded_cluster @@ -5043,7 +5043,7 @@ tasks: - async - name: test-8.0-sharded_cluster-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: sharded_cluster @@ -5062,7 +5062,7 @@ tasks: - sync_async - name: test-8.0-sharded_cluster-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: sharded_cluster @@ -5082,7 +5082,7 @@ tasks: - sync - name: test-8.0-sharded_cluster-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: sharded_cluster @@ -5102,7 +5102,7 @@ tasks: - async - name: test-8.0-sharded_cluster-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: sharded_cluster @@ -5121,7 +5121,7 @@ tasks: - sync_async - name: test-8.0-sharded_cluster-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: sharded_cluster @@ -5141,7 +5141,7 @@ tasks: - sync - name: test-8.0-sharded_cluster-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: sharded_cluster @@ -5161,7 +5161,7 @@ tasks: - async - name: test-8.0-sharded_cluster-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: "8.0" TOPOLOGY: sharded_cluster @@ -5180,7 +5180,7 @@ tasks: - sync_async - name: test-rapid-sharded_cluster-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: sharded_cluster @@ -5200,7 +5200,7 @@ tasks: - sync - name: test-rapid-sharded_cluster-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: sharded_cluster @@ -5220,7 +5220,7 @@ tasks: - async - name: test-rapid-sharded_cluster-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: sharded_cluster @@ -5239,7 +5239,7 @@ tasks: - sync_async - name: test-rapid-sharded_cluster-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: sharded_cluster @@ -5259,7 +5259,7 @@ tasks: - sync - name: test-rapid-sharded_cluster-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: sharded_cluster @@ -5279,7 +5279,7 @@ tasks: - async - name: test-rapid-sharded_cluster-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: sharded_cluster @@ -5298,7 +5298,7 @@ tasks: - sync_async - name: test-rapid-sharded_cluster-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: sharded_cluster @@ -5318,7 +5318,7 @@ tasks: - sync - name: test-rapid-sharded_cluster-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: sharded_cluster @@ -5338,7 +5338,7 @@ tasks: - async - name: test-rapid-sharded_cluster-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: rapid TOPOLOGY: sharded_cluster @@ -5357,7 +5357,7 @@ tasks: - sync_async - name: test-latest-sharded_cluster-auth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: sharded_cluster @@ -5377,7 +5377,7 @@ tasks: - sync - name: test-latest-sharded_cluster-auth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: sharded_cluster @@ -5397,7 +5397,7 @@ tasks: - async - name: test-latest-sharded_cluster-auth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: sharded_cluster @@ -5416,7 +5416,7 @@ tasks: - sync_async - name: test-latest-sharded_cluster-noauth-ssl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: sharded_cluster @@ -5436,7 +5436,7 @@ tasks: - sync - name: test-latest-sharded_cluster-noauth-ssl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: sharded_cluster @@ -5456,7 +5456,7 @@ tasks: - async - name: test-latest-sharded_cluster-noauth-ssl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: sharded_cluster @@ -5475,7 +5475,7 @@ tasks: - sync_async - name: test-latest-sharded_cluster-noauth-nossl-sync commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: sharded_cluster @@ -5495,7 +5495,7 @@ tasks: - sync - name: test-latest-sharded_cluster-noauth-nossl-async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: sharded_cluster @@ -5515,7 +5515,7 @@ tasks: - async - name: test-latest-sharded_cluster-noauth-nossl-sync_async commands: - - func: bootstrap mongo-orchestration + - func: run-server vars: VERSION: latest TOPOLOGY: sharded_cluster diff --git a/.evergreen/scripts/bootstrap-mongo-orchestration.sh b/.evergreen/scripts/bootstrap-mongo-orchestration.sh deleted file mode 100755 index af38edd095..0000000000 --- a/.evergreen/scripts/bootstrap-mongo-orchestration.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -set -eu - -HERE=$(dirname ${BASH_SOURCE:-$0}) -HERE="$( cd -- "$HERE" > /dev/null 2>&1 && pwd )" -ROOT=$(dirname "$(dirname $HERE)") - -if [ -z "${TEST_CRYPT_SHARED:-}" ]; then - export SKIP_CRYPT_SHARED=1 -fi - -# Override the tls files if applicable. -if [ "${SSL:-}" == "ssl" ]; then - export TLS_CERT_KEY_FILE=${ROOT}/test/certificates/client.pem - export TLS_PEM_KEY_FILE=${ROOT}/test/certificates/server.pem - export TLS_CA_FILE=${ROOT}/test/certificates/ca.pem -fi - -MONGODB_VERSION=${VERSION:-} \ - TOPOLOGY=${TOPOLOGY:-} \ - AUTH=${AUTH:-} \ - SSL=${SSL:-} \ - STORAGE_ENGINE=${STORAGE_ENGINE:-} \ - DISABLE_TEST_COMMANDS=${DISABLE_TEST_COMMANDS:-} \ - ORCHESTRATION_FILE=${ORCHESTRATION_FILE:-} \ - REQUIRE_API_VERSION=${REQUIRE_API_VERSION:-} \ - LOAD_BALANCER=${LOAD_BALANCER:-} \ - bash ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh -# run-orchestration generates expansion file with the MONGODB_URI for the cluster diff --git a/.evergreen/scripts/generate_config.py b/.evergreen/scripts/generate_config.py index 3c731a1f9a..03b4619899 100644 --- a/.evergreen/scripts/generate_config.py +++ b/.evergreen/scripts/generate_config.py @@ -795,20 +795,20 @@ def create_server_tasks(): for topo, version, (auth, ssl), sync in product(TOPOLOGIES, ALL_VERSIONS, AUTH_SSLS, SYNCS): name = f"test-{version}-{topo}-{auth}-{ssl}-{sync}".lower() tags = [version, topo, auth, ssl, sync] - bootstrap_vars = dict( + server_vars = dict( VERSION=version, TOPOLOGY=topo if topo != "standalone" else "server", AUTH=auth, SSL=ssl, ) - bootstrap_func = FunctionCall(func="bootstrap mongo-orchestration", vars=bootstrap_vars) + server_func = FunctionCall(func="run-server", vars=server_vars) test_vars = dict(AUTH=auth, SSL=ssl, SYNC=sync) if sync == "sync": test_vars["TEST_NAME"] = "default_sync" elif sync == "async": test_vars["TEST_NAME"] = "default_async" test_func = FunctionCall(func="run tests", vars=test_vars) - tasks.append(EvgTask(name=name, tags=tags, commands=[bootstrap_func, test_func])) + tasks.append(EvgTask(name=name, tags=tags, commands=[server_func, test_func])) return tasks @@ -817,11 +817,13 @@ def create_load_balancer_tasks(): for auth, ssl in AUTH_SSLS: name = f"test-load-balancer-{auth}-{ssl}".lower() tags = ["load-balancer", auth, ssl] - bootstrap_vars = dict(TOPOLOGY="sharded_cluster", AUTH=auth, SSL=ssl, LOAD_BALANCER="true") - bootstrap_func = FunctionCall(func="bootstrap mongo-orchestration", vars=bootstrap_vars) + server_vars = dict( + TOPOLOGY="sharded_cluster", AUTH=auth, SSL=ssl, TEST_NAME="load_balancer" + ) + server_func = FunctionCall(func="run-server", vars=server_vars) test_vars = dict(AUTH=auth, SSL=ssl, TEST_NAME="load_balancer") test_func = FunctionCall(func="run tests", vars=test_vars) - tasks.append(EvgTask(name=name, tags=tags, commands=[bootstrap_func, test_func])) + tasks.append(EvgTask(name=name, tags=tags, commands=[server_func, test_func])) return tasks @@ -837,7 +839,7 @@ def create_kms_tasks(): sub_test_name += "-fail" commands = [] if not success: - commands.append(FunctionCall(func="bootstrap mongo-orchestration")) + commands.append(FunctionCall(func="run-server")) test_vars = dict(TEST_NAME="kms", SUB_TEST_NAME=sub_test_name) test_func = FunctionCall(func="run tests", vars=test_vars) commands.append(test_func) @@ -859,15 +861,15 @@ def create_aws_tasks(): for version in get_versions_from("4.4"): base_name = f"test-auth-aws-{version}" base_tags = ["auth-aws"] - bootstrap_vars = dict(AUTH_AWS="1", VERSION=version) - bootstrap_func = FunctionCall(func="bootstrap mongo-orchestration", vars=bootstrap_vars) + server_vars = dict(AUTH_AWS="1", VERSION=version) + server_func = FunctionCall(func="run-server", vars=server_vars) assume_func = FunctionCall(func="assume ec2 role") for test_type in aws_test_types: tags = [*base_tags, f"auth-aws-{test_type}"] name = f"{base_name}-{test_type}" test_vars = dict(TEST_NAME="auth_aws", SUB_TEST_NAME=test_type) test_func = FunctionCall(func="run tests", vars=test_vars) - funcs = [bootstrap_func, assume_func, test_func] + funcs = [server_func, assume_func, test_func] tasks.append(EvgTask(name=name, tags=tags, commands=funcs)) tags = [*base_tags, "auth-aws-web-identity"] @@ -876,7 +878,7 @@ def create_aws_tasks(): TEST_NAME="auth_aws", SUB_TEST_NAME="web-identity", AWS_ROLE_SESSION_NAME="test" ) test_func = FunctionCall(func="run tests", vars=test_vars) - funcs = [bootstrap_func, assume_func, test_func] + funcs = [server_func, assume_func, test_func] tasks.append(EvgTask(name=name, tags=tags, commands=funcs)) return tasks diff --git a/.evergreen/scripts/run-server.sh b/.evergreen/scripts/run-server.sh new file mode 100755 index 0000000000..298eedcd3e --- /dev/null +++ b/.evergreen/scripts/run-server.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -eu + +HERE=$(dirname ${BASH_SOURCE:-$0}) + +# Try to source the env file. +if [ -f $HERE/env.sh ]; then + echo "Sourcing env file" + source $HERE/env.sh +fi + +uv run $HERE/run_server.py "$@" diff --git a/.evergreen/scripts/run_server.py b/.evergreen/scripts/run_server.py new file mode 100644 index 0000000000..51fe8a67f1 --- /dev/null +++ b/.evergreen/scripts/run_server.py @@ -0,0 +1,50 @@ +from __future__ import annotations + +import os +from typing import Any + +from utils import DRIVERS_TOOLS, ROOT, get_test_options, run_command + + +def set_env(name: str, value: Any = "1") -> None: + os.environ[name] = str(value) + + +def start_server(): + opts, extra_opts = get_test_options( + "Run a MongoDB server. All given flags will be passed to run-orchestration.sh in DRIVERS_TOOLS.", + require_sub_test_name=False, + allow_extra_opts=True, + ) + test_name = opts.test_name + + if opts.auth: + extra_opts.append("--auth") + + if opts.verbose: + extra_opts.append("-v") + elif opts.quiet: + extra_opts.append("-q") + + if test_name == "auth_aws": + set_env("AUTH_AWS") + + elif test_name == "load_balancer": + set_env("LOAD_BALANCER") + + if not os.environ.get("TEST_CRYPT_SHARED"): + set_env("SKIP_CRYPT_SHARED") + + if opts.ssl: + extra_opts.append("--ssl") + certs = ROOT / "test/certificates" + set_env("TLS_CERT_KEY_FILE", certs / "client.pem") + set_env("TLS_PEM_KEY_FILE", certs / "server.pem") + set_env("TLS_CA_FILE", certs / "ca.pem") + + cmd = ["bash", f"{DRIVERS_TOOLS}/.evergreen/run-orchestration.sh", *extra_opts] + run_command(cmd, cwd=DRIVERS_TOOLS) + + +if __name__ == "__main__": + start_server() diff --git a/.evergreen/scripts/setup_tests.py b/.evergreen/scripts/setup_tests.py index eff7bed773..2fa5e69cbc 100644 --- a/.evergreen/scripts/setup_tests.py +++ b/.evergreen/scripts/setup_tests.py @@ -1,9 +1,7 @@ from __future__ import annotations -import argparse import base64 import io -import logging import os import platform import shutil @@ -19,7 +17,9 @@ LOGGER, PLATFORM, ROOT, + TEST_SUITE_MAP, Distro, + get_test_options, read_env, run_command, write_env, @@ -28,30 +28,6 @@ # Passthrough environment variables. PASS_THROUGH_ENV = ["GREEN_FRAMEWORK", "NO_EXT", "MONGODB_API_VERSION", "DEBUG_LOG"] -# Map the test name to a test suite. -TEST_SUITE_MAP = { - "atlas": "atlas", - "auth_aws": "auth_aws", - "auth_oidc": "auth_oidc", - "data_lake": "data_lake", - "default": "", - "default_async": "default_async", - "default_sync": "default", - "encryption": "encryption", - "enterprise_auth": "auth", - "index_management": "index_management", - "kms": "kms", - "load_balancer": "load_balancer", - "mockupdb": "mockupdb", - "pyopenssl": "", - "ocsp": "ocsp", - "perf": "perf", - "serverless": "", -} - -# Tests that require a sub test suite. -SUB_TEST_REQUIRED = ["auth_aws", "kms"] - # Map the test name to test extra. EXTRAS_MAP = { "auth_aws": "aws", @@ -73,35 +49,6 @@ def is_set(var: str) -> bool: return len(value.strip()) > 0 -def get_options(): - parser = argparse.ArgumentParser( - description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter - ) - parser.add_argument( - "test_name", - choices=sorted(TEST_SUITE_MAP), - nargs="?", - default="default", - help="The name of the test suite to set up, typically the same name as a pytest marker.", - ) - parser.add_argument("sub_test_name", nargs="?", help="The sub test name, for example 'azure'") - parser.add_argument( - "--verbose", "-v", action="store_true", help="Whether to log at the DEBUG level" - ) - parser.add_argument( - "--quiet", "-q", action="store_true", help="Whether to log at the WARNING level" - ) - parser.add_argument("--auth", action="store_true", help="Whether to add authentication") - parser.add_argument("--ssl", action="store_true", help="Whether to add TLS configuration") - # Get the options. - opts = parser.parse_args() - if opts.verbose: - LOGGER.setLevel(logging.DEBUG) - elif opts.quiet: - LOGGER.setLevel(logging.WARNING) - return opts - - def get_distro() -> Distro: name = "" version_id = "" @@ -166,20 +113,11 @@ def setup_libmongocrypt(): def handle_test_env() -> None: - opts = get_options() + opts, _ = get_test_options("Set up the test environment and services.") test_name = opts.test_name sub_test_name = opts.sub_test_name - if test_name in SUB_TEST_REQUIRED and not sub_test_name: - raise ValueError(f"Test '{test_name}' requires a sub_test_name") - AUTH = os.environ.get("AUTH", "noauth") - if opts.auth or "auth" in test_name: - AUTH = "auth" - # 'auth_aws ecs' shouldn't have extra auth set. - if test_name == "auth_aws" and sub_test_name == "ecs": - AUTH = "noauth" - SSL = os.environ.get("SSL", "nossl") - if opts.ssl: - SSL = "ssl" + AUTH = "auth" if opts.auth else "noauth" + SSL = "ssl" if opts.ssl else "nossl" TEST_ARGS = "" # Start compiling the args we'll pass to uv. diff --git a/.evergreen/scripts/stop-server.sh b/.evergreen/scripts/stop-server.sh new file mode 100755 index 0000000000..7db20d4bf3 --- /dev/null +++ b/.evergreen/scripts/stop-server.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -eu + +HERE=$(dirname ${BASH_SOURCE:-$0}) +HERE="$( cd -- "$HERE" > /dev/null 2>&1 && pwd )" + +# Try to source the env file. +if [ -f $HERE/env.sh ]; then + echo "Sourcing env file" + source $HERE/env.sh +fi + +bash ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh diff --git a/.evergreen/scripts/utils.py b/.evergreen/scripts/utils.py index d830275def..dcb50cc4dc 100644 --- a/.evergreen/scripts/utils.py +++ b/.evergreen/scripts/utils.py @@ -1,5 +1,6 @@ from __future__ import annotations +import argparse import dataclasses import logging import os @@ -26,6 +27,89 @@ class Distro: arch: str +# Map the test name to a test suite. +TEST_SUITE_MAP = { + "atlas": "atlas", + "auth_aws": "auth_aws", + "auth_oidc": "auth_oidc", + "data_lake": "data_lake", + "default": "", + "default_async": "default_async", + "default_sync": "default", + "encryption": "encryption", + "enterprise_auth": "auth", + "index_management": "index_management", + "kms": "kms", + "load_balancer": "load_balancer", + "mockupdb": "mockupdb", + "pyopenssl": "", + "ocsp": "ocsp", + "perf": "perf", + "serverless": "", +} + +# Tests that require a sub test suite. +SUB_TEST_REQUIRED = ["auth_aws", "kms"] + + +def get_test_options( + description, require_sub_test_name=True, allow_extra_opts=False +) -> tuple[argparse.Namespace, list[str]]: + parser = argparse.ArgumentParser( + description=description, formatter_class=argparse.RawDescriptionHelpFormatter + ) + if require_sub_test_name: + parser.add_argument( + "test_name", + choices=sorted(TEST_SUITE_MAP), + nargs="?", + default="default", + help="The optional name of the test suite to set up, typically the same name as a pytest marker.", + ) + parser.add_argument( + "sub_test_name", nargs="?", help="The optional sub test name, for example 'azure'." + ) + else: + parser.add_argument( + "test_name", + choices=sorted(TEST_SUITE_MAP), + nargs="?", + default="default", + help="The optional name of the test suite to be run, which informs the server configuration.", + ) + parser.add_argument( + "--verbose", "-v", action="store_true", help="Whether to log at the DEBUG level" + ) + parser.add_argument( + "--quiet", "-q", action="store_true", help="Whether to log at the WARNING level" + ) + parser.add_argument("--auth", action="store_true", help="Whether to add authentication") + parser.add_argument("--ssl", action="store_true", help="Whether to add TLS configuration") + # Get the options. + if not allow_extra_opts: + opts, extra_opts = parser.parse_args(), [] + else: + opts, extra_opts = parser.parse_known_args() + if opts.verbose: + LOGGER.setLevel(logging.DEBUG) + elif opts.quiet: + LOGGER.setLevel(logging.WARNING) + + # Handle validation and environment variable overrides. + test_name = opts.test_name + sub_test_name = opts.sub_test_name if require_sub_test_name else "" + if require_sub_test_name and test_name in SUB_TEST_REQUIRED and not sub_test_name: + raise ValueError(f"Test '{test_name}' requires a sub_test_name") + if "auth" in test_name or os.environ.get("AUTH") == "auth": + opts.auth = True + # 'auth_aws ecs' shouldn't have extra auth set. + if test_name == "auth_aws" and sub_test_name == "ecs": + opts.auth = False + if os.environ.get("SSL") == "ssl": + opts.ssl = True + return opts, extra_opts + + def read_env(path: Path | str) -> dict[str, Any]: config = dict() with Path(path).open() as fid: @@ -47,8 +131,10 @@ def write_env(name: str, value: Any = "1") -> None: fid.write(f'export {name}="{value}"\n') -def run_command(cmd: str, **kwargs: Any) -> None: - LOGGER.info("Running command %s...", cmd) +def run_command(cmd: str | list[str], **kwargs: Any) -> None: + if isinstance(cmd, list): + cmd = " ".join(cmd) + LOGGER.info("Running command '%s'...", cmd) kwargs.setdefault("check", True) subprocess.run(shlex.split(cmd), **kwargs) # noqa: PLW1510, S603 - LOGGER.info("Running command %s... done.", cmd) + LOGGER.info("Running command '%s'... done.", cmd) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ccce0c1ae7..b3423ed402 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -204,25 +204,56 @@ the pages will re-render and the browser will automatically refresh. `just test test/test_change_stream.py::TestUnifiedChangeStreamsErrors::test_change_stream_errors_on_ElectionInProgress`. - Use the `-k` argument to select tests by pattern. -## Running Load Balancer Tests Locally -- Install `haproxy` (available as `brew install haproxy` on macOS). -- Clone `drivers-evergreen-tools`: - `git clone git@github.com:mongodb-labs/drivers-evergreen-tools.git`. -- Start the servers using - `LOAD_BALANCER=true TOPOLOGY=sharded_cluster AUTH=noauth SSL=nossl MONGODB_VERSION=6.0 DRIVERS_TOOLS=$PWD/drivers-evergreen-tools MONGO_ORCHESTRATION_HOME=$PWD/drivers-evergreen-tools/.evergreen/orchestration $PWD/drivers-evergreen-tools/.evergreen/run-orchestration.sh`. -- Set up the test using: - `MONGODB_URI='mongodb://localhost:27017,localhost:27018/' just setup-tests load-balancer`. -- Run the tests from the `pymongo` checkout directory using: - `just run-tests`. - -## Running Encryption Tests Locally +## Running tests that require secrets, services, or other configuration + +### Prerequisites + - Clone `drivers-evergreen-tools`: - `git clone git@github.com:mongodb-labs/drivers-evergreen-tools.git`. -- Run `export DRIVERS_TOOLS=$PWD/drivers-evergreen-tools` -- Run `AWS_PROFILE= just setup-tests encryption` after setting up your AWS profile with `aws configure sso`. + `git clone git@github.com:mongodb-labs/drivers-evergreen-tools.git`. +- Run `export DRIVERS_TOOLS=$PWD/drivers-evergreen-tools`. This can be put into a `.bashrc` file + for convenience. +- Set up access to [Drivers test secrets](https://github.com/mongodb-labs/drivers-evergreen-tools/tree/master/.evergreen/secrets_handling#secrets-handling). + +### Usage + +- Run `just run-server` with optional args to set up the server. + All given flags will be passed to `run-orchestration.sh` in `DRIVERS_TOOLS`. +- Run `just setup-tests` with optional args to set up the test environment, secrets, etc. +- Run `just run-tests` to run the tests in an appropriate Python environment. +- When done, run `just teardown-tests` to clean up and `just stop-server` to stop the server. + +## Encryption tests + +- Run `just run-server` to start the server. +- Run `just setup-tests encryption`. - Run the tests with `just run-tests`. -- When done, run `just teardown-tests` to clean up. + +### Load balancer tests + +- Install `haproxy` (available as `brew install haproxy` on macOS). +- Start the server with `just run-server load_balancer`. +- Set up the test with `just setup-tests load_balancer`. +- Run the tests with `just run-tests`. + +## AWS tests + +- Run `just run-server auth_aws` to start the server. +- Run `just setup-tests auth_aws ` to set up the AWS test. +- Run the tests with `just run-tests`. + +## KMS tests + +For KMS tests that are run locally, and expected to fail, in this case using `azure`: + +- Run `just run-server`. +- Run `just setup-tests kms azure-fail`. +- Run `just run-tests`. + +For KMS tests that run remotely and are expected to pass, in this case using `gcp`: + +- Run `just setup-tests kms gcp`. +- Run `just run-tests`. ## Enable Debug Logs - Use `-o log_cli_level="DEBUG" -o log_cli=1` with `just test` or `pytest`. diff --git a/justfile b/justfile index 5a5a05cd5a..43aefb3f1a 100644 --- a/justfile +++ b/justfile @@ -71,3 +71,11 @@ setup-tests *args="": [group('test')] teardown-tests: bash .evergreen/scripts/teardown-tests.sh + +[group('server')] +run-server *args="": + bash .evergreen/scripts/run-server.sh {{args}} + +[group('server')] +stop-server: + bash .evergreen/scripts/stop-server.sh