Skip to content

Commit 3bf1442

Browse files
committed
sync spec tests for uri-options
1 parent daaefd8 commit 3bf1442

2 files changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"tests": [
3+
{
4+
"description": "adaptiveRetries=true is parsed correctly",
5+
"uri": "mongodb://example.com/?adaptiveRetries=true",
6+
"valid": true,
7+
"warning": false,
8+
"hosts": null,
9+
"auth": null,
10+
"options": {
11+
"adaptiveRetries": true
12+
}
13+
},
14+
{
15+
"description": "adaptiveRetries=false is parsed correctly",
16+
"uri": "mongodb://example.com/?adaptiveRetries=false",
17+
"valid": true,
18+
"warning": false,
19+
"hosts": null,
20+
"auth": null,
21+
"options": {
22+
"adaptiveRetries": false
23+
}
24+
},
25+
{
26+
"description": "adaptiveRetries with invalid value causes a warning",
27+
"uri": "mongodb://example.com/?adaptiveRetries=invalid",
28+
"valid": true,
29+
"warning": true,
30+
"hosts": null,
31+
"auth": null,
32+
"options": null
33+
}
34+
]
35+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
tests:
2+
-
3+
description: "adaptiveRetries=true is parsed correctly"
4+
uri: "mongodb://example.com/?adaptiveRetries=true"
5+
valid: true
6+
warning: false
7+
hosts: ~
8+
auth: ~
9+
options:
10+
adaptiveRetries: true
11+
-
12+
description: "adaptiveRetries=false is parsed correctly"
13+
uri: "mongodb://example.com/?adaptiveRetries=false"
14+
valid: true
15+
warning: false
16+
hosts: ~
17+
auth: ~
18+
options:
19+
adaptiveRetries: false
20+
-
21+
description: "adaptiveRetries with invalid value causes a warning"
22+
uri: "mongodb://example.com/?adaptiveRetries=invalid"
23+
valid: true
24+
warning: true
25+
hosts: ~
26+
auth: ~
27+
options: ~

0 commit comments

Comments
 (0)