File tree 6 files changed +22
-8
lines changed
6 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,10 @@ functions:
227
227
# Get access to the AWS temporary credentials:
228
228
echo "adding temporary AWS credentials to environment"
229
229
# CSFLE_AWS_TEMP_ACCESS_KEY_ID, CSFLE_AWS_TEMP_SECRET_ACCESS_KEY, CSFLE_AWS_TEMP_SESSION_TOKEN
230
- . "$DRIVERS_TOOLS"/.evergreen/csfle/set-temp-creds.sh
230
+ pushd "$DRIVERS_TOOLS"/.evergreen/csfle
231
+ . ./activate-kmstlsvenv.sh
232
+ . ./set-temp-creds.sh
233
+ popd
231
234
232
235
MONGODB_URI="${MONGODB_URI}" \
233
236
AUTH=${AUTH} SSL=${SSL} TEST_CSFLE=true \
Original file line number Diff line number Diff line change @@ -199,7 +199,10 @@ functions:
199
199
# Get access to the AWS temporary credentials:
200
200
echo "adding temporary AWS credentials to environment"
201
201
# CSFLE_AWS_TEMP_ACCESS_KEY_ID, CSFLE_AWS_TEMP_SECRET_ACCESS_KEY, CSFLE_AWS_TEMP_SESSION_TOKEN
202
- . "$DRIVERS_TOOLS"/.evergreen/csfle/set-temp-creds.sh
202
+ pushd "$DRIVERS_TOOLS"/.evergreen/csfle
203
+ . ./activate-kmstlsvenv.sh
204
+ . ./set-temp-creds.sh
205
+ popd
203
206
204
207
MONGODB_URI="${MONGODB_URI}" \
205
208
AUTH=${AUTH} SSL=${SSL} TEST_CSFLE=true \
Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ set -o errexit # Exit the script with error if any of the commands fail
20
20
# Get access to the AWS temporary credentials:
21
21
echo " adding temporary AWS credentials to environment"
22
22
# CSFLE_AWS_TEMP_ACCESS_KEY_ID, CSFLE_AWS_TEMP_SECRET_ACCESS_KEY, CSFLE_AWS_TEMP_SESSION_TOKEN
23
- . " $DRIVERS_TOOLS " /.evergreen/csfle/set-temp-creds.sh
23
+ pushd " $DRIVERS_TOOLS " /.evergreen/csfle
24
+ . ./activate-kmstlsvenv.sh
25
+ . ./set-temp-creds.sh
26
+ popd
24
27
25
28
export MONGODB_URI=${MONGODB_URI}
26
29
export KMIP_TLS_CA_FILE=" ${DRIVERS_TOOLS} /.evergreen/x509gen/ca.pem"
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ function setup_fle() {
18
18
# Get access to the AWS temporary credentials:
19
19
echo " adding temporary AWS credentials to environment"
20
20
# CSFLE_AWS_TEMP_ACCESS_KEY_ID, CSFLE_AWS_TEMP_SECRET_ACCESS_KEY, CSFLE_AWS_TEMP_SESSION_TOKEN
21
- . " $DRIVERS_TOOLS " /.evergreen/csfle/set-temp-creds.sh
21
+ pushd " $DRIVERS_TOOLS " /.evergreen/csfle
22
+ . ./activate-kmstlsvenv.sh
23
+ . ./set-temp-creds.sh
24
+ popd
22
25
23
26
export KMIP_TLS_CA_FILE=" ${DRIVERS_TOOLS} /.evergreen/x509gen/ca.pem"
24
27
export KMIP_TLS_CERT_FILE=" ${DRIVERS_TOOLS} /.evergreen/x509gen/client.pem"
Original file line number Diff line number Diff line change @@ -45,11 +45,13 @@ if [[ -z "${CLIENT_ENCRYPTION}" ]]; then
45
45
unset AWS_ACCESS_KEY_ID;
46
46
unset AWS_SECRET_ACCESS_KEY;
47
47
else
48
- pip install --upgrade boto3
48
+ pushd " $DRIVERS_TOOLS /.evergreen/csfle"
49
+ . ./activate-kmstlsvenv.sh
49
50
# Get access to the AWS temporary credentials:
50
51
echo " adding temporary AWS credentials to environment"
51
52
# CSFLE_AWS_TEMP_ACCESS_KEY_ID, CSFLE_AWS_TEMP_SECRET_ACCESS_KEY, CSFLE_AWS_TEMP_SESSION_TOKEN
52
- source " $DRIVERS_TOOLS " /.evergreen/csfle/set-temp-creds.sh
53
+ source set-temp-creds.sh
54
+ popd
53
55
fi
54
56
55
57
npm install @mongodb-js/zstd
Original file line number Diff line number Diff line change @@ -496,8 +496,8 @@ The following steps will walk you through how to run the tests for CSFLE.
496
496
1 . Set temporary AWS credentials
497
497
498
498
```
499
- pip3 install boto3
500
- PYTHON="python3" source /path/to/mongodb-labs/drivers-evergreen-tools/.evergreen/csfle/set-temp-creds.sh
499
+ source /path/to/mongodb-labs/drivers-evergreen-tools/.evergreen/csfle/activate-kmstlsvenv.sh
500
+ source /path/to/mongodb-labs/drivers-evergreen-tools/.evergreen/csfle/set-temp-creds.sh
501
501
```
502
502
503
503
Alternatively, for fish users, the following script can be substituted for ` set-temp-creds.sh ` :
You can’t perform that action at this time.
0 commit comments