Browse Source

Merge 2e69fe6252 into 23dc1e56c2

pull/1730/merge
Ferdinando Papale 5 days ago
committed by GitHub
parent
commit
5fedb8a8d3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 15
      specifications/uri-options/tests/read-preference-options.json
  2. 11
      specifications/uri-options/tests/read-preference-options.yml

15
specifications/uri-options/tests/read-preference-options.json

@ -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",

11
specifications/uri-options/tests/read-preference-options.yml

@ -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"

Loading…
Cancel
Save