Skip to content

Commit d73c80c

Browse files
authored
fix(NODE-3063): fix custom csfle test script (#2884)
1 parent 1d229a1 commit d73c80c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ export CSFLE_KMS_PROVIDERS=${CSFLE_KMS_PROVIDERS}
1414
set -o xtrace # Write all commands first to stderr
1515
set -o errexit # Exit the script with error if any of the commands fail
1616

17+
# Get access to the AWS temporary credentials:
18+
echo "adding temporary AWS credentials to environment"
19+
# CSFLE_AWS_TEMP_ACCESS_KEY_ID, CSFLE_AWS_TEMP_SECRET_ACCESS_KEY, CSFLE_AWS_TEMP_SESSION_TOKEN
20+
. $DRIVERS_TOOLS/.evergreen/csfle/set-temp-creds.sh
21+
1722
ABS_PATH_TO_PATCH=$(pwd)
1823

1924
# Environment Variables:
@@ -84,6 +89,7 @@ export MONGODB_NODE_SKIP_LIVE_TESTS=""
8489
# all of the below must be defined (as well as AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY)
8590
export AWS_REGION="us-east-1"
8691
export AWS_CMK_ID="arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0"
92+
8793
npm test -- --colors
8894

8995
popd # ../csfle-deps-tmp/libmongocrypt/bindings/node

0 commit comments

Comments
 (0)