Skip to content

Commit 72c3d74

Browse files
finally passing environment variable through properly
1 parent 50697b4 commit 72c3d74

File tree

3 files changed

+23
-46
lines changed

3 files changed

+23
-46
lines changed

.evergreen/config.in.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -142,22 +142,23 @@ functions:
142142
bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
143143
144144
"run serverless tests":
145+
- command: timeout.update
146+
params:
147+
exec_timeout_secs: 1800
145148
- command: shell.exec
146149
type: test
147150
params:
148151
silent: true
149152
working_dir: src
150153
script: |
151-
${PREPARE_SHELL}
152-
153154
cat <<EOT > prepare_client_encryption.sh
154-
export CLIENT_ENCRYPTION=${CLIENT_ENCRYPTION}
155-
export CSFLE_KMS_PROVIDERS='${CSFLE_KMS_PROVIDERS}'
156-
export AWS_ACCESS_KEY_ID='${AWS_ACCESS_KEY_ID}'
157-
export AWS_SECRET_ACCESS_KEY='${AWS_SECRET_ACCESS_KEY}'
158-
export AWS_DEFAULT_REGION='us-east-1'
159-
export KMIP_TLS_CA_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/ca.pem"
160-
export KMIP_TLS_CERT_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem"
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"
161162
EOT
162163
- command: shell.exec
163164
type: test
@@ -182,20 +183,8 @@ functions:
182183
183184
MONGODB_URI="${MONGODB_URI}" \
184185
AUTH=${AUTH} SSL=${SSL} TEST_CSFLE=true \
185-
MONGODB_API_VERSION="${MONGODB_API_VERSION}" \
186-
- command: timeout.update
187-
params:
188-
exec_timeout_secs: 1800
189-
- command: shell.exec
190-
type: test
191-
params:
192-
working_dir: "src"
193-
script: |
194-
${PREPARE_SHELL}
195-
# Disable xtrace (just in case it was accidentally set).
196-
set +x
186+
MONGODB_API_VERSION="${MONGODB_API_VERSION}"
197187
198-
export CSFLE_KMS_PROVIDERS="${CSFLE_KMS_PROVIDERS}"
199188
export MONGODB_API_VERSION="${MONGODB_API_VERSION}"
200189
export AUTH="auth"
201190
export SSL="ssl"

.evergreen/config.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -115,22 +115,23 @@ functions:
115115
NODE_VERSION=${NODE_VERSION} SKIP_DEPS=${SKIP_DEPS|1} \
116116
bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
117117
run serverless tests:
118+
- command: timeout.update
119+
params:
120+
exec_timeout_secs: 1800
118121
- command: shell.exec
119122
type: test
120123
params:
121124
silent: true
122125
working_dir: src
123126
script: |
124-
${PREPARE_SHELL}
125-
126127
cat <<EOT > prepare_client_encryption.sh
127-
export CLIENT_ENCRYPTION=${CLIENT_ENCRYPTION}
128-
export CSFLE_KMS_PROVIDERS=${CSFLE_KMS_PROVIDERS}
129-
export AWS_ACCESS_KEY_ID='${AWS_ACCESS_KEY_ID}'
130-
export AWS_SECRET_ACCESS_KEY='${AWS_SECRET_ACCESS_KEY}'
131-
export AWS_DEFAULT_REGION='us-east-1'
132-
export KMIP_TLS_CA_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/ca.pem"
133-
export KMIP_TLS_CERT_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem"
128+
export CLIENT_ENCRYPTION=${CLIENT_ENCRYPTION}
129+
export CSFLE_KMS_PROVIDERS='${CSFLE_KMS_PROVIDERS}'
130+
export AWS_ACCESS_KEY_ID='${AWS_ACCESS_KEY_ID}'
131+
export AWS_SECRET_ACCESS_KEY='${AWS_SECRET_ACCESS_KEY}'
132+
export AWS_DEFAULT_REGION='us-east-1'
133+
export KMIP_TLS_CA_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/ca.pem"
134+
export KMIP_TLS_CERT_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem"
134135
EOT
135136
- command: shell.exec
136137
type: test
@@ -155,21 +156,8 @@ functions:
155156
156157
MONGODB_URI="${MONGODB_URI}" \
157158
AUTH=${AUTH} SSL=${SSL} TEST_CSFLE=true \
158-
MONGODB_API_VERSION="${MONGODB_API_VERSION}" \
159-
- command: timeout.update
160-
params:
161-
exec_timeout_secs: 1800
162-
- command: shell.exec
163-
type: test
164-
params:
165-
working_dir: src
166-
shell: bash
167-
script: |
168-
${PREPARE_SHELL}
169-
# Disable xtrace (just in case it was accidentally set).
170-
set +x
159+
MONGODB_API_VERSION="${MONGODB_API_VERSION}"
171160
172-
export CSFLE_KMS_PROVIDERS="${CSFLE_KMS_PROVIDERS}"
173161
export MONGODB_API_VERSION="${MONGODB_API_VERSION}"
174162
export AUTH="auth"
175163
export SSL="ssl"

.evergreen/run-serverless-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ npm install mongodb-client-encryption@">=2.3.0"
1414

1515
npx mocha \
1616
--config test/mocha_mongodb.json \
17-
test/integration/client-side-encryption/client_side_encryption.spec.test.ts --grep "Database aggregate should fail"
17+
test/integration/client-side-encryption/client_side_encryption.spec.test.ts
1818
# test/integration/crud/crud.spec.test.js \
1919
# test/integration/crud/crud.prose.test.js \
2020
# test/integration/retryable-reads/retryable_reads.spec.test.js \

0 commit comments

Comments
 (0)