We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5e8347 commit 2ef3f43Copy full SHA for 2ef3f43
driver-core/src/test/resources/uri-options/read-preference-options.json
@@ -21,6 +21,21 @@
21
"maxStalenessSeconds": 120
22
}
23
},
24
+ {
25
+ "description": "Single readPreferenceTags is parsed as array of size one",
26
+ "uri": "mongodb://example.com/?readPreference=secondary&readPreferenceTags=dc:ny",
27
+ "valid": true,
28
+ "warning": false,
29
+ "hosts": null,
30
+ "auth": null,
31
+ "options": {
32
+ "readPreferenceTags": [
33
34
+ "dc": "ny"
35
+ }
36
+ ]
37
38
+ },
39
{
40
"description": "Invalid readPreferenceTags causes a warning",
41
"uri": "mongodb://example.com/?readPreferenceTags=invalid",
0 commit comments