Skip to content

Commit 30ec4d4

Browse files
committed
RUST-2076 sync tests updated in mongodb/specifications#1680
1 parent 30aa376 commit 30ec4d4

File tree

6 files changed

+40
-0
lines changed

6 files changed

+40
-0
lines changed

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

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

src/test/spec/json/transactions-convenient-api/unified/commit-retry.yml

+3
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ tests:
212212
- { _id: 1 }
213213
-
214214
description: commit is not retried after MaxTimeMSExpired error
215+
runOnRequirements:
216+
# Serverless sets empty `codeName` on failpoint errors. Remove once CLOUDP-280424 is fixed.
217+
- serverless: forbid
215218
operations:
216219
- name: failPoint
217220
object: testRunner

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

+15
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,11 @@
414414
},
415415
{
416416
"description": "commitTransaction is not retried after UnknownReplWriteConcern error",
417+
"runOnRequirements": [
418+
{
419+
"serverless": "forbid"
420+
}
421+
],
417422
"operations": [
418423
{
419424
"name": "failPoint",
@@ -546,6 +551,11 @@
546551
},
547552
{
548553
"description": "commitTransaction is not retried after UnsatisfiableWriteConcern error",
554+
"runOnRequirements": [
555+
{
556+
"serverless": "forbid"
557+
}
558+
],
549559
"operations": [
550560
{
551561
"name": "failPoint",
@@ -678,6 +688,11 @@
678688
},
679689
{
680690
"description": "commitTransaction is not retried after MaxTimeMSExpired error",
691+
"runOnRequirements": [
692+
{
693+
"serverless": "forbid"
694+
}
695+
],
681696
"operations": [
682697
{
683698
"name": "failPoint",

src/test/spec/json/transactions-convenient-api/unified/commit-writeconcernerror.yml

+9
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ tests:
151151
outcome: *outcome
152152
-
153153
description: commitTransaction is not retried after UnknownReplWriteConcern error
154+
runOnRequirements:
155+
# Serverless sets empty `codeName` on failpoint errors. Remove once CLOUDP-280424 is fixed.
156+
- serverless: forbid
154157
operations:
155158
- name: failPoint
156159
object: testRunner
@@ -203,6 +206,9 @@ tests:
203206
outcome: *outcome
204207
-
205208
description: commitTransaction is not retried after UnsatisfiableWriteConcern error
209+
runOnRequirements:
210+
# Serverless sets empty `codeName` on failpoint errors. Remove once CLOUDP-280424 is fixed.
211+
- serverless: forbid
206212
operations:
207213
- name: failPoint
208214
object: testRunner
@@ -226,6 +232,9 @@ tests:
226232
outcome: *outcome
227233
-
228234
description: commitTransaction is not retried after MaxTimeMSExpired error
235+
runOnRequirements:
236+
# Serverless sets empty `codeName` on failpoint errors. Remove once CLOUDP-280424 is fixed.
237+
- serverless: forbid
229238
operations:
230239
- name: failPoint
231240
object: testRunner

src/test/spec/json/transactions/unified/retryable-commit.json

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

src/test/spec/json/transactions/unified/retryable-commit.yml

+3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ initialData:
6767
tests:
6868
-
6969
description: 'commitTransaction fails after Interrupted'
70+
runOnRequirements:
71+
# Serverless sets empty `codeName` on failpoint errors. Remove once CLOUDP-280424 is fixed.
72+
- serverless: forbid
7073
operations:
7174
-
7275
object: testRunner

0 commit comments

Comments
 (0)