Skip to content
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
15 changes: 15 additions & 0 deletions specifications/uri-options/tests/read-preference-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@
]
}
},
{
"description": "Read preference tags are case sensitive",
"uri": "mongodb://example.com/?readPreference=secondary&readPreferenceTags=dc:NY",
"valid": true,
"warning": false,
"hosts": null,
"auth": null,
"options": {
"readPreferenceTags": [
{
"dc": "NY"
}
]
}
},
{
"description": "Invalid readPreferenceTags causes a warning",
"uri": "mongodb://example.com/?readPreferenceTags=invalid",
Expand Down
11 changes: 11 additions & 0 deletions specifications/uri-options/tests/read-preference-options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ tests:
readPreferenceTags:
-
dc: "ny"
-
description: "Read preference tags are case sensitive"
uri: "mongodb://example.com/?readPreference=secondary&readPreferenceTags=dc:NY"
valid: true
warning: false
hosts: ~
auth: ~
options:
readPreferenceTags:
-
dc: "NY"
-
description: "Invalid readPreferenceTags causes a warning"
uri: "mongodb://example.com/?readPreferenceTags=invalid"
Expand Down