Skip to content

DRIVERS-2915 Add ENVIRONMENT auth mechanism property to test URIs #1760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions source/connection-string/tests/valid-options.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions source/connection-string/tests/valid-options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ tests:
tls: true
-
description: Colon in a key value pair
uri: mongodb://example.com/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster
uri: mongodb://example.com/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster,ENVIRONMENT:azure
valid: true
warning: false
hosts:
-
-
type: hostname
host: example.com
port: ~
auth: ~
options:
authmechanismProperties:
TOKEN_RESOURCE: 'mongodb://test-cluster'
TOKEN_RESOURCE: 'mongodb://test-cluster'
ENVIRONMENT: azure
2 changes: 1 addition & 1 deletion source/connection-string/tests/valid-warnings.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/connection-string/tests/valid-warnings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tests:
options: ~
-
description: Comma in a key value pair causes a warning
uri: mongodb://localhost?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2
uri: mongodb://localhost?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2,ENVIRONMENT:azure
valid: true
warning: true
hosts:
Expand Down
Loading