File tree Expand file tree Collapse file tree 2 files changed +60
-9
lines changed
src/test/spec/json/uri-options Expand file tree Collapse file tree 2 files changed +60
-9
lines changed Original file line number Diff line number Diff line change 2121 "maxStalenessSeconds" : 120
2222 }
2323 },
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" : " 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+ },
2454 {
2555 "description" : " Invalid readPreferenceTags causes a warning" ,
2656 "uri" : " mongodb://example.com/?readPreferenceTags=invalid" ,
2757 "valid" : true ,
2858 "warning" : true ,
2959 "hosts" : null ,
3060 "auth" : null ,
31- "options" : {}
61+ "options" : null
3262 },
3363 {
3464 "description" : " Non-numeric maxStalenessSeconds causes a warning" ,
3767 "warning" : true ,
3868 "hosts" : null ,
3969 "auth" : null ,
40- "options" : {}
70+ "options" : null
4171 },
4272 {
4373 "description" : " Too low maxStalenessSeconds causes a warning" ,
4676 "warning" : true ,
4777 "hosts" : null ,
4878 "auth" : null ,
49- "options" : {}
79+ "options" : null
5080 }
5181 ]
52- }
82+ }
Original file line number Diff line number Diff line change 99 options :
1010 readPreference : " primaryPreferred"
1111 readPreferenceTags :
12- -
12+ -
1313 dc : " ny"
1414 rack : " 1"
1515 -
1616 dc : " ny"
1717 maxStalenessSeconds : 120
18+ -
19+ description : " Single readPreferenceTags is parsed as array of size one"
20+ uri : " mongodb://example.com/?readPreference=secondary&readPreferenceTags=dc:ny"
21+ valid : true
22+ warning : false
23+ hosts : ~
24+ auth : ~
25+ options :
26+ readPreferenceTags :
27+ -
28+ 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"
1840 -
1941 description : " Invalid readPreferenceTags causes a warning"
2042 uri : " mongodb://example.com/?readPreferenceTags=invalid"
2143 valid : true
2244 warning : true
2345 hosts : ~
2446 auth : ~
25- options : {}
47+ options : ~
2648 -
2749 description : " Non-numeric maxStalenessSeconds causes a warning"
2850 uri : " mongodb://example.com/?maxStalenessSeconds=invalid"
2951 valid : true
3052 warning : true
3153 hosts : ~
3254 auth : ~
33- options : {}
55+ options : ~
3456 -
3557 description : " Too low maxStalenessSeconds causes a warning"
3658 uri : " mongodb://example.com/?maxStalenessSeconds=-2"
3759 valid : true
3860 warning : true
3961 hosts : ~
4062 auth : ~
41- options : {}
42-
63+ options : ~
You can’t perform that action at this time.
0 commit comments