@@ -238,27 +238,13 @@ functions:
238238 . ./set-temp-creds.sh
239239 popd
240240
241- MONGODB_URI="${MONGODB_URI}" \
242- AUTH=${AUTH} SSL=${SSL} TEST_CSFLE=true \
243- MONGODB_API_VERSION="${MONGODB_API_VERSION}"
244-
245241 export MONGODB_API_VERSION="${MONGODB_API_VERSION}"
246242 export AUTH="auth"
247243 export SSL="ssl"
248- export SERVERLESS="1"
249- export SERVERLESS_ATLAS_USER="${SERVERLESS_ATLAS_USER}"
250- export SERVERLESS_ATLAS_PASSWORD="${SERVERLESS_ATLAS_PASSWORD}"
251- export SERVERLESS_URI="${SERVERLESS_URI}"
244+ export TEST_CSFLE=true
252245
253- echo "setting SERVERLESS_URI: $SERVERLESS_URI"
254-
255- export MONGODB_URI="${SERVERLESS_URI}"
256- export SINGLE_MONGOS_LB_URI="${SERVERLESS_URI}"
257-
258- # Setting MULTI_MONGOS to the SERVERLESS_URI is intentional
259- # LB tests pick one host out of the comma separated list
260- # so just passing the one host is equivalent
261- export MULTI_MONGOS_LB_URI="${SERVERLESS_URI}"
246+ source secrets-export.sh
247+ source serverless.env
262248
263249 bash ${PROJECT_DIRECTORY}/.evergreen/run-serverless-tests.sh
264250
@@ -1171,29 +1157,10 @@ tasks:
11711157 type : setup
11721158 params :
11731159 binary : bash
1174- add_expansions_to_env : true
11751160 env :
11761161 DRIVERS_TOOLS : ${DRIVERS_TOOLS}
1177- GCPKMS_GCLOUD : ${GCPKMS_GCLOUD}
1178- GCPKMS_PROJECT : ${GCPKMS_PROJECT}
1179- GCPKMS_ZONE : ${GCPKMS_ZONE}
1180- GCPKMS_INSTANCENAME : ${GCPKMS_INSTANCENAME}
11811162 args :
1182- - src/.evergreen/setup-gcp-testing.sh
1183- # Run Mocha test over on GCE instance
1184- - command : subprocess.exec
1185- type : test
1186- params :
1187- working_dir : src
1188- binary : bash
1189- env :
1190- GCPKMS_GCLOUD : ${GCPKMS_GCLOUD}
1191- GCPKMS_PROJECT : ${GCPKMS_PROJECT}
1192- GCPKMS_ZONE : ${GCPKMS_ZONE}
1193- GCPKMS_INSTANCENAME : ${GCPKMS_INSTANCENAME}
1194- GCPKMS_CMD : " env EXPECTED_GCPKMS_OUTCOME=success bash src/.evergreen/run-gcp-kms-tests.sh"
1195- args :
1196- - ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/run-command.sh
1163+ - src/.evergreen/run-deployed-gcp-kms-tests.sh
11971164
11981165 - name : " test-gcpkms-fail-task"
11991166 # test-gcpkms-fail-task runs in a non-GCE environment.
@@ -1230,9 +1197,10 @@ tasks:
12301197 type : setup
12311198 params :
12321199 binary : bash
1233- add_expansions_to_env : true
1200+ env :
1201+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
12341202 args :
1235- - src/.evergreen/copy-driver-to- azure-and-run .sh
1203+ - src/.evergreen/run-deployed- azure-kms-tests .sh
12361204
12371205 - name : " test-azurekms-fail-task"
12381206 commands :
@@ -1427,32 +1395,24 @@ task_groups:
14271395 setup_group_timeout_secs : 1800 # 30 minutes
14281396 setup_group :
14291397 - func : " fetch source"
1430- - command : shell.exec
1431- params :
1432- shell : bash
1433- script : |
1434- ${PREPARE_SHELL}
1435- set +o xtrace
1436- LOADBALANCED=ON \
1437- SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
1438- SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
1439- SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
1440- bash ${DRIVERS_TOOLS}/.evergreen/serverless/create-instance.sh
1441- - command : expansions.update
1398+ - command : subprocess.exec
14421399 params :
1443- file : serverless-expansion.yml
1400+ working_dir : " src"
1401+ binary : bash
1402+ env :
1403+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
1404+ args :
1405+ - .evergreen/setup-serverless.sh
1406+
14441407 teardown_group :
14451408 - func : " upload test results"
1446- - command : shell .exec
1409+ - command : subprocess .exec
14471410 params :
1448- script : |
1449- ${PREPARE_SHELL}
1450- set +o xtrace
1451- SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
1452- SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
1453- SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
1454- SERVERLESS_INSTANCE_NAME=${SERVERLESS_INSTANCE_NAME} \
1455- bash ${DRIVERS_TOOLS}/.evergreen/serverless/delete-instance.sh
1411+ working_dir : " src"
1412+ binary : bash
1413+ args :
1414+ - ${DRIVERS_TOOLS}/.evergreen/serverless/delete-instance.sh
1415+
14561416 tasks :
14571417 - " .serverless"
14581418
@@ -1467,21 +1427,11 @@ task_groups:
14671427 binary : bash
14681428 args :
14691429 - ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/setup.sh
1470- - command : expansions.update
1471- # Load the GCPKMS_GCLOUD, GCPKMS_INSTANCE, GCPKMS_REGION, and GCPKMS_ZONE expansions.
1472- params :
1473- file : src/testgcpkms-expansions.yml
14741430
14751431 teardown_group :
14761432 - command : subprocess.exec
14771433 params :
14781434 binary : bash
1479- add_expansions_to_env : true
1480- env :
1481- GCPKMS_GCLOUD : ${GCPKMS_GCLOUD}
1482- GCPKMS_PROJECT : ${GCPKMS_PROJECT}
1483- GCPKMS_ZONE : ${GCPKMS_ZONE}
1484- GCPKMS_INSTANCENAME : ${GCPKMS_INSTANCENAME}
14851435 args :
14861436 - ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/teardown.sh
14871437 tasks :
@@ -1500,10 +1450,6 @@ task_groups:
15001450 AZUREKMS_VMNAME_PREFIX : " NODE_DRIVER"
15011451 args :
15021452 - ${DRIVERS_TOOLS}/.evergreen/csfle/azurekms/setup.sh
1503- - command : expansions.update
1504- # Load AZUREKMS_VMNAME into the expansions.
1505- params :
1506- file : src/testazurekms-expansions.yml
15071453
15081454 teardown_group :
15091455 # Load expansions again. The setup task may have failed before running `expansions.update`.
@@ -1513,7 +1459,6 @@ task_groups:
15131459 - command : subprocess.exec
15141460 params :
15151461 binary : bash
1516- add_expansions_to_env : true
15171462 args :
15181463 - ${DRIVERS_TOOLS}/.evergreen/csfle/azurekms/teardown.sh
15191464 tasks :
@@ -1657,11 +1602,13 @@ task_groups:
16571602 params :
16581603 working_dir : src
16591604 binary : bash
1660- add_expansions_to_env : true
16611605 env :
16621606 MONGODB_VERSION : " 7.0"
1607+ LAMBDA_STACK_NAME : dbx-node-lambda
1608+ CLUSTER_PREFIX : dbx-node-lambda
16631609 args :
16641610 - ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh
1611+ - atlas
16651612 - command : expansions.update
16661613 params :
16671614 file : src/atlas-expansion.yml
@@ -1670,7 +1617,6 @@ task_groups:
16701617 params :
16711618 working_dir : src
16721619 binary : bash
1673- add_expansions_to_env : true
16741620 args :
16751621 - ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh
16761622 setup_group_can_fail_task : true
@@ -1685,9 +1631,9 @@ task_groups:
16851631 params :
16861632 working_dir : src
16871633 binary : bash
1688- add_expansions_to_env : true
16891634 env :
16901635 MONGODB_VERSION : " 7.0"
1636+ CLUSTER_PREFIX : dbx-node-search-indexes
16911637 args :
16921638 - ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh
16931639 - command : expansions.update
@@ -1698,7 +1644,6 @@ task_groups:
16981644 params :
16991645 working_dir : src
17001646 binary : bash
1701- add_expansions_to_env : true
17021647 args :
17031648 - ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh
17041649 setup_group_can_fail_task : true
0 commit comments