@@ -14,6 +14,46 @@ post_timeout_secs: 1800 # 5 minutes
1414include :
1515 - filename : .evergreen/functions.yml
1616
17+ # Encryption-specific functions
18+ " start csfle servers " :
19+ - command : ec2.assume_role
20+ params :
21+ role_arn : ${aws_test_secrets_role}
22+ - command : subprocess.exec
23+ params :
24+ binary : bash
25+ include_expansions_in_env : [
26+ " AWS_SECRET_ACCESS_KEY" ,
27+ " AWS_ACCESS_KEY_ID" ,
28+ " AWS_SESSION_TOKEN" ,
29+ ]
30+ args :
31+ - ${DRIVERS_TOOLS}/.evergreen/csfle/setup.sh
32+
33+ " teardown csfle " :
34+ - command : subprocess.exec
35+ params :
36+ binary : bash
37+ args :
38+ - ${DRIVERS_TOOLS}/.evergreen/csfle/teardown.sh
39+
40+ " run encryption tests " :
41+ - command : subprocess.exec
42+ type : test
43+ params :
44+ binary : bash
45+ working_dir : " src"
46+ include_expansions_in_env : [
47+ " AWS_KMS_ARN" ,
48+ " DRIVERS_TOOLS" ,
49+ " MONGODB_URI" ,
50+ " DJANGO_SETTINGS_MODULE" ,
51+ " CRYPT_SHARED_LIB_PATH" ,
52+ ]
53+ args :
54+ - ./.evergreen/run-tests.sh
55+ - encryption
56+
1757pre :
1858 - func : setup
1959 - func : bootstrap mongo-orchestration
@@ -31,24 +71,29 @@ tasks:
3171 - func : " run performance tests"
3272 - func : " attach benchmark test results"
3373 - func : " send dashboard data"
74+ - name : run-encryption-tests
75+ commands :
76+ - func : " start csfle servers"
77+ - func : " run encryption tests"
78+ - func : " teardown csfle"
3479
3580buildvariants :
36- - name : tests-6 -noauth-nossl
37- display_name : Run Tests 6 .0 NoAuth NoSSL
81+ - name : tests-7 -noauth-nossl
82+ display_name : Run Tests 7 .0 NoAuth NoSSL
3883 run_on : rhel87-small
3984 expansions :
40- MONGODB_VERSION : " 6 .0"
85+ MONGODB_VERSION : " 7 .0"
4186 TOPOLOGY : server
4287 AUTH : " noauth"
4388 SSL : " nossl"
4489 tasks :
4590 - name : run-tests
4691
47- - name : tests-6 -auth-ssl
48- display_name : Run Tests 6 .0 Auth SSL
92+ - name : tests-7 -auth-ssl
93+ display_name : Run Tests 7 .0 Auth SSL
4994 run_on : rhel87-small
5095 expansions :
51- MONGODB_VERSION : " 6 .0"
96+ MONGODB_VERSION : " 7 .0"
5297 TOPOLOGY : server
5398 AUTH : " auth"
5499 SSL : " ssl"
@@ -84,3 +129,22 @@ buildvariants:
84129 batchtime : 1440
85130 tasks :
86131 - name : perf-tests
132+ - name : tests-8-qe-local
133+ display_name : Run Tests 8.2 QE local KMS
134+ run_on : rhel87-small
135+ expansions :
136+ MONGODB_VERSION : " 8.2"
137+ TOPOLOGY : replica_set
138+ DJANGO_SETTINGS_MODULE : " encrypted_settings"
139+ tasks :
140+ - name : run-encryption-tests
141+
142+ - name : tests-8-qe-aws
143+ display_name : Run Tests 8.2 QE AWS KMS
144+ run_on : rhel87-small
145+ expansions :
146+ MONGODB_VERSION : " 8.2"
147+ TOPOLOGY : replica_set
148+ DJANGO_SETTINGS_MODULE : " encrypted_aws_settings"
149+ tasks :
150+ - name : run-encryption-tests
0 commit comments