@@ -55,54 +55,61 @@ pushd libmongocrypt/bindings/node
55
55
npm install --production --ignore-scripts
56
56
bash ./etc/build-static.sh
57
57
58
+ npm run rebuild # just in case this is necessary?
59
+
60
+ ls
61
+ ls lib
62
+ BINDINGS_DIR=$( pwd)
58
63
popd # libmongocrypt/bindings/node
59
64
popd # ../csfle-deps-tmp
60
65
61
66
# copy mongodb-client-encryption into driver's node_modules
62
- cp -R ../csfle-deps-tmp/libmongocrypt/bindings/node node_modules/mongodb-client-encryption
67
+ npm link $BINDINGS_DIR
68
+
69
+ node --eval " console.log(require('mongodb-client-encryption').MongoCrypt)"
63
70
64
71
export MONGODB_URI=${MONGODB_URI}
65
72
export KMIP_TLS_CA_FILE=" ${DRIVERS_TOOLS} /.evergreen/x509gen/ca.pem"
66
73
export KMIP_TLS_CERT_FILE=" ${DRIVERS_TOOLS} /.evergreen/x509gen/client.pem"
67
74
export TEST_CSFLE=true
68
75
69
- set +o errexit # We want to run both test suites even if the first fails
76
+ # set +o errexit # We want to run both test suites even if the first fails
70
77
npm run check:csfle
71
- DRIVER_CSFLE_TEST_RESULT=$?
72
- set -o errexit
78
+ # DRIVER_CSFLE_TEST_RESULT=$?
79
+ # set -o errexit
73
80
74
- # Great! our drivers tests ran
75
- # there are tests inside the bindings repo that we also want to check
81
+ # # Great! our drivers tests ran
82
+ # # there are tests inside the bindings repo that we also want to check
76
83
77
- pushd ../csfle-deps-tmp/libmongocrypt/bindings/node
84
+ # pushd ../csfle-deps-tmp/libmongocrypt/bindings/node
78
85
79
- # a mongocryptd was certainly started by the driver tests,
80
- # let us let the bindings tests start their own
81
- killall mongocryptd || true
86
+ # # a mongocryptd was certainly started by the driver tests,
87
+ # # let us let the bindings tests start their own
88
+ # killall mongocryptd || true
82
89
83
- # only prod deps were installed earlier, install devDependencies here (except for mongodb!)
84
- npm install --ignore-scripts
90
+ # # only prod deps were installed earlier, install devDependencies here (except for mongodb!)
91
+ # npm install --ignore-scripts
85
92
86
- # copy mongodb into CSFLE's node_modules
87
- rm -rf node_modules/mongodb
88
- cp -R " $ABS_PATH_TO_PATCH " node_modules/mongodb
89
- pushd node_modules/mongodb
90
- # lets be sure we have compiled TS since driver tests don't need to compile
91
- npm run build:ts
92
- popd # node_modules/mongodb
93
+ # # copy mongodb into CSFLE's node_modules
94
+ # rm -rf node_modules/mongodb
95
+ # cp -R "$ABS_PATH_TO_PATCH" node_modules/mongodb
96
+ # pushd node_modules/mongodb
97
+ # # lets be sure we have compiled TS since driver tests don't need to compile
98
+ # npm run build:ts
99
+ # popd # node_modules/mongodb
93
100
94
- # this variable needs to be empty
95
- export MONGODB_NODE_SKIP_LIVE_TESTS=" "
96
- # all of the below must be defined (as well as AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY)
97
- export AWS_REGION=" us-east-1"
98
- export AWS_CMK_ID=" arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0"
101
+ # # this variable needs to be empty
102
+ # export MONGODB_NODE_SKIP_LIVE_TESTS=""
103
+ # # all of the below must be defined (as well as AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY)
104
+ # export AWS_REGION="us-east-1"
105
+ # export AWS_CMK_ID="arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0"
99
106
100
- npm test -- --colors
107
+ # npm test -- --colors
101
108
102
- popd # ../csfle-deps-tmp/libmongocrypt/bindings/node
109
+ # popd # ../csfle-deps-tmp/libmongocrypt/bindings/node
103
110
104
- # Exit the script in a way that will show evergreen a pass or fail
105
- if [ $DRIVER_CSFLE_TEST_RESULT -ne 0 ]; then
106
- echo " Driver tests failed, look above for results"
107
- exit 1
108
- fi
111
+ # # Exit the script in a way that will show evergreen a pass or fail
112
+ # if [ $DRIVER_CSFLE_TEST_RESULT -ne 0 ]; then
113
+ # echo "Driver tests failed, look above for results"
114
+ # exit 1
115
+ # fi
0 commit comments