...
1tests:
2 -
3 description: "Valid compression options are parsed correctly"
4 uri: "mongodb://example.com/?compressors=zlib&zlibCompressionLevel=9"
5 valid: true
6 warning: false
7 hosts: ~
8 auth: ~
9 options:
10 compressors:
11 - "zlib"
12 zlibCompressionLevel: 9
13 -
14 description: "Multiple compressors are parsed correctly"
15 uri: "mongodb://example.com/?compressors=snappy,zlib"
16 valid: true
17 warning: false
18 hosts: ~
19 auth: ~
20 options:
21 compressors:
22 - "snappy"
23 - "zlib"
24 -
25 description: "Non-numeric zlibCompressionLevel causes a warning"
26 uri: "mongodb://example.com/?compressors=zlib&zlibCompressionLevel=invalid"
27 valid: true
28 warning: true
29 hosts: ~
30 auth: ~
31 options: {}
32 -
33 description: "Too low zlibCompressionLevel causes a warning"
34 uri: "mongodb://example.com/?compressors=zlib&zlibCompressionLevel=-2"
35 valid: true
36 warning: true
37 hosts: ~
38 auth: ~
39 options: {}
40 -
41 description: "Too high zlibCompressionLevel causes a warning"
42 uri: "mongodb://example.com/?compressors=zlib&zlibCompressionLevel=10"
43 valid: true
44 warning: true
45 hosts: ~
46 auth: ~
47 options: {}
48
View as plain text