Skip to content

Commit 6862e94

Browse files
authored
PYTHON-4923 - Add mixed case tests for read preference tags (mongodb#1990)
1 parent c680f63 commit 6862e94

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

test/uri_options/read-preference-options.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,29 @@
3636
]
3737
}
3838
},
39+
{
40+
"description": "Read preference tags are case sensitive",
41+
"uri": "mongodb://example.com/?readPreference=secondary&readPreferenceTags=dc:NY",
42+
"valid": true,
43+
"warning": false,
44+
"hosts": null,
45+
"auth": null,
46+
"options": {
47+
"readPreferenceTags": [
48+
{
49+
"dc": "NY"
50+
}
51+
]
52+
}
53+
},
3954
{
4055
"description": "Invalid readPreferenceTags causes a warning",
4156
"uri": "mongodb://example.com/?readPreferenceTags=invalid",
4257
"valid": true,
4358
"warning": true,
4459
"hosts": null,
4560
"auth": null,
46-
"options": {}
61+
"options": null
4762
},
4863
{
4964
"description": "Non-numeric maxStalenessSeconds causes a warning",
@@ -52,7 +67,7 @@
5267
"warning": true,
5368
"hosts": null,
5469
"auth": null,
55-
"options": {}
70+
"options": null
5671
},
5772
{
5873
"description": "Too low maxStalenessSeconds causes a warning",
@@ -61,7 +76,7 @@
6176
"warning": true,
6277
"hosts": null,
6378
"auth": null,
64-
"options": {}
79+
"options": null
6580
}
6681
]
6782
}

0 commit comments

Comments
 (0)