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