File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 21
21
logging .basicConfig (level = logging .INFO , format = "%(levelname)-8s %(message)s" )
22
22
23
23
# Passthrough environment variables.
24
- PASS_THROUGH_ENV = [
25
- "GREEN_FRAMEWORK" ,
26
- "NO_EXT" ,
27
- "MONGODB_API_VERSION" ,
28
- "MONGODB_URI" ,
29
- ]
24
+ PASS_THROUGH_ENV = ["GREEN_FRAMEWORK" , "NO_EXT" , "MONGODB_API_VERSION" ]
30
25
31
26
# Map the test name to a test suite.
32
27
TEST_SUITE_MAP = {
@@ -132,10 +127,10 @@ def handle_test_env() -> None:
132
127
AUTH = os .environ .get ("AUTH" , "noauth" )
133
128
LOGGER .info (f"HI, { AUTH = } " ) # TODO remove
134
129
if opts .auth or "auth" in test_name :
135
- # Only 'auth_aws ecs' shouldn't have extra auth set.
136
- if not ( test_name == "auth_aws" and sub_test_name == "ecs" ):
137
- LOGGER . info ( f"Why am I setting this? ' { sub_test_name = } '" )
138
- AUTH = "auth "
130
+ AUTH = " auth"
131
+ # 'auth_aws ecs' shouldn't have extra auth set.
132
+ if test_name == "auth_aws" and sub_test_name == "ecs" :
133
+ AUTH = "noauth "
139
134
SSL = os .environ .get ("SSL" , "nossl" )
140
135
if opts .ssl :
141
136
SSL = "ssl"
@@ -198,6 +193,7 @@ def handle_test_env() -> None:
198
193
config = read_env (f"{ DRIVERS_TOOLS } /.evergreen/atlas/secrets-export.sh" )
199
194
DB_USER = config ["DRIVERS_ATLAS_LAMBDA_USER" ]
200
195
DB_PASSWORD = config ["DRIVERS_ATLAS_LAMBDA_PASSWORD" ]
196
+ write_env ("MONGODB_URI" , config ["MONGODB_URI" ])
201
197
else :
202
198
DB_USER = "bob"
203
199
DB_PASSWORD = "pwd123" # noqa: S105
You can’t perform that action at this time.
0 commit comments