Skip to content

Commit

Permalink
test(NODE-4800): update build env scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Dec 15, 2022
1 parent d56414f commit fe58666
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
15 changes: 10 additions & 5 deletions .evergreen/config.in.yml
Expand Up @@ -527,21 +527,23 @@ functions:
type: test
params:
working_dir: "src"
shell: bash
script: |
${PREPARE_SHELL}
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
. ./activate-authawsvenv.sh
cd -
"run aws auth test with regular aws credentials":
- command: shell.exec
type: test
params:
working_dir: "src"
shell: bash
script: |
${PREPARE_SHELL}
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
. ./activate-authawsvenv.sh
${MONGODB_BINARIES}/mongo aws_e2e_regular_aws.js
- command: shell.exec
type: test
Expand All @@ -568,10 +570,11 @@ functions:
type: test
params:
working_dir: "src"
shell: bash
script: |
${PREPARE_SHELL}
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
. ./activate-authawsvenv.sh
${MONGODB_BINARIES}/mongo aws_e2e_assume_role.js
- command: shell.exec
type: test
Expand Down Expand Up @@ -602,13 +605,14 @@ functions:
type: test
params:
working_dir: "src"
shell: bash
script: |
${PREPARE_SHELL}
# Write an empty prepare_mongodb_aws so no auth environment variables
# are set.
echo "" > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
. ./activate-authawsvenv.sh
${MONGODB_BINARIES}/mongo aws_e2e_ec2.js
- command: shell.exec
type: test
Expand Down Expand Up @@ -671,6 +675,7 @@ functions:
type: test
params:
working_dir: src
shell: bash
script: |
${PREPARE_SHELL}
AUTH_AWS_DIR=${DRIVERS_TOOLS}/.evergreen/auth_aws
Expand All @@ -691,7 +696,7 @@ functions:
EOF
cat setup.js
. ./activate_venv.sh
. ./activate-authawsvenv.sh
${MONGODB_BINARIES}/mongo --nodb setup.js aws_e2e_ecs.js
"run-ocsp-test":
Expand Down
15 changes: 10 additions & 5 deletions .evergreen/config.yml
Expand Up @@ -490,20 +490,22 @@ functions:
type: test
params:
working_dir: src
shell: bash
script: |
${PREPARE_SHELL}
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
. ./activate-authawsvenv.sh
cd -
run aws auth test with regular aws credentials:
- command: shell.exec
type: test
params:
working_dir: src
shell: bash
script: |
${PREPARE_SHELL}
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
. ./activate-authawsvenv.sh
${MONGODB_BINARIES}/mongo aws_e2e_regular_aws.js
- command: shell.exec
type: test
Expand All @@ -529,10 +531,11 @@ functions:
type: test
params:
working_dir: src
shell: bash
script: |
${PREPARE_SHELL}
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
. ./activate-authawsvenv.sh
${MONGODB_BINARIES}/mongo aws_e2e_assume_role.js
- command: shell.exec
type: test
Expand Down Expand Up @@ -562,13 +565,14 @@ functions:
type: test
params:
working_dir: src
shell: bash
script: |
${PREPARE_SHELL}
# Write an empty prepare_mongodb_aws so no auth environment variables
# are set.
echo "" > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate_venv.sh
. ./activate-authawsvenv.sh
${MONGODB_BINARIES}/mongo aws_e2e_ec2.js
- command: shell.exec
type: test
Expand Down Expand Up @@ -628,6 +632,7 @@ functions:
type: test
params:
working_dir: src
shell: bash
script: |
${PREPARE_SHELL}
AUTH_AWS_DIR=${DRIVERS_TOOLS}/.evergreen/auth_aws
Expand All @@ -648,7 +653,7 @@ functions:
EOF
cat setup.js
. ./activate_venv.sh
. ./activate-authawsvenv.sh
${MONGODB_BINARIES}/mongo --nodb setup.js aws_e2e_ecs.js
run-ocsp-test:
- command: shell.exec
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/run-kms-servers.sh
@@ -1,5 +1,5 @@
cd ${DRIVERS_TOOLS}/.evergreen/csfle
. ./activate_venv.sh
. ./activate-kmstlsvenv.sh
# by default it always runs on port 5698
./kmstlsvenv/bin/python3 -u kms_kmip_server.py &
./kmstlsvenv/bin/python3 -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/expired.pem --port 8000 &
Expand Down

0 comments on commit fe58666

Please sign in to comment.