|
1 | 1 | { |
2 | 2 | "tests": [ |
3 | 3 | { |
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", |
6 | 6 | "valid": true, |
7 | 7 | "warning": false, |
8 | 8 | "hosts": null, |
9 | 9 | "auth": null, |
10 | 10 | "options": { |
11 | | - "adaptiveRetries": true |
| 11 | + "maxAdaptiveRetries": 3 |
12 | 12 | } |
13 | 13 | }, |
14 | 14 | { |
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", |
17 | 17 | "valid": true, |
18 | 18 | "warning": false, |
19 | 19 | "hosts": null, |
20 | 20 | "auth": null, |
21 | 21 | "options": { |
22 | | - "adaptiveRetries": false |
| 22 | + "maxAdaptiveRetries": 0 |
23 | 23 | } |
24 | 24 | }, |
25 | 25 | { |
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", |
28 | 59 | "valid": true, |
29 | 60 | "warning": true, |
30 | 61 | "hosts": null, |
|
0 commit comments