Skip to content

Commit ec978c5

Browse files
committed
provided tls=true in auth/ssl uri
1 parent e62a61a commit ec978c5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.evergreen/config.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ functions:
3434
add_expansions_to_env: true
3535
args:
3636
- ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
37-
- command: shell.exec
38-
params:
39-
binary: bash
40-
script: |
41-
cat mo-expansion.yml
4237
- command: expansions.update
4338
params:
4439
file: mo-expansion.yml

.github/workflows/mongodb_settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
PARSED_URI = parse_uri(os.getenv("MONGODB_URI")) if os.getenv("MONGODB_URI") else {}
77

8+
# Temporary fix for https://github.com/mongodb-labs/mongo-orchestration/issues/268
9+
if "USER" in PARSED_URI and "PASSWORD" in PARSED_URI:
10+
PARSED_URI["OPTIONS"]["tls"] = True
11+
812
DATABASES = {
913
"default": {
1014
**PARSED_URI,
@@ -17,7 +21,7 @@
1721
"NAME": "djangotests-other",
1822
},
1923
}
20-
print(DATABASES)
24+
2125
DEFAULT_AUTO_FIELD = "django_mongodb_backend.fields.ObjectIdAutoField"
2226
PASSWORD_HASHERS = ("django.contrib.auth.hashers.MD5PasswordHasher",)
2327
SECRET_KEY = "django_tests_secret_key"

0 commit comments

Comments
 (0)