Skip to content

Commit e41c377

Browse files
committed
DRIVERS-3081 Resync transaction spec tests
1 parent ecf7ac7 commit e41c377

8 files changed

+33
-38
lines changed

test/transactions-convenient-api/unified/commit-retry.json

-5
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,6 @@
422422
},
423423
{
424424
"description": "commit is not retried after MaxTimeMSExpired error",
425-
"runOnRequirements": [
426-
{
427-
"serverless": "forbid"
428-
}
429-
],
430425
"operations": [
431426
{
432427
"name": "failPoint",

test/transactions-convenient-api/unified/commit-writeconcernerror.json

+1-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"description": "commit-writeconcernerror",
3-
"schemaVersion": "1.4",
3+
"schemaVersion": "1.3",
44
"runOnRequirements": [
55
{
66
"minServerVersion": "4.0",
@@ -414,11 +414,6 @@
414414
},
415415
{
416416
"description": "commitTransaction is not retried after UnknownReplWriteConcern error",
417-
"runOnRequirements": [
418-
{
419-
"serverless": "forbid"
420-
}
421-
],
422417
"operations": [
423418
{
424419
"name": "failPoint",
@@ -551,11 +546,6 @@
551546
},
552547
{
553548
"description": "commitTransaction is not retried after UnsatisfiableWriteConcern error",
554-
"runOnRequirements": [
555-
{
556-
"serverless": "forbid"
557-
}
558-
],
559549
"operations": [
560550
{
561551
"name": "failPoint",
@@ -688,11 +678,6 @@
688678
},
689679
{
690680
"description": "commitTransaction is not retried after MaxTimeMSExpired error",
691-
"runOnRequirements": [
692-
{
693-
"serverless": "forbid"
694-
}
695-
],
696681
"operations": [
697682
{
698683
"name": "failPoint",

test/transactions/unified/findOneAndReplace.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@
127127
"update": {
128128
"x": 1
129129
},
130-
"new": false,
130+
"new": {
131+
"$$unsetOrMatches": false
132+
},
131133
"lsid": {
132134
"$$sessionLsid": "session0"
133135
},
@@ -299,7 +301,9 @@
299301
"update": {
300302
"x": 1
301303
},
302-
"new": false,
304+
"new": {
305+
"$$unsetOrMatches": false
306+
},
303307
"lsid": {
304308
"$$sessionLsid": "session0"
305309
},

test/transactions/unified/findOneAndUpdate.json

+12-4
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@
189189
"x": 1
190190
}
191191
},
192-
"new": false,
192+
"new": {
193+
"$$unsetOrMatches": false
194+
},
193195
"lsid": {
194196
"$$sessionLsid": "session0"
195197
},
@@ -281,7 +283,9 @@
281283
"x": 1
282284
}
283285
},
284-
"new": false,
286+
"new": {
287+
"$$unsetOrMatches": false
288+
},
285289
"lsid": {
286290
"$$sessionLsid": "session0"
287291
},
@@ -340,7 +344,9 @@
340344
"x": 1
341345
}
342346
},
343-
"new": false,
347+
"new": {
348+
"$$unsetOrMatches": false
349+
},
344350
"lsid": {
345351
"$$sessionLsid": "session0"
346352
},
@@ -485,7 +491,9 @@
485491
"x": 1
486492
}
487493
},
488-
"new": false,
494+
"new": {
495+
"$$unsetOrMatches": false
496+
},
489497
"lsid": {
490498
"$$sessionLsid": "session0"
491499
},

test/transactions/unified/mongos-recovery-token.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@
232232
"id": "client1",
233233
"useMultipleMongoses": true,
234234
"uriOptions": {
235-
"heartbeatFrequencyMS": 30000
235+
"heartbeatFrequencyMS": 30000,
236+
"appName": "transactionsClient"
236237
},
237238
"observeEvents": [
238239
"commandStartedEvent"
@@ -299,7 +300,8 @@
299300
"isMaster",
300301
"hello"
301302
],
302-
"closeConnection": true
303+
"closeConnection": true,
304+
"appName": "transactionsClient"
303305
}
304306
}
305307
}

test/transactions/unified/pin-mongos.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,8 @@
12491249
"id": "client1",
12501250
"useMultipleMongoses": true,
12511251
"uriOptions": {
1252-
"heartbeatFrequencyMS": 30000
1252+
"heartbeatFrequencyMS": 30000,
1253+
"appName": "transactionsClient"
12531254
},
12541255
"observeEvents": [
12551256
"commandStartedEvent"
@@ -1316,7 +1317,8 @@
13161317
"isMaster",
13171318
"hello"
13181319
],
1319-
"closeConnection": true
1320+
"closeConnection": true,
1321+
"appName": "transactionsClient"
13201322
}
13211323
}
13221324
}

test/transactions/unified/retryable-commit.json

-5
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,6 @@
8989
"tests": [
9090
{
9191
"description": "commitTransaction fails after Interrupted",
92-
"runOnRequirements": [
93-
{
94-
"serverless": "forbid"
95-
}
96-
],
9792
"operations": [
9893
{
9994
"object": "testRunner",

test/transactions/unified/write-concern.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,9 @@
14171417
"update": {
14181418
"x": 1
14191419
},
1420-
"new": false,
1420+
"new": {
1421+
"$$unsetOrMatches": false
1422+
},
14211423
"lsid": {
14221424
"$$sessionLsid": "session0"
14231425
},
@@ -1522,7 +1524,9 @@
15221524
"x": 1
15231525
}
15241526
},
1525-
"new": false,
1527+
"new": {
1528+
"$$unsetOrMatches": false
1529+
},
15261530
"lsid": {
15271531
"$$sessionLsid": "session0"
15281532
},

0 commit comments

Comments
 (0)