| 1 |
tests: |
| 2 |
- |
| 3 |
description: "Valid read and write concern are parsed correctly" |
| 4 |
uri: "mongodb://example.com/?readConcernLevel=majority&w=5&wTimeoutMS=30000&journal=false" |
| 5 |
valid: true |
| 6 |
warning: false |
| 7 |
hosts: ~ |
| 8 |
auth: ~ |
| 9 |
options: |
| 10 |
readConcernLevel: "majority" |
| 11 |
w: 5 |
| 12 |
wTimeoutMS: 30000 |
| 13 |
journal: false |
| 14 |
- |
| 15 |
description: "Arbitrary string readConcernLevel does not cause a warning" |
| 16 |
uri: "mongodb://example.com/?readConcernLevel=arbitraryButStillValid" |
| 17 |
valid: true |
| 18 |
warning: false |
| 19 |
hosts: ~ |
| 20 |
auth: ~ |
| 21 |
options: |
| 22 |
readConcernLevel: "arbitraryButStillValid" |
| 23 |
- |
| 24 |
description: "Arbitrary string w doesn't cause a warning" |
| 25 |
uri: "mongodb://example.com/?w=arbitraryButStillValid" |
| 26 |
valid: true |
| 27 |
warning: false |
| 28 |
hosts: ~ |
| 29 |
auth: ~ |
| 30 |
options: |
| 31 |
w: "arbitraryButStillValid" |
| 32 |
- |
| 33 |
description: "Non-numeric wTimeoutMS causes a warning" |
| 34 |
uri: "mongodb://example.com/?wTimeoutMS=invalid" |
| 35 |
valid: true |
| 36 |
warning: true |
| 37 |
hosts: ~ |
| 38 |
auth: ~ |
| 39 |
options: {} |
| 40 |
- |
| 41 |
description: "Too low wTimeoutMS causes a warning" |
| 42 |
uri: "mongodb://example.com/?wTimeoutMS=-2" |
| 43 |
valid: true |
| 44 |
warning: true |
| 45 |
hosts: ~ |
| 46 |
auth: ~ |
| 47 |
options: {} |
| 48 |
- |
| 49 |
description: "Invalid journal causes a warning" |
| 50 |
uri: "mongodb://example.com/?journal=invalid" |
| 51 |
valid: true |
| 52 |
warning: true |
| 53 |
hosts: ~ |
| 54 |
auth: ~ |
| 55 |
options: {} |