Skip to content

Commit e7b2b4d

Browse files
committed
JAVA-2815: Update transactions spec bulk write test
1 parent f127e0f commit e7b2b4d

File tree

1 file changed

+38
-19
lines changed
  • driver-core/src/test/resources/transactions

1 file changed

+38
-19
lines changed

driver-core/src/test/resources/transactions/bulk.json

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -154,26 +154,26 @@
154154
}
155155
},
156156
{
157-
"name": "deleteMany",
157+
"name": "updateMany",
158158
"arguments": {
159159
"filter": {
160160
"_id": {
161-
"$gte": 6
161+
"$gte": 2
162+
}
163+
},
164+
"update": {
165+
"$set": {
166+
"z": 1
162167
}
163168
}
164169
}
165170
},
166171
{
167-
"name": "updateMany",
172+
"name": "deleteMany",
168173
"arguments": {
169174
"filter": {
170175
"_id": {
171-
"$gte": 2
172-
}
173-
},
174-
"update": {
175-
"$set": {
176-
"z": 1
176+
"$gte": 6
177177
}
178178
}
179179
}
@@ -191,8 +191,8 @@
191191
"6": 6,
192192
"7": 7
193193
},
194-
"matchedCount": 5,
195-
"modifiedCount": 5,
194+
"matchedCount": 7,
195+
"modifiedCount": 7,
196196
"upsertedCount": 1,
197197
"upsertedIds": {
198198
"2": 2
@@ -409,14 +409,6 @@
409409
"_id": 4
410410
},
411411
"limit": 1
412-
},
413-
{
414-
"q": {
415-
"_id": {
416-
"$gte": 6
417-
}
418-
},
419-
"limit": 0
420412
}
421413
],
422414
"ordered": true,
@@ -465,6 +457,33 @@
465457
"database_name": "transaction-tests"
466458
}
467459
},
460+
{
461+
"command_started_event": {
462+
"command": {
463+
"delete": "test",
464+
"deletes": [
465+
{
466+
"q": {
467+
"_id": {
468+
"$gte": 6
469+
}
470+
},
471+
"limit": 0
472+
}
473+
],
474+
"ordered": true,
475+
"lsid": "session0",
476+
"txnNumber": {
477+
"$numberLong": "1"
478+
},
479+
"startTransaction": null,
480+
"autocommit": false,
481+
"writeConcern": null
482+
},
483+
"command_name": "delete",
484+
"database_name": "transaction-tests"
485+
}
486+
},
468487
{
469488
"command_started_event": {
470489
"command": {

0 commit comments

Comments
 (0)