Skip to content

Commit c3398a3

Browse files
committed
cleanup
1 parent 60376b8 commit c3398a3

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

.evergreen/scripts/configure-env.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ EOT
7878
rm -rf $DRIVERS_TOOLS
7979
BRANCH=master
8080
ORG=mongodb-labs
81+
BRANCH=ocsp-updates
82+
ORG=blink1073
8183
git clone --branch $BRANCH https://github.com/$ORG/drivers-evergreen-tools.git $DRIVERS_TOOLS
8284

8385
cat <<EOT > ${DRIVERS_TOOLS}/.env

.evergreen/scripts/run_server.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def start_server():
3333
set_env("LOAD_BALANCER")
3434

3535
elif test_name == "ocsp":
36-
opts.ssl = True
3736
if "ORCHESTRATION_FILE" not in os.environ:
3837
found = False
3938
for opt in extra_opts:
@@ -47,11 +46,10 @@ def start_server():
4746

4847
if opts.ssl:
4948
extra_opts.append("--ssl")
50-
if test_name != "ocsp":
51-
certs = ROOT / "test/certificates"
52-
set_env("TLS_CERT_KEY_FILE", certs / "client.pem")
53-
set_env("TLS_PEM_KEY_FILE", certs / "server.pem")
54-
set_env("TLS_CA_FILE", certs / "ca.pem")
49+
certs = ROOT / "test/certificates"
50+
set_env("TLS_CERT_KEY_FILE", certs / "client.pem")
51+
set_env("TLS_PEM_KEY_FILE", certs / "server.pem")
52+
set_env("TLS_CA_FILE", certs / "ca.pem")
5553

5654
cmd = ["bash", f"{DRIVERS_TOOLS}/.evergreen/run-orchestration.sh", *extra_opts]
5755
run_command(cmd, cwd=DRIVERS_TOOLS)

.evergreen/scripts/setup_tests.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,6 @@ def handle_test_env() -> None:
318318

319319
setup_kms(sub_test_name)
320320

321-
if test_name == "ocsp":
322-
write_env("CA_FILE", os.environ["CA_FILE"])
323-
write_env("OCSP_TLS_SHOULD_SUCCEED", os.environ["OCSP_TLS_SHOULD_SUCCEED"])
324-
325321
if test_name == "auth_aws" and sub_test_name != "ecs-remote":
326322
auth_aws_dir = f"{DRIVERS_TOOLS}/.evergreen/auth_aws"
327323
if "AWS_ROLE_SESSION_NAME" in os.environ:

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ For KMS tests that run remotely and are expected to pass, in this case using `gc
257257

258258
### OCSP tests
259259

260-
- Export the algorithm, e.g. `export ORCHESTRATION_FILE=rsa-basic-tls-ocsp-mustStaple.json`.
260+
- Export the algorithm, e.g. `export ORCHESTRATION_FILE=rsa-basic-tls-ocsp-disableStapling.json`.
261261
This corresponds to a config file in `$DRIVERS_TOOLS/.evergreen/orchestration/configs/servers`.
262-
Only the rsa algorithm works on MacOS.
262+
MongoDB servers on MacOS and Windows do not staple OCSP responses and only support RSA.
263263
- Run `just run-server ocsp`.
264264
- Run `just setup-tests ocsp valid` (options are "valid", "revoked", "valid-delegate", "revoked-delegate").
265265
- Run `just run-tests`

0 commit comments

Comments
 (0)