Skip to content

Commit 2e69fe6

Browse files
committed
CSHARP-5479: Add mixed case tests for read preference tags
1 parent 1085a9d commit 2e69fe6

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@
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",

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ tests:
2626
readPreferenceTags:
2727
-
2828
dc: "ny"
29+
-
30+
description: "Read preference tags are case sensitive"
31+
uri: "mongodb://example.com/?readPreference=secondary&readPreferenceTags=dc:NY"
32+
valid: true
33+
warning: false
34+
hosts: ~
35+
auth: ~
36+
options:
37+
readPreferenceTags:
38+
-
39+
dc: "NY"
2940
-
3041
description: "Invalid readPreferenceTags causes a warning"
3142
uri: "mongodb://example.com/?readPreferenceTags=invalid"

0 commit comments

Comments
 (0)