Skip to content

Commit d539e49

Browse files
committed
Re-sync spec tests from #e9791101
1 parent 01b28de commit d539e49

File tree

13 files changed

+574
-141
lines changed

13 files changed

+574
-141
lines changed

test/transactions/abort.json

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"tests": [
44
{
55
"description": "abort",
6-
"skipReason": "Server must implement abortTransaction",
76
"operations": [
87
{
98
"name": "startTransaction",
@@ -66,7 +65,9 @@
6665
],
6766
"ordered": true,
6867
"lsid": "session0",
69-
"txnNumber": 1,
68+
"txnNumber": {
69+
"$numberLong": "1"
70+
},
7071
"stmtId": 0,
7172
"autocommit": false,
7273
"writeConcern": null
@@ -80,7 +81,9 @@
8081
"command": {
8182
"abortTransaction": 1,
8283
"lsid": "session0",
83-
"txnNumber": 1,
84+
"txnNumber": {
85+
"$numberLong": "1"
86+
},
8487
"stmtId": 1,
8588
"writeConcern": null
8689
},
@@ -99,7 +102,9 @@
99102
],
100103
"ordered": true,
101104
"lsid": "session0",
102-
"txnNumber": 2,
105+
"txnNumber": {
106+
"$numberLong": "2"
107+
},
103108
"stmtId": 0,
104109
"autocommit": false,
105110
"writeConcern": null
@@ -113,7 +118,9 @@
113118
"command": {
114119
"abortTransaction": 1,
115120
"lsid": "session0",
116-
"txnNumber": 2,
121+
"txnNumber": {
122+
"$numberLong": "2"
123+
},
117124
"stmtId": 1,
118125
"writeConcern": null
119126
},
@@ -130,7 +137,6 @@
130137
},
131138
{
132139
"description": "implicit abort",
133-
"skipReason": "Server must implement abortTransaction",
134140
"operations": [
135141
{
136142
"name": "startTransaction",
@@ -163,7 +169,9 @@
163169
],
164170
"ordered": true,
165171
"lsid": "session0",
166-
"txnNumber": 1,
172+
"txnNumber": {
173+
"$numberLong": "1"
174+
},
167175
"stmtId": 0,
168176
"autocommit": false,
169177
"writeConcern": null
@@ -177,7 +185,9 @@
177185
"command": {
178186
"abortTransaction": 1,
179187
"lsid": "session0",
180-
"txnNumber": 1,
188+
"txnNumber": {
189+
"$numberLong": "1"
190+
},
181191
"stmtId": 1,
182192
"writeConcern": null
183193
},
@@ -194,7 +204,6 @@
194204
},
195205
{
196206
"description": "two aborts",
197-
"skipReason": "Server must implement abortTransaction",
198207
"operations": [
199208
{
200209
"name": "startTransaction",
@@ -226,7 +235,7 @@
226235
"session": "session0"
227236
},
228237
"result": {
229-
"errorContains": "no such transaction"
238+
"errorContains": "no transaction started"
230239
}
231240
}
232241
],
@@ -242,7 +251,9 @@
242251
],
243252
"ordered": true,
244253
"lsid": "session0",
245-
"txnNumber": 1,
254+
"txnNumber": {
255+
"$numberLong": "1"
256+
},
246257
"stmtId": 0,
247258
"autocommit": false,
248259
"writeConcern": null
@@ -256,24 +267,15 @@
256267
"command": {
257268
"abortTransaction": 1,
258269
"lsid": "session0",
259-
"txnNumber": 1,
270+
"txnNumber": {
271+
"$numberLong": "1"
272+
},
260273
"stmtId": 1,
261274
"writeConcern": null
262275
},
263276
"command_name": "abortTransaction",
264277
"database_name": "admin"
265278
}
266-
},
267-
{
268-
"command": {
269-
"abortTransaction": 1,
270-
"lsid": "session0",
271-
"txnNumber": 1,
272-
"stmtId": 1,
273-
"writeConcern": null
274-
},
275-
"command_name": "abortTransaction",
276-
"database_name": "admin"
277279
}
278280
],
279281
"outcome": {
@@ -291,7 +293,7 @@
291293
"session": "session0"
292294
},
293295
"result": {
294-
"errorContains": "no transaction in progress"
296+
"errorContains": "no transaction started"
295297
}
296298
}
297299
],
@@ -304,7 +306,6 @@
304306
},
305307
{
306308
"description": "commit after abort",
307-
"skipReason": "Server must implement abortTransaction",
308309
"operations": [
309310
{
310311
"name": "startTransaction",
@@ -336,7 +337,7 @@
336337
"session": "session0"
337338
},
338339
"result": {
339-
"errorContains": "no transaction in progress"
340+
"errorContains": "no transaction started"
340341
}
341342
}
342343
],
@@ -352,7 +353,9 @@
352353
],
353354
"ordered": true,
354355
"lsid": "session0",
355-
"txnNumber": 1,
356+
"txnNumber": {
357+
"$numberLong": "1"
358+
},
356359
"stmtId": 0,
357360
"autocommit": false,
358361
"writeConcern": null
@@ -366,7 +369,9 @@
366369
"command": {
367370
"abortTransaction": 1,
368371
"lsid": "session0",
369-
"txnNumber": 1,
372+
"txnNumber": {
373+
"$numberLong": "1"
374+
},
370375
"stmtId": 1,
371376
"writeConcern": null
372377
},

0 commit comments

Comments
 (0)