67 lines
1.7 KiB
JSON
67 lines
1.7 KiB
JSON
{
|
|
"tests": [
|
|
{
|
|
"description": "maxAdaptiveRetries is parsed correctly",
|
|
"uri": "mongodb://example.com/?maxAdaptiveRetries=3",
|
|
"valid": true,
|
|
"warning": false,
|
|
"hosts": null,
|
|
"auth": null,
|
|
"options": {
|
|
"maxAdaptiveRetries": 3
|
|
}
|
|
},
|
|
{
|
|
"description": "maxAdaptiveRetries=0 is parsed correctly",
|
|
"uri": "mongodb://example.com/?maxAdaptiveRetries=0",
|
|
"valid": true,
|
|
"warning": false,
|
|
"hosts": null,
|
|
"auth": null,
|
|
"options": {
|
|
"maxAdaptiveRetries": 0
|
|
}
|
|
},
|
|
{
|
|
"description": "maxAdaptiveRetries with invalid value causes a warning",
|
|
"uri": "mongodb://example.com/?maxAdaptiveRetries=-5",
|
|
"valid": true,
|
|
"warning": true,
|
|
"hosts": null,
|
|
"auth": null,
|
|
"options": null
|
|
},
|
|
{
|
|
"description": "enableOverloadRetargeting is parsed correctly",
|
|
"uri": "mongodb://example.com/?enableOverloadRetargeting=true",
|
|
"valid": true,
|
|
"warning": false,
|
|
"hosts": null,
|
|
"auth": null,
|
|
"options": {
|
|
"enableOverloadRetargeting": true
|
|
}
|
|
},
|
|
{
|
|
"description": "enableOverloadRetargeting=false is parsed correctly",
|
|
"uri": "mongodb://example.com/?enableOverloadRetargeting=false",
|
|
"valid": true,
|
|
"warning": false,
|
|
"hosts": null,
|
|
"auth": null,
|
|
"options": {
|
|
"enableOverloadRetargeting": false
|
|
}
|
|
},
|
|
{
|
|
"description": "enableOverloadRetargeting with invalid value causes a warning",
|
|
"uri": "mongodb://example.com/?enableOverloadRetargeting=invalid",
|
|
"valid": true,
|
|
"warning": true,
|
|
"hosts": null,
|
|
"auth": null,
|
|
"options": null
|
|
}
|
|
]
|
|
}
|