Skip to content

Commit 5882ff0

Browse files
committed
fix auth aws
1 parent 286d684 commit 5882ff0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ export PYTHON_BINARY=$PYTHON_VER
2929
export SET_XTRACE_ON=1
3030
cd src
3131
rm -rf .venv
32-
bash ./.evergreen/just.sh setup-test auth_aws
32+
bash ./.evergreen/just.sh setup-test auth_aws ecs
3333
bash .evergreen/just.sh test-eg

.evergreen/scripts/setup-tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
"serverless": "",
5050
}
5151

52+
# Tests that require a sub test suite.
53+
SUB_TEST_REQUIRED = ["auth_aws", "kms"]
54+
5255
# Map the test name to test extra.
5356
EXTRAS_MAP = {
5457
"auth_aws": "aws",
@@ -124,6 +127,8 @@ def handle_test_env() -> None:
124127
opts = get_options()
125128
test_name = opts.test_name
126129
sub_test_name = opts.sub_test_name
130+
if test_name in SUB_TEST_REQUIRED and not sub_test_name:
131+
raise ValueError(f"Test '{test_name}' requires a sub_test_name")
127132
AUTH = os.environ.get("AUTH", "noauth")
128133
if opts.auth or "auth" in test_name:
129134
# Only 'auth_aws ecs' shouldn't have extra auth set.

0 commit comments

Comments
 (0)