Skip to content

Commit ca543d4

Browse files
authored
PYTHON-4463 Add authMechanism option to tests where needed (mongodb#1665)
1 parent 6383412 commit ca543d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/connection_string/test/valid-options.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
{
4242
"description": "Colon in a key value pair",
43-
"uri": "mongodb://example.com?authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster",
43+
"uri": "mongodb://example.com/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster",
4444
"valid": true,
4545
"warning": false,
4646
"hosts": [

test/connection_string/test/valid-warnings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@
9696
},
9797
{
9898
"description": "Comma in a key value pair causes a warning",
99-
"uri": "mongodb://example.com?authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2",
99+
"uri": "mongodb://localhost?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2",
100100
"valid": true,
101101
"warning": true,
102102
"hosts": [
103103
{
104104
"type": "hostname",
105-
"host": "example.com",
105+
"host": "localhost",
106106
"port": null
107107
}
108108
],

0 commit comments

Comments
 (0)