Skip to content

Commit 5baa2de

Browse files
committed
cleanup
1 parent 884244b commit 5baa2de

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.evergreen/scripts/setup_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ def handle_test_env() -> None:
207207
write_env("PYMONGO_DISABLE_TEST_COMMANDS", "1")
208208

209209
if test_name == "enterprise_auth":
210+
get_secrets("drivers/enterprise_auth")
210211
config = read_env(f"{ROOT}/secrets-export.sh")
211212
if PLATFORM == "windows":
212213
LOGGER.info("Setting GSSAPI_PASS")
@@ -352,9 +353,8 @@ def handle_test_env() -> None:
352353

353354
if test_name == "atlas_connect":
354355
get_secrets("drivers/atlas_connect")
355-
356-
if test_name == "enterprise_auth":
357-
get_secrets("drivers/enterprise_auth")
356+
# We do not want the default client_context to be initialized.
357+
write_env("DISABLE_CONTEXT")
358358

359359
if test_name == "perf":
360360
# PYTHON-4769 Run perf_test.py directly otherwise pytest's test collection negatively

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,14 @@ For KMS tests that run remotely and are expected to pass, in this case using `gc
262262
- Run `just setup-tests kms gcp`.
263263
- Run `just run-tests`.
264264

265+
#### Enterprise Auth tests
266+
267+
Note: these tests can only be run from an Evergreen host.
268+
269+
- Run `just run-server enterprise_auth`.
270+
- Run `just setup-tests enterprise_auth`.
271+
- Run `just test`
272+
265273
### OCSP tests
266274

267275
- Export the orchestration file, e.g. `export ORCHESTRATION_FILE=rsa-basic-tls-ocsp-disableStapling.json`.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ markers = [
125125
"auth_oidc: tests that rely on oidc auth",
126126
"auth: tests that rely on authentication",
127127
"ocsp: tests that rely on ocsp",
128-
"atlas: tests that rely on atlas",
128+
"atlas_connect: tests that rely on an atlas connection",
129129
"data_lake: tests that rely on atlas data lake",
130130
"perf: benchmark tests",
131131
"index_management: index management tests",

0 commit comments

Comments
 (0)