Skip to content

Commit 19ecf07

Browse files
test(NODE-6467): update uri options spec tests (#4311)
Co-authored-by: Bailey Pearson <[email protected]>
1 parent 0b60dfc commit 19ecf07

21 files changed

+241
-215
lines changed

test/spec/uri-options/compression-options.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"warning": true,
3636
"hosts": null,
3737
"auth": null,
38-
"options": {}
38+
"options": null
3939
},
4040
{
4141
"description": "Too low zlibCompressionLevel causes a warning",
@@ -44,7 +44,7 @@
4444
"warning": true,
4545
"hosts": null,
4646
"auth": null,
47-
"options": {}
47+
"options": null
4848
},
4949
{
5050
"description": "Too high zlibCompressionLevel causes a warning",
@@ -53,7 +53,7 @@
5353
"warning": true,
5454
"hosts": null,
5555
"auth": null,
56-
"options": {}
56+
"options": null
5757
}
5858
]
5959
}

test/spec/uri-options/compression-options.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tests:
77
hosts: ~
88
auth: ~
99
options:
10-
compressors:
10+
compressors:
1111
- "zlib"
1212
zlibCompressionLevel: 9
1313
-
@@ -28,21 +28,21 @@ tests:
2828
warning: true
2929
hosts: ~
3030
auth: ~
31-
options: {}
31+
options: ~
3232
-
3333
description: "Too low zlibCompressionLevel causes a warning"
3434
uri: "mongodb://example.com/?compressors=zlib&zlibCompressionLevel=-2"
3535
valid: true
3636
warning: true
3737
hosts: ~
3838
auth: ~
39-
options: {}
39+
options: ~
4040
-
4141
description: "Too high zlibCompressionLevel causes a warning"
4242
uri: "mongodb://example.com/?compressors=zlib&zlibCompressionLevel=10"
4343
valid: true
4444
warning: true
4545
hosts: ~
4646
auth: ~
47-
options: {}
47+
options: ~
4848

test/spec/uri-options/concern-options.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"warning": true,
4444
"hosts": null,
4545
"auth": null,
46-
"options": {}
46+
"options": null
4747
},
4848
{
4949
"description": "Too low wTimeoutMS causes a warning",
@@ -52,7 +52,7 @@
5252
"warning": true,
5353
"hosts": null,
5454
"auth": null,
55-
"options": {}
55+
"options": null
5656
},
5757
{
5858
"description": "Invalid journal causes a warning",
@@ -61,7 +61,7 @@
6161
"warning": true,
6262
"hosts": null,
6363
"auth": null,
64-
"options": {}
64+
"options": null
6565
}
6666
]
6767
}

test/spec/uri-options/concern-options.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ tests:
3636
warning: true
3737
hosts: ~
3838
auth: ~
39-
options: {}
39+
options: ~
4040
-
4141
description: "Too low wTimeoutMS causes a warning"
4242
uri: "mongodb://example.com/?wTimeoutMS=-2"
4343
valid: true
4444
warning: true
4545
hosts: ~
4646
auth: ~
47-
options: {}
47+
options: ~
4848
-
4949
description: "Invalid journal causes a warning"
5050
uri: "mongodb://example.com/?journal=invalid"
5151
valid: true
5252
warning: true
5353
hosts: ~
5454
auth: ~
55-
options: {}
55+
options: ~

