@@ -124,39 +124,17 @@ functions:
124124 export KMIP_TLS_CERT_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem"
125125 EOT
126126 fi
127- - command : shell .exec
127+ - command : subprocess .exec
128128 type : test
129129 params :
130+ env :
131+ TEST_CSFLE : ' true'
132+ add_expansions_to_env : true
130133 working_dir : src
131134 timeout_secs : 300
132- shell : bash
133- script : |
134- ${PREPARE_SHELL}
135-
136- if [ -n "${CLIENT_ENCRYPTION}" ]; then
137- # Disable xtrace (just in case it was accidentally set).
138- set +x
139- . ./prepare_client_encryption.sh
140- rm -f ./prepare_client_encryption.sh
141- fi
142-
143- export VERSION=${VERSION}
144- export DRIVERS_TOOLS=${DRIVERS_TOOLS}
145-
146- if [ -z "${RUN_WITH_MONGOCRYPTD}" ]; then
147- # Set up crypt shared lib if we don't want to use mongocryptd
148- source ${PROJECT_DIRECTORY}/.evergreen/prepare-crypt-shared-lib.sh
149- echo "CRYPT_SHARED_LIB_PATH: $CRYPT_SHARED_LIB_PATH"
150- else
151- echo "CRYPT_SHARED_LIB_PATH not set; using mongocryptd"
152- fi
153-
154- TEST_NPM_SCRIPT="${TEST_NPM_SCRIPT|check:integration-coverage}" \
155- MONGODB_URI="${MONGODB_URI}" \
156- AUTH=${AUTH} SSL=${SSL} TEST_CSFLE=true \
157- MONGODB_API_VERSION="${MONGODB_API_VERSION}" \
158- SKIP_DEPS=${SKIP_DEPS|1} \
159- bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
135+ binary : bash
136+ args :
137+ - .evergreen/run-tests.sh
160138 run serverless tests :
161139 - command : timeout.update
162140 params :
@@ -180,10 +158,9 @@ functions:
180158 export KMIP_TLS_CA_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/ca.pem"
181159 export KMIP_TLS_CERT_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem"
182160 EOT
183- - command : shell .exec
161+ - command : subprocess .exec
184162 type : test
185163 params :
186- working_dir : src
187164 timeout_secs : 300
188165 shell : bash
189166 script : |
@@ -459,40 +436,14 @@ functions:
459436 export AWS_ACCESS_KEY_ID='${AWS_ACCESS_KEY_ID}'
460437 export AWS_SECRET_ACCESS_KEY='${AWS_SECRET_ACCESS_KEY}'
461438 EOT
462- - command : shell .exec
439+ - command : subprocess .exec
463440 type : test
464441 params :
442+ add_expansions_to_env : true
465443 working_dir : src
466- script : >
467- ${PREPARE_SHELL}
468-
469-
470- export PYTHON_BINARY=$([ "Windows_NT" = "$OS" ] && echo "/cygdrive/c/python/python38/python.exe" || echo
471- "/opt/mongodbtoolchain/v3/bin/python3")
472-
473- export PROJECT_DIRECTORY="$(pwd)"
474-
475- export DRIVERS_TOOLS="${DRIVERS_TOOLS}"
476-
477- export NODE_LTS_VERSION='${NODE_LTS_VERSION}'
478-
479- export MONGODB_URI="${MONGODB_URI}"
480-
481- export TEST_SOCKS5_CSFLE="${TEST_SOCKS5_CSFLE}"
482-
483- export SSL="${SSL}"
484-
485-
486- # Disable xtrace (just in case it was accidentally set).
487-
488- set +x
489-
490- . ./prepare_client_encryption.sh
491-
492- rm -f ./prepare_client_encryption.sh
493-
494-
495- bash ${PROJECT_DIRECTORY}/.evergreen/run-socks5-tests.sh
444+ binary : bash
445+ args :
446+ - .evergreen/run-socks5-tests.sh
496447 run kerberos tests :
497448 - command : subprocess.exec
498449 type : test
@@ -927,29 +878,14 @@ functions:
927878 export AWS_REGION='${AWS_REGION}'
928879 export AWS_CMK_ID='${AWS_CMK_ID}'
929880 EOT
930- - command : shell .exec
881+ - command : subprocess .exec
931882 type : test
932883 params :
933884 working_dir : src
934- timeout_secs : 60
935- shell : bash
936- script : |
937- ${PREPARE_SHELL}
938-
939- # Disable xtrace (just in case it was accidentally set).
940- set +x
941- source ./prepare_client_encryption.sh
942- rm -f ./prepare_client_encryption.sh
943-
944- export VERSION=${VERSION}
945- export DRIVERS_TOOLS=${DRIVERS_TOOLS}
946-
947- source ${PROJECT_DIRECTORY}/.evergreen/prepare-crypt-shared-lib.sh
948- export MONGODB_URI="${MONGODB_URI}"
949-
950- echo "CRYPT_SHARED_LIB_PATH: $CRYPT_SHARED_LIB_PATH"
951-
952- bash ${PROJECT_DIRECTORY}/.evergreen/run-custom-csfle-tests.sh
885+ add_expansions_to_env : true
886+ binary : bash
887+ args :
888+ - .evergreen/run-custom-csfle-tests.sh
953889 run lambda handler example tests :
954890 - command : subprocess.exec
955891 params :
@@ -3733,6 +3669,7 @@ tasks:
37333669 - {key: NPM_VERSION, value: '9'}
37343670 - {key: VERSION, value: '5.0'}
37353671 - {key: TOPOLOGY, value: replica_set}
3672+ - {key: CLIENT_ENCRYPTION, value: 'true'}
37363673 - func : install dependencies
37373674 - func : bootstrap mongo-orchestration
37383675 - func : bootstrap kms servers
@@ -3750,6 +3687,7 @@ tasks:
37503687 - {key: NPM_VERSION, value: '9'}
37513688 - {key: VERSION, value: rapid}
37523689 - {key: TOPOLOGY, value: replica_set}
3690+ - {key: CLIENT_ENCRYPTION, value: 'true'}
37533691 - func : install dependencies
37543692 - func : bootstrap mongo-orchestration
37553693 - func : bootstrap kms servers
@@ -3767,6 +3705,7 @@ tasks:
37673705 - {key: NPM_VERSION, value: '9'}
37683706 - {key: VERSION, value: latest}
37693707 - {key: TOPOLOGY, value: replica_set}
3708+ - {key: CLIENT_ENCRYPTION, value: 'true'}
37703709 - func : install dependencies
37713710 - func : bootstrap mongo-orchestration
37723711 - func : bootstrap kms servers
0 commit comments