Skip to content

Commit b5e09dc

Browse files
katcharovblink1073
andauthored
DRIVERS-2915 Add authMechanism option to tests where needed (#1599)
DRIVERS-2915 * Add authMechanism option where needed, minor fixes * Apply suggestions from code review Co-authored-by: Steven Silvester <[email protected]> --------- Co-authored-by: Steven Silvester <[email protected]>
1 parent 5984422 commit b5e09dc

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

source/connection-string/connection-string-spec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ The values in connection options MUST be URL decoded by the parser. The values c
224224
?readPreferenceTags=dc:ny,rack:1
225225
```
226226

227-
Drivers MUST handle unencoded colon signs (":") within the value. For example, given the connection string:
227+
Drivers MUST handle unencoded colon signs (":") within the value. For example, given the connection string option:
228228

229229
```
230-
?authMechanismProperties=TOKEN_RESOURCE:mongodb://foo
230+
authMechanismProperties=TOKEN_RESOURCE:mongodb://foo
231231
```
232232

233233
the driver MUST interpret the key as `TOKEN_RESOURCE` and the value as `mongodb://foo`.

source/connection-string/tests/valid-options.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/connection-string/tests/valid-options.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ tests:
3030
tls: true
3131
-
3232
description: Colon in a key value pair
33-
uri: mongodb://example.com?authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster
33+
uri: mongodb://example.com/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster
3434
valid: true
3535
warning: false
3636
hosts:
@@ -40,5 +40,5 @@ tests:
4040
port: ~
4141
auth: ~
4242
options:
43-
authmechanismProperties:
44-
TOKEN_RESOURCE: 'mongodb://test-cluster'
43+
authmechanismProperties:
44+
TOKEN_RESOURCE: 'mongodb://test-cluster'

source/connection-string/tests/valid-warnings.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/connection-string/tests/valid-warnings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ tests:
7575
options: ~
7676
-
7777
description: Comma in a key value pair causes a warning
78-
uri: mongodb://example.com?authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2
78+
uri: mongodb://localhost?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2
7979
valid: true
8080
warning: true
8181
hosts:

0 commit comments

Comments
 (0)