Skip to content

Commit 581b63a

Browse files
committed
Update URI option tests
1 parent a766335 commit 581b63a

1 file changed

Lines changed: 39 additions & 8 deletions

File tree

test/uri_options/client-backpressure-options.json

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,61 @@
11
{
22
"tests": [
33
{
4-
"description": "adaptiveRetries=true is parsed correctly",
5-
"uri": "mongodb://example.com/?adaptiveRetries=true",
4+
"description": "maxAdaptiveRetries is parsed correctly",
5+
"uri": "mongodb://example.com/?maxAdaptiveRetries=3",
66
"valid": true,
77
"warning": false,
88
"hosts": null,
99
"auth": null,
1010
"options": {
11-
"adaptiveRetries": true
11+
"maxAdaptiveRetries": 3
1212
}
1313
},
1414
{
15-
"description": "adaptiveRetries=false is parsed correctly",
16-
"uri": "mongodb://example.com/?adaptiveRetries=false",
15+
"description": "maxAdaptiveRetries=0 is parsed correctly",
16+
"uri": "mongodb://example.com/?maxAdaptiveRetries=0",
1717
"valid": true,
1818
"warning": false,
1919
"hosts": null,
2020
"auth": null,
2121
"options": {
22-
"adaptiveRetries": false
22+
"maxAdaptiveRetries": 0
2323
}
2424
},
2525
{
26-
"description": "adaptiveRetries with invalid value causes a warning",
27-
"uri": "mongodb://example.com/?adaptiveRetries=invalid",
26+
"description": "maxAdaptiveRetries with invalid value causes a warning",
27+
"uri": "mongodb://example.com/?maxAdaptiveRetries=-5",
28+
"valid": true,
29+
"warning": true,
30+
"hosts": null,
31+
"auth": null,
32+
"options": null
33+
},
34+
{
35+
"description": "enableOverloadRetargeting is parsed correctly",
36+
"uri": "mongodb://example.com/?enableOverloadRetargeting=true",
37+
"valid": true,
38+
"warning": false,
39+
"hosts": null,
40+
"auth": null,
41+
"options": {
42+
"enableOverloadRetargeting": true
43+
}
44+
},
45+
{
46+
"description": "enableOverloadRetargeting=false is parsed correctly",
47+
"uri": "mongodb://example.com/?enableOverloadRetargeting=false",
48+
"valid": true,
49+
"warning": false,
50+
"hosts": null,
51+
"auth": null,
52+
"options": {
53+
"enableOverloadRetargeting": false
54+
}
55+
},
56+
{
57+
"description": "enableOverloadRetargeting with invalid value causes a warning",
58+
"uri": "mongodb://example.com/?enableOverloadRetargeting=invalid",
2859
"valid": true,
2960
"warning": true,
3061
"hosts": null,

0 commit comments

Comments
 (0)