Co-authored-by: Steven Silvester <steve.silvester@mongodb.com> Co-authored-by: Shane Harvey <shnhrv@gmail.com> Co-authored-by: Steven Silvester <steven.silvester@ieee.org> Co-authored-by: Iris <58442094+sleepyStick@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kevin Albertson <kevin.albertson@mongodb.com> Co-authored-by: Casey Clements <caseyclements@users.noreply.github.com> Co-authored-by: Sergey Zelenov <mail@zelenov.su> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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
|
|
}
|
|
]
|
|
}
|