File tree 3 files changed +18
-5
lines changed
3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ functions:
206
206
script : |
207
207
KRB5_KEYTAB='${gssapi_auth_keytab_base64}' KRB5_PRINCIPAL='${gssapi_auth_principal}' \
208
208
MONGODB_URI='${gssapi_auth_mongodb_uri}' UNIFIED=${UNIFIED} \
209
- NODE_LTS_NAME='${NODE_LTS_NAME}' bash ${PROJECT_DIRECTORY}/.evergreen/run-kerberos-tests.sh
209
+ NODE_LTS_NAME='${NODE_LTS_NAME}' NODE_VERSION=${NODE_VERSION} bash ${PROJECT_DIRECTORY}/.evergreen/run-kerberos-tests.sh
210
210
run ldap tests :
211
211
- command : shell.exec
212
212
type : test
Original file line number Diff line number Diff line change 22
22
echo " Running kinit"
23
23
kinit -k -t " $( pwd) /.evergreen/drivers.keytab" -p ${KRB5_PRINCIPAL}
24
24
25
- npm install kerberos
25
+ set -o xtrace
26
+ if [ -z ${NODE_VERSION+omitted} ]; then echo " NODE_VERSION is unset" && exit 1; fi
27
+ NODE_MAJOR_VERSION=$( echo " $NODE_VERSION " | cut -d. -f1)
28
+ if [[ $NODE_MAJOR_VERSION -ge 12 ]]; then
29
+ npm install kerberos@" >=2.0.0-beta.0"
30
+ else
31
+ npm install kerberos@" ^1.1.7"
32
+ fi
33
+ set +o xtrace
34
+
26
35
npm run check:kerberos
27
36
28
37
# destroy ticket
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
# set -o xtrace # Write all commands first to stderr
3
3
set -o errexit # Exit the script with error if any of the commands fail
4
4
@@ -52,8 +52,12 @@ if [[ -z "${CLIENT_ENCRYPTION}" ]]; then
52
52
unset AWS_ACCESS_KEY_ID;
53
53
unset AWS_SECRET_ACCESS_KEY;
54
54
else
55
- npm install mongodb-client-encryption@latest
56
-
55
+ NODE_MAJOR_VERSION=$( echo $NODE_VERSION | cut -d. -f1)
56
+ if [[ $NODE_MAJOR_VERSION -ge 12 ]]; then
57
+ npm install mongodb-client-encryption@" >=2.0.0-beta.0"
58
+ else
59
+ npm install mongodb-client-encryption@" ^1.2.7"
60
+ fi
57
61
# Get access to the AWS temporary credentials:
58
62
echo " adding temporary AWS credentials to environment"
59
63
# CSFLE_AWS_TEMP_ACCESS_KEY_ID, CSFLE_AWS_TEMP_SECRET_ACCESS_KEY, CSFLE_AWS_TEMP_SESSION_TOKEN
You can’t perform that action at this time.
0 commit comments