Skip to content

Commit 347f24f

Browse files
DRIVERS-2915 Add ENVIRONMENT auth mechanism property to test URIs (#1760)
1 parent 366afd6 commit 347f24f

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

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

+3-2
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

+4-3
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ tests:
3030
tls: true
3131
-
3232
description: Colon in a key value pair
33-
uri: mongodb://example.com/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster
33+
uri: mongodb://example.com/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster,ENVIRONMENT:azure
3434
valid: true
3535
warning: false
3636
hosts:
37-
-
37+
-
3838
type: hostname
3939
host: example.com
4040
port: ~
4141
auth: ~
4242
options:
4343
authmechanismProperties:
44-
TOKEN_RESOURCE: 'mongodb://test-cluster'
44+
TOKEN_RESOURCE: 'mongodb://test-cluster'
45+
ENVIRONMENT: azure

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

+1-1
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

+1-1
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://localhost?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2
78+
uri: mongodb://localhost?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2,ENVIRONMENT:azure
7979
valid: true
8080
warning: true
8181
hosts:

0 commit comments

Comments
 (0)