Skip to content

Commit f6e87d3

Browse files
nbbeekenljhaywar
authored andcommitted
test(NODE-3606): legacy and new versions of the CSFLE library (#2999)
1 parent 702982e commit f6e87d3

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.evergreen/run-custom-csfle-tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,8 @@ if [ $DRIVER_CSFLE_TEST_RESULT -ne 0 ]; then
9999
echo "Driver tests failed, look above for results"
100100
exit 1
101101
fi
102+
103+
echo "Test legacy version of FLE bindings"
104+
rm -rf node_modules/mongodb-client-encryption
105+
npm install mongodb-client-encryption@"^1.2.7"
106+
npm run check:csfle

.evergreen/run-kerberos-tests.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@ fi
1919
echo "Running kinit"
2020
kinit -k -t "$(pwd)/.evergreen/drivers.keytab" -p ${KRB5_PRINCIPAL}
2121

22-
npm install kerberos
22+
set -o xtrace
23+
npm install kerberos@">=2.0.0-beta.0"
2324
npm run check:kerberos
2425

26+
npm install kerberos@"^1.1.7"
27+
npm run check:kerberos
28+
set +o xtrace
29+
2530
# destroy ticket
2631
kdestroy

.evergreen/run-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if [[ -z "${CLIENT_ENCRYPTION}" ]]; then
4141
unset AWS_ACCESS_KEY_ID;
4242
unset AWS_SECRET_ACCESS_KEY;
4343
else
44-
npm install mongodb-client-encryption@">=1.2.6"
44+
npm install mongodb-client-encryption@">=2.0.0-beta.0"
4545
pip install --upgrade boto3
4646

4747
# Get access to the AWS temporary credentials:

0 commit comments

Comments
 (0)