Ferdinando Papale
5 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
26 additions and
0 deletions
-
specifications/uri-options/tests/read-preference-options.json
-
specifications/uri-options/tests/read-preference-options.yml
|
|
@ -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", |
|
|
|
|
|
@ -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" |
|
|
|