test/spec/uri-options/connection-options.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"warning": true,
2828
"hosts": null,
2929
"auth": null,
30-
"options": {}
30+
"options": null
3131
},
3232
{
3333
"description": "Too low connectTimeoutMS causes a warning",
@@ -36,7 +36,7 @@
3636
"warning": true,
3737
"hosts": null,
3838
"auth": null,
39-
"options": {}
39+
"options": null
4040
},
4141
{
4242
"description": "Non-numeric heartbeatFrequencyMS causes a warning",
@@ -45,7 +45,7 @@
4545
"warning": true,
4646
"hosts": null,
4747
"auth": null,
48-
"options": {}
48+
"options": null
4949
},
5050
{
5151
"description": "Too low heartbeatFrequencyMS causes a warning",
@@ -54,7 +54,7 @@
5454
"warning": true,
5555
"hosts": null,
5656
"auth": null,
57-
"options": {}
57+
"options": null
5858
},
5959
{
6060
"description": "Non-numeric localThresholdMS causes a warning",
@@ -63,7 +63,7 @@
6363
"warning": true,
6464
"hosts": null,
6565
"auth": null,
66-
"options": {}
66+
"options": null
6767
},
6868
{
6969
"description": "Too low localThresholdMS causes a warning",
@@ -72,7 +72,7 @@
7272
"warning": true,
7373
"hosts": null,
7474
"auth": null,
75-
"options": {}
75+
"options": null
7676
},
7777
{
7878
"description": "Invalid retryWrites causes a warning",
@@ -81,7 +81,7 @@
8181
"warning": true,
8282
"hosts": null,
8383
"auth": null,
84-
"options": {}
84+
"options": null
8585
},
8686
{
8787
"description": "Non-numeric serverSelectionTimeoutMS causes a warning",
@@ -90,7 +90,7 @@
9090
"warning": true,
9191
"hosts": null,
9292
"auth": null,
93-
"options": {}
93+
"options": null
9494
},
9595
{
9696
"description": "Too low serverSelectionTimeoutMS causes a warning",
@@ -99,7 +99,7 @@
9999
"warning": true,
100100
"hosts": null,
101101
"auth": null,
102-
"options": {}
102+
"options": null
103103
},
104104
{
105105
"description": "Non-numeric socketTimeoutMS causes a warning",
@@ -108,7 +108,7 @@
108108
"warning": true,
109109
"hosts": null,
110110
"auth": null,
111-
"options": {}
111+
"options": null
112112
},
113113
{
114114
"description": "Too low socketTimeoutMS causes a warning",
@@ -117,7 +117,7 @@
117117
"warning": true,
118118
"hosts": null,
119119
"auth": null,
120-
"options": {}
120+
"options": null
121121
},
122122
{
123123
"description": "directConnection=true",
@@ -137,7 +137,7 @@
137137
"warning": false,
138138
"hosts": null,
139139
"auth": null,
140-
"options": {}
140+
"options": null
141141
},
142142
{
143143
"description": "directConnection=false",
@@ -168,7 +168,7 @@
168168
"warning": true,
169169
"hosts": null,
170170
"auth": null,
171-
"options": {}
171+
"options": null
172172
},
173173
{
174174
"description": "loadBalanced=true",
@@ -211,7 +211,7 @@
211211
"warning": true,
212212
"hosts": null,
213213
"auth": null,
214-
"options": {}
214+
"options": null
215215
},
216216
{
217217
"description": "loadBalanced=true with multiple hosts causes an error",
@@ -220,7 +220,7 @@
220220
"warning": false,
221221
"hosts": null,
222222
"auth": null,
223-
"options": {}
223+
"options": null
224224
},
225225
{
226226
"description": "loadBalanced=true with directConnection=true causes an error",
@@ -229,7 +229,7 @@
229229
"warning": false,
230230
"hosts": null,
231231
"auth": null,
232-
"options": {}
232+
"options": null
233233
},
234234
{
235235
"description": "loadBalanced=true with replicaSet causes an error",
@@ -238,7 +238,7 @@
238238
"warning": false,
239239
"hosts": null,
240240
"auth": null,
241-
"options": {}
241+
"options": null
242242
},
243243
{
244244
"description": "timeoutMS=0",
@@ -258,7 +258,7 @@
258258
"warning": true,
259259
"hosts": null,
260260
"auth": null,
261-
"options": {}
261+
"options": null
262262
},
263263
{
264264
"description": "Too low timeoutMS causes a warning",
@@ -267,7 +267,7 @@
267267
"warning": true,
268268
"hosts": null,
269269
"auth": null,
270-
"options": {}
270+
"options": null
271271
}
272272
]
273273
}

0 commit comments

Comments
 (0)