Skip to content

Commit b10bd37

Browse files
committed
modwsgi, enterprise auth
1 parent ea5dff8 commit b10bd37

File tree

3 files changed

+25
-18
lines changed

3 files changed

+25
-18
lines changed

.evergreen/config.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -255,16 +255,14 @@ functions:
255255
- ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
256256

257257
"run mod_wsgi tests":
258-
- command: shell.exec
258+
- command: subprocess.exec
259259
type: test
260260
params:
261+
include_expansions_in_env: ["PROJECT_DIRECTORY"]
261262
working_dir: "src"
262-
script: |
263-
. .evergreen/scripts/env.sh
264-
set -o xtrace
265-
PYTHON_BINARY=${PYTHON_BINARY} MOD_WSGI_VERSION=${MOD_WSGI_VERSION} \
266-
MOD_WSGI_EMBEDDED=${MOD_WSGI_EMBEDDED} PROJECT_DIRECTORY=${PROJECT_DIRECTORY} \
267-
bash ${PROJECT_DIRECTORY}/.evergreen/run-mod-wsgi-tests.sh
263+
binary: bash
264+
args:
265+
- .evergreen/scripts/run-modwsgi-tests.sh
268266

269267
"run mockupdb tests":
270268
- command: subprocess.exec
@@ -360,20 +358,14 @@ functions:
360358
bash ${PROJECT_DIRECTORY}/.evergreen/hatch.sh test:test-eg
361359
362360
"run enterprise auth tests":
363-
- command: shell.exec
361+
- command: subprocess.exec
364362
type: test
365363
params:
364+
binary: bash
366365
working_dir: "src"
367-
include_expansions_in_env: ["DRIVERS_TOOLS", "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
368-
script: |
369-
# Disable xtrace for security reasons (just in case it was accidentally set).
370-
set +x
371-
bash ${DRIVERS_TOOLS}/.evergreen/auth_aws/setup_secrets.sh drivers/enterprise_auth
372-
PROJECT_DIRECTORY="${PROJECT_DIRECTORY}" \
373-
PYTHON_BINARY="${PYTHON_BINARY}" \
374-
TEST_ENTERPRISE_AUTH=1 \
375-
AUTH=auth \
376-
bash ${PROJECT_DIRECTORY}/.evergreen/hatch.sh test:test-eg
366+
include_expansions_in_env: ["DRIVERS_TOOLS", "PROJECT_DIRECTORY", "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
367+
args:
368+
- .evergreen/scripts/run-enterprise-auth-tests.sh
377369

378370
"run atlas tests":
379371
- command: subprocess.exec
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
# Disable xtrace for security reasons (just in case it was accidentally set).
4+
set +x
5+
bash ${DRIVERS_TOOLS}/.evergreen/auth_aws/setup_secrets.sh drivers/enterprise_auth
6+
TEST_ENTERPRISE_AUTH=1 AUTH=auth bash "${PROJECT_DIRECTORY}"/.evergreen/hatch.sh test:test-eg
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+
set -o xtrace
5+
PYTHON_BINARY=${PYTHON_BINARY}
6+
MOD_WSGI_VERSION=${MOD_WSGI_VERSION}
7+
MOD_WSGI_EMBEDDED=${MOD_WSGI_EMBEDDED}
8+
PROJECT_DIRECTORY=${PROJECT_DIRECTORY}
9+
bash "${PROJECT_DIRECTORY}"/.evergreen/run-mod-wsgi-tests.sh

0 commit comments

Comments
 (0)