File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 23
23
echo " Missing test inputs, please run 'just setup-test'"
24
24
fi
25
25
26
- # Source the csfle secrets if running encryption test .
27
- if [ -n " ${TEST_ENCRYPTION :- } " ]; then
28
- source $DRIVERS_TOOLS /.evergreen/csfle/ secrets-export.sh
26
+ # Source the local secrets export file if available .
27
+ if [ -f " $ROOT_DIR /secrets-export.sh " ]; then
28
+ source " $ROOT_DIR / secrets-export.sh"
29
29
fi
30
30
31
31
PYTHON_IMPL=$( uv run python -c " import platform; print(platform.python_implementation())" )
Original file line number Diff line number Diff line change 5
5
set +x
6
6
# Use the default python to bootstrap secrets.
7
7
bash " ${DRIVERS_TOOLS} " /.evergreen/secrets_handling/setup-secrets.sh drivers/enterprise_auth
8
- TEST_ENTERPRISE_AUTH=1 AUTH=auth bash " ${PROJECT_DIRECTORY} " /.evergreen/just.sh test-eg
8
+ TEST_ENTERPRISE_AUTH=1 AUTH=auth bash " ${PROJECT_DIRECTORY} " /.evergreen/just.sh setup-test
9
+ bash " ${PROJECT_DIRECTORY} " /.evergreen/just.sh test-eg
Original file line number Diff line number Diff line change @@ -191,10 +191,14 @@ def handle_test_env() -> None:
191
191
MULTI_MONGOS_LB_URI += "&tls=true"
192
192
write_env ("SINGLE_MONGOS_LB_URI" , SINGLE_MONGOS_LB_URI )
193
193
write_env ("MULTI_MONGOS_LB_URI" , MULTI_MONGOS_LB_URI )
194
+ if not DRIVERS_TOOLS :
195
+ raise RuntimeError ("Missing DRIVERS_TOOLS" )
194
196
cmd = f'bash "{ DRIVERS_TOOLS } /.evergreen/run-load-balancer.sh" start'
195
197
run_command (cmd )
196
198
197
199
if SSL != "nossl" :
200
+ if not DRIVERS_TOOLS :
201
+ raise RuntimeError ("Missing DRIVERS_TOOLS" )
198
202
write_env ("CLIENT_PEM" , f"{ DRIVERS_TOOLS } /.evergreen/x509gen/client.pem" )
199
203
write_env ("CA_PEM" , f"{ DRIVERS_TOOLS } /.evergreen/x509gen/ca.pem" )
200
204
@@ -231,6 +235,8 @@ def handle_test_env() -> None:
231
235
# PATH is updated by configure-env.sh for access to mongocryptd.
232
236
233
237
if is_set ("TEST_ENCRYPTION" ):
238
+ if not DRIVERS_TOOLS :
239
+ raise RuntimeError ("Missing DRIVERS_TOOLS" )
234
240
run_command (f"bash { DRIVERS_TOOLS } /.evergreen/csfle/setup-secrets.sh" )
235
241
run_command (f"bash { DRIVERS_TOOLS } /.evergreen/csfle/start-servers.sh" )
236
242
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ SCRIPT_DIR=$(dirname ${BASH_SOURCE:-$0})
32
32
ROOT_DIR=" $( dirname $( dirname $SCRIPT_DIR ) ) "
33
33
34
34
# Try to source the env file.
35
- if [ -f $SCRIPT_DIR /scripts/ env.sh ]; then
36
- source $SCRIPT_DIR /scripts/ env.sh
35
+ if [ -f $SCRIPT_DIR /env.sh ]; then
36
+ source $SCRIPT_DIR /env.sh
37
37
fi
38
38
39
39
# Source serverless secrets if applicable.
You can’t perform that action at this time.
0 commit comments