@@ -362,7 +362,7 @@ functions:
362
362
script : |
363
363
${PREPARE_SHELL}
364
364
MONGODB_VERSION=${VERSION} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} LOAD_BALANCER=${LOAD_BALANCER} REQUIRE_API_VERSION=${REQUIRE_API_VERSION} ORCHESTRATION_FILE=${ORCHESTRATION_FILE} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
365
- # run-orchestration generates expansion file with the MONGODB_URI for the cluster
365
+ # run-orchestration generates expansion file with MONGODB_URI and CRYPT_SHARED_LIB_PATH
366
366
- command : expansions.update
367
367
params :
368
368
file : mo-expansion.yml
@@ -388,8 +388,14 @@ functions:
388
388
working_dir : " src"
389
389
script : |
390
390
${PREPARE_SHELL}
391
- export CRYPT_SHARED_LIB_PATH="${client_side_encryption_crypt_shared_lib_path}"
392
- API_VERSION=${API_VERSION} TESTS=${TESTS} SSL=${SSL} MONGODB_URI="${MONGODB_URI}${APPEND_URI}" sh ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
391
+ API_VERSION=${API_VERSION} \
392
+ CRYPT_SHARED_LIB_PATH=${CRYPT_SHARED_LIB_PATH} \
393
+ MONGODB_URI="${MONGODB_URI}${APPEND_URI}" \
394
+ SKIP_CRYPT_SHARED=${SKIP_CRYPT_SHARED} \
395
+ SSL=${SSL} \
396
+ SSL_DIR=${SSL_DIR} \
397
+ TESTS=${TESTS} \
398
+ sh ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
393
399
394
400
" cleanup " :
395
401
- command : shell.exec
@@ -467,18 +473,6 @@ functions:
467
473
${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh stop
468
474
fi
469
475
470
- " fetch crypt_shared " :
471
- - command : shell.exec
472
- params :
473
- script : |
474
- # TODO: Specify same version provisioned by download-mongodb.sh (see: DRIVERS-2355)
475
- python3 ${DRIVERS_TOOLS}/.evergreen/mongodl.py --component crypt_shared --version latest --only "**/mongo_crypt_v1.so" --out ${DRIVERS_TOOLS}/.evergreen/csfle --strip-path-components 1
476
- - command : expansions.update
477
- params :
478
- updates :
479
- - key : client_side_encryption_crypt_shared_lib_path
480
- value : ${DRIVERS_TOOLS}/.evergreen/csfle/mongo_crypt_v1.so
481
-
482
476
pre :
483
477
- func : " fetch source"
484
478
- func : " prepare resources"
@@ -598,14 +592,15 @@ tasks:
598
592
vars :
599
593
TESTS : " tests/atlas.phpt"
600
594
601
- - name : " test-crypt_shared "
595
+ - name : " test-skip_crypt_shared "
602
596
commands :
603
597
- func : " compile driver"
604
598
- func : " bootstrap mongo-orchestration"
605
599
vars :
606
600
TOPOLOGY : " replica_set"
607
- - func : " fetch crypt_shared"
608
601
- func : " run tests"
602
+ vars :
603
+ SKIP_CRYPT_SHARED : " yes"
609
604
610
605
- name : " test-loadBalanced"
611
606
tags : ["loadbalanced"]
@@ -1255,9 +1250,9 @@ buildvariants:
1255
1250
tasks :
1256
1251
- name : " test-loadBalanced"
1257
1252
1258
- # CSFLE crypt_shared is available from MongoDB 6.0+
1259
- - matrix_name : " test-csfle-crypt_shared "
1253
+ # CSFLE crypt_shared is available from MongoDB 6.0+, so explicitly test without it to allow use of mongocryptd
1254
+ - matrix_name : " test-csfle-skip_crypt_shared "
1260
1255
matrix_spec : { "os": "debian11", "mongodb-versions": "6.0", "php-edge-versions": "latest-stable" }
1261
- display_name : " CSFLE crypt_shared - ${mongodb-versions}"
1256
+ display_name : " CSFLE skip_crypt_shared - ${mongodb-versions}"
1262
1257
tasks :
1263
- - name : " test-crypt_shared "
1258
+ - name : " test-skip_crypt_shared "
0 commit comments