Test that readPreferenceTags are always interpreted as an array
"maxStalenessSeconds": 120
}
},
+ {
+ "description": "Single readPreferenceTags is parsed as array of size one",
+ "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",
