| 1 |
{ |
| 2 |
"data": [ |
| 3 |
{ |
| 4 |
"_id": 1, |
| 5 |
"x": 11 |
| 6 |
}, |
| 7 |
{ |
| 8 |
"_id": 2, |
| 9 |
"x": "ping" |
| 10 |
}, |
| 11 |
{ |
| 12 |
"_id": 3, |
| 13 |
"x": "pINg" |
| 14 |
}, |
| 15 |
{ |
| 16 |
"_id": 4, |
| 17 |
"x": "pong" |
| 18 |
}, |
| 19 |
{ |
| 20 |
"_id": 5, |
| 21 |
"x": "pONg" |
| 22 |
} |
| 23 |
], |
| 24 |
"minServerVersion": "3.4", |
| 25 |
"tests": [ |
| 26 |
{ |
| 27 |
"description": "BulkWrite with delete operations and collation", |
| 28 |
"operation": { |
| 29 |
"name": "bulkWrite", |
| 30 |
"arguments": { |
| 31 |
"requests": [ |
| 32 |
{ |
| 33 |
"name": "deleteOne", |
| 34 |
"arguments": { |
| 35 |
"filter": { |
| 36 |
"x": "PING" |
| 37 |
}, |
| 38 |
"collation": { |
| 39 |
"locale": "en_US", |
| 40 |
"strength": 2 |
| 41 |
} |
| 42 |
} |
| 43 |
}, |
| 44 |
{ |
| 45 |
"name": "deleteOne", |
| 46 |
"arguments": { |
| 47 |
"filter": { |
| 48 |
"x": "PING" |
| 49 |
}, |
| 50 |
"collation": { |
| 51 |
"locale": "en_US", |
| 52 |
"strength": 2 |
| 53 |
} |
| 54 |
} |
| 55 |
}, |
| 56 |
{ |
| 57 |
"name": "deleteMany", |
| 58 |
"arguments": { |
| 59 |
"filter": { |
| 60 |
"x": "PONG" |
| 61 |
}, |
| 62 |
"collation": { |
| 63 |
"locale": "en_US", |
| 64 |
"strength": 2 |
| 65 |
} |
| 66 |
} |
| 67 |
} |
| 68 |
], |
| 69 |
"options": { |
| 70 |
"ordered": true |
| 71 |
} |
| 72 |
} |
| 73 |
}, |
| 74 |
"outcome": { |
| 75 |
"result": { |
| 76 |
"deletedCount": 4, |
| 77 |
"insertedCount": 0, |
| 78 |
"insertedIds": {}, |
| 79 |
"matchedCount": 0, |
| 80 |
"modifiedCount": 0, |
| 81 |
"upsertedCount": 0, |
| 82 |
"upsertedIds": {} |
| 83 |
}, |
| 84 |
"collection": { |
| 85 |
"data": [ |
| 86 |
{ |
| 87 |
"_id": 1, |
| 88 |
"x": 11 |
| 89 |
} |
| 90 |
] |
| 91 |
} |
| 92 |
} |
| 93 |
}, |
| 94 |
{ |
| 95 |
"description": "BulkWrite with update operations and collation", |
| 96 |
"operation": { |
| 97 |
"name": "bulkWrite", |
| 98 |
"arguments": { |
| 99 |
"requests": [ |
| 100 |
{ |
| 101 |
"name": "updateMany", |
| 102 |
"arguments": { |
| 103 |
"filter": { |
| 104 |
"x": "ping" |
| 105 |
}, |
| 106 |
"update": { |
| 107 |
"$set": { |
| 108 |
"x": "PONG" |
| 109 |
} |
| 110 |
}, |
| 111 |
"collation": { |
| 112 |
"locale": "en_US", |
| 113 |
"strength": 3 |
| 114 |
} |
| 115 |
} |
| 116 |
}, |
| 117 |
{ |
| 118 |
"name": "updateOne", |
| 119 |
"arguments": { |
| 120 |
"filter": { |
| 121 |
"x": "ping" |
| 122 |
}, |
| 123 |
"update": { |
| 124 |
"$set": { |
| 125 |
"x": "PONG" |
| 126 |
} |
| 127 |
}, |
| 128 |
"collation": { |
| 129 |
"locale": "en_US", |
| 130 |
"strength": 2 |
| 131 |
} |
| 132 |
} |
| 133 |
}, |
| 134 |
{ |
| 135 |
"name": "replaceOne", |
| 136 |
"arguments": { |
| 137 |
"filter": { |
| 138 |
"x": "ping" |
| 139 |
}, |
| 140 |
"replacement": { |
| 141 |
"_id": 6, |
| 142 |
"x": "ping" |
| 143 |
}, |
| 144 |
"upsert": true, |
| 145 |
"collation": { |
| 146 |
"locale": "en_US", |
| 147 |
"strength": 3 |
| 148 |
} |
| 149 |
} |
| 150 |
}, |
| 151 |
{ |
| 152 |
"name": "updateMany", |
| 153 |
"arguments": { |
| 154 |
"filter": { |
| 155 |
"x": "pong" |
| 156 |
}, |
| 157 |
"update": { |
| 158 |
"$set": { |
| 159 |
"x": "PONG" |
| 160 |
} |
| 161 |
}, |
| 162 |
"collation": { |
| 163 |
"locale": "en_US", |
| 164 |
"strength": 2 |
| 165 |
} |
| 166 |
} |
| 167 |
} |
| 168 |
], |
| 169 |
"options": { |
| 170 |
"ordered": true |
| 171 |
} |
| 172 |
} |
| 173 |
}, |
| 174 |
"outcome": { |
| 175 |
"result": { |
| 176 |
"deletedCount": 0, |
| 177 |
"insertedCount": 0, |
| 178 |
"insertedIds": {}, |
| 179 |
"matchedCount": 6, |
| 180 |
"modifiedCount": 4, |
| 181 |
"upsertedCount": 1, |
| 182 |
"upsertedIds": { |
| 183 |
"2": 6 |
| 184 |
} |
| 185 |
}, |
| 186 |
"collection": { |
| 187 |
"data": [ |
| 188 |
{ |
| 189 |
"_id": 1, |
| 190 |
"x": 11 |
| 191 |
}, |
| 192 |
{ |
| 193 |
"_id": 2, |
| 194 |
"x": "PONG" |
| 195 |
}, |
| 196 |
{ |
| 197 |
"_id": 3, |
| 198 |
"x": "PONG" |
| 199 |
}, |
| 200 |
{ |
| 201 |
"_id": 4, |
| 202 |
"x": "PONG" |
| 203 |
}, |
| 204 |
{ |
| 205 |
"_id": 5, |
| 206 |
"x": "PONG" |
| 207 |
}, |
| 208 |
{ |
| 209 |
"_id": 6, |
| 210 |
"x": "ping" |
| 211 |
} |
| 212 |
] |
| 213 |
} |
| 214 |
} |
| 215 |
} |
| 216 |
] |
| 217 |
} |