@@ -148,11 +148,47 @@ functions:
148
148
- command : shell.exec
149
149
type : test
150
150
params :
151
- working_dir : " src"
151
+ silent : true
152
+ working_dir : src
153
+ script : |
154
+ cat <<EOT > prepare_client_encryption.sh
155
+ export CLIENT_ENCRYPTION=${CLIENT_ENCRYPTION}
156
+ export CSFLE_KMS_PROVIDERS='${CSFLE_KMS_PROVIDERS}'
157
+ export AWS_ACCESS_KEY_ID='${AWS_ACCESS_KEY_ID}'
158
+ export AWS_SECRET_ACCESS_KEY='${AWS_SECRET_ACCESS_KEY}'
159
+ export AWS_DEFAULT_REGION='us-east-1'
160
+ export KMIP_TLS_CA_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/ca.pem"
161
+ export KMIP_TLS_CERT_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem"
162
+ EOT
163
+ - command : shell.exec
164
+ type : test
165
+ params :
166
+ working_dir : src
167
+ timeout_secs : 300
168
+ shell : bash
152
169
script : |
153
170
${PREPARE_SHELL}
171
+
154
172
# Disable xtrace (just in case it was accidentally set).
155
173
set +x
174
+ source ./prepare_client_encryption.sh
175
+ rm -f ./prepare_client_encryption.sh
176
+
177
+ export VERSION=${VERSION}
178
+ export DRIVERS_TOOLS=${DRIVERS_TOOLS}
179
+
180
+ source ${PROJECT_DIRECTORY}/.evergreen/prepare-crypt-shared-lib.sh
181
+
182
+ echo "CRYPT_SHARED_LIB_PATH: $CRYPT_SHARED_LIB_PATH"
183
+
184
+ # Get access to the AWS temporary credentials:
185
+ echo "adding temporary AWS credentials to environment"
186
+ # CSFLE_AWS_TEMP_ACCESS_KEY_ID, CSFLE_AWS_TEMP_SECRET_ACCESS_KEY, CSFLE_AWS_TEMP_SESSION_TOKEN
187
+ . "$DRIVERS_TOOLS"/.evergreen/csfle/set-temp-creds.sh
188
+
189
+ MONGODB_URI="${MONGODB_URI}" \
190
+ AUTH=${AUTH} SSL=${SSL} TEST_CSFLE=true \
191
+ MONGODB_API_VERSION="${MONGODB_API_VERSION}"
156
192
157
193
export MONGODB_API_VERSION="${MONGODB_API_VERSION}"
158
194
export AUTH="auth"
@@ -917,6 +953,8 @@ tasks:
917
953
- name : " test-serverless"
918
954
tags : ["serverless"]
919
955
commands :
956
+ - func : install dependencies
957
+ - func : bootstrap kms servers
920
958
- func : " run serverless tests"
921
959
922
960
- name : run-spec-benchmark-tests
0 commit comments