Skip to content

Commit c017581

Browse files
committed
Fix aws auth, ocsp
1 parent a9b1c07 commit c017581

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

.evergreen/config.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ functions:
8787
working_dir: "src"
8888
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
8989
args:
90-
- src/.evergreen/scripts/download-and-merge-coverage.sh ${bucket_name} ${revision} ${version_id}
90+
- src/.evergreen/scripts/download-and-merge-coverage.sh
91+
- ${bucket_name}
92+
- ${revision}
93+
- ${version_id}
9194
- command: subprocess.exec
9295
params:
9396
working_dir: "src"
@@ -394,7 +397,8 @@ functions:
394397
binary: bash
395398
working_dir: "src"
396399
args:
397-
- .evergreen/scripts/run-mongodb-aws-test.sh regular
400+
- .evergreen/scripts/run-mongodb-aws-test.sh
401+
- regular
398402

399403
"run aws auth test with assume role credentials":
400404
- command: subprocess.exec
@@ -542,18 +546,14 @@ functions:
542546
file: atlas-expansion.yml
543547

544548
"run-ocsp-test":
545-
- command: shell.exec
549+
- command: subprocess.exec
546550
type: test
547551
params:
552+
include_expansions_in_env: ["DRIVERS_TOOLS", "PROJECT_DIRECTORY", "OCSP_ALGORITHM", "OCSP_TLS_SHOULD_SUCCEED"]
553+
binary: bash
548554
working_dir: "src"
549-
script: |
550-
. .evergreen/scripts/env.sh
551-
TEST_OCSP=1 \
552-
PYTHON_BINARY=${PYTHON_BINARY} \
553-
CA_FILE="${DRIVERS_TOOLS}/.evergreen/ocsp/${OCSP_ALGORITHM}/ca.pem" \
554-
OCSP_TLS_SHOULD_SUCCEED="${OCSP_TLS_SHOULD_SUCCEED}" \
555-
bash ${PROJECT_DIRECTORY}/.evergreen/hatch.sh test:test-eg
556-
bash ${DRIVERS_TOOLS}/.evergreen/ocsp/teardown.sh
555+
args:
556+
- .evergreen/scripts/run-ocsp-test.sh
557557

558558
"run-ocsp-server":
559559
- command: subprocess.exec

.evergreen/scripts/run-mongodb-aws-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ if [ "${skip_EC2_auth_test}" = "true" ] && { [ "$1" = "ec2" ] || [ "$1" = "web-i
2020
fi
2121

2222
. .evergreen/scripts/env.sh
23-
echo "Running MONGODB-AWS authentication tests"
23+
echo "Running MONGODB-AWS authentication tests for $1"
2424

2525
# Handle credentials and environment setup.
26-
. $DRIVERS_TOOLS/.evergreen/auth_aws/aws_setup.sh $1
26+
. "$DRIVERS_TOOLS"/.evergreen/auth_aws/aws_setup.sh "$1"
2727

2828
# show test output
2929
set -x

.evergreen/scripts/run-ocsp-test.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
. .evergreen/scripts/env.sh
4+
5+
TEST_OCSP=1 \
6+
CA_FILE="${DRIVERS_TOOLS}/.evergreen/ocsp/${OCSP_ALGORITHM}/ca.pem" \
7+
OCSP_TLS_SHOULD_SUCCEED="${OCSP_TLS_SHOULD_SUCCEED}" \
8+
bash "${PROJECT_DIRECTORY}"/.evergreen/hatch.sh test:test-eg
9+
bash "${DRIVERS_TOOLS}"/.evergreen/ocsp/teardown.sh

0 commit comments

Comments
 (0)