1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
tests:
-
description: "Default"
valid: true
writeConcern: {}
writeConcernDocument: {}
isServerDefault: true
isAcknowledged: true
-
description: "W as a number"
valid: true
writeConcern: { w: 3 }
writeConcernDocument: { w: 3 }
isServerDefault: false
isAcknowledged: true
-
description: "W as an invalid number"
valid: false
writeConcern: { w: -3 }
writeConcernDocument: ~
isServerDefault: ~
isAcknowledged: ~
-
description: "W as majority"
valid: true
writeConcern: { w: "majority" }
writeConcernDocument: { w: "majority" }
isServerDefault: false
isAcknowledged: true
-
description: "W as a custom string"
valid: true
writeConcern: { w: "my_mode" }
writeConcernDocument: { w: "my_mode" }
isServerDefault: false
isAcknowledged: true
-
description: "WTimeoutMS"
valid: true
writeConcern: { wtimeoutMS: 1000 }
writeConcernDocument: { wtimeout: 1000 }
isServerDefault: false
isAcknowledged: true
-
description: "WTimeoutMS as an invalid number"
valid: false
writeConcern: { wtimeoutMS: -1000 }
writeConcernDocument: ~
isServerDefault: ~
isAcknowledged: ~
-
description: "Journal as true"
valid: true
writeConcern: { journal: true }
writeConcernDocument: { j: true }
isServerDefault: false
isAcknowledged: true
-
description: "Journal as false"
valid: true
writeConcern: { journal: false }
writeConcernDocument: { j: false }
isServerDefault: false
isAcknowledged: true
-
description: "Unacknowledged with only w"
valid: true
writeConcern: { w: 0 }
writeConcernDocument: { w: 0 }
isServerDefault: false
isAcknowledged: false
-
description: "Unacknowledged with wtimeoutMS"
valid: true
writeConcern: { w: 0, wtimeoutMS: 500 }
writeConcernDocument: { w: 0, wtimeout: 500 }
isServerDefault: false
isAcknowledged: false
-
description: "Unacknowledged with journal"
valid: true
writeConcern: { w: 0, journal: false }
writeConcernDocument: { w: 0, j: false }
isServerDefault: false
isAcknowledged: false
-
description: "W is 0 with journal true"
valid: false
writeConcern: { w: 0, journal: true }
writeConcernDocument: { w: 0, j: true }
isServerDefault: false
isAcknowledged: true
-
description: "Everything"
valid: true
writeConcern: { w: 3, wtimeoutMS: 1000, journal: true }
writeConcernDocument: { w: 3, wtimeout: 1000, j: true }
isServerDefault: false
isAcknowledged: true
|