@@ -450,6 +450,9 @@ functions:
450450 export LIBMONGOCRYPT_URL="${libmongocrypt_url}"
451451 export TEST_ENCRYPTION=1
452452 fi
453+ if [ -n "${test_csfle}" ]; then
454+ export TEST_CSFLE=1
455+ fi
453456 if [ -n "${test_pyopenssl}" ]; then
454457 export TEST_PYOPENSSL=1
455458 fi
@@ -1232,7 +1235,6 @@ tasks:
12321235 VERSION : " 5.0"
12331236 TOPOLOGY : " sharded_cluster"
12341237 - func : " run tests"
1235-
12361238 - name : " test-6.0-standalone"
12371239 tags : ["6.0", "standalone"]
12381240 commands :
@@ -2161,6 +2163,14 @@ axes:
21612163 variables :
21622164 test_encryption : true
21632165 batchtime : 10080 # 7 days
2166+ - id : " encryption_with_csfle"
2167+ display_name : " Encryption with CSFLE"
2168+ tags : ["encryption_tag", "csfle"]
2169+ variables :
2170+ test_encryption : true
2171+ test_csfle : true
2172+ batchtime : 10080 # 7 days
2173+
21642174
21652175 # Run pyopenssl tests?
21662176 - id : pyopenssl
@@ -2229,21 +2239,6 @@ buildvariants:
22292239 - " .4.0"
22302240 - " .3.6"
22312241
2232- - matrix_name : " tests-all-encryption"
2233- matrix_spec :
2234- platform :
2235- # OSes that support versions of MongoDB>=2.6 with SSL.
2236- - awslinux
2237- auth-ssl : " *"
2238- encryption : " *"
2239- display_name : " Encryption ${platform} ${auth-ssl}"
2240- tasks :
2241- - " .6.0"
2242- - " .5.0"
2243- - " .4.4"
2244- - " .4.2"
2245- - " .4.0"
2246-
22472242- matrix_name : " tests-archlinux"
22482243 matrix_spec :
22492244 platform :
@@ -2297,14 +2292,27 @@ buildvariants:
22972292 auth : " auth"
22982293 ssl : " nossl"
22992294 encryption : " *"
2300- display_name : " Encryption ${platform} ${auth} ${ssl}"
2295+ display_name : " ${encryption} ${platform} ${auth} ${ssl}"
23012296 tasks : &encryption-server-versions
2297+ - " .rapid"
23022298 - " .latest"
23032299 - " .6.0"
23042300 - " .5.0"
23052301 - " .4.4"
23062302 - " .4.2"
23072303 - " .4.0"
2304+ rules : &encryption-exclude-rules
2305+ - if :
2306+ platform : " *"
2307+ auth : " *"
2308+ ssl : " *"
2309+ encryption : [ "encryption_with_csfle" ]
2310+ then :
2311+ remove_tasks :
2312+ - " .5.0"
2313+ - " .4.4"
2314+ - " .4.2"
2315+ - " .4.0"
23082316
23092317# Test one server version with zSeries, POWER8, and ARM.
23102318- matrix_name : " test-different-cpu-architectures"
@@ -2385,8 +2393,21 @@ buildvariants:
23852393# dependency tests-python-version-rhel62-test-encryption_.../test-2.6-standalone is not present in the project config
23862394# coverage: "*"
23872395 encryption : " *"
2388- display_name : " Encryption ${python-version} ${platform} ${auth-ssl}"
2396+ display_name : " ${encryption} ${python-version} ${platform} ${auth-ssl}"
23892397 tasks : *encryption-server-versions
2398+ rules :
2399+ - if :
2400+ platform : " *"
2401+ python-version : " *"
2402+ auth-ssl : " *"
2403+ encryption : [ "encryption_with_csfle" ]
2404+ then :
2405+ remove_tasks :
2406+ - " .5.0"
2407+ - " .4.4"
2408+ - " .4.2"
2409+ - " .4.0"
2410+
23902411
23912412- matrix_name : " tests-python-version-ubuntu18-without-c-extensions"
23922413 matrix_spec :
@@ -2481,8 +2502,20 @@ buildvariants:
24812502 python-version-windows : " *"
24822503 auth-ssl : " *"
24832504 encryption : " *"
2484- display_name : " Encryption ${platform} ${python-version-windows} ${auth-ssl}"
2505+ display_name : " ${encryption} ${platform} ${python-version-windows} ${auth-ssl}"
24852506 tasks : *encryption-server-versions
2507+ rules :
2508+ - if :
2509+ platform : " *"
2510+ python-version-windows : " *"
2511+ auth-ssl : " *"
2512+ encryption : [ "encryption_with_csfle" ]
2513+ then :
2514+ remove_tasks :
2515+ - " .5.0"
2516+ - " .4.4"
2517+ - " .4.2"
2518+ - " .4.0"
24862519
24872520# Storage engine tests on Ubuntu 18.04 (x86_64) with Python 3.7.
24882521- matrix_name : " tests-storage-engines"
0 commit comments