Skip to content

Commit 9b10138

Browse files
authored
RUST-2042 and RUST-2076 sync tests to fix serverless task (#1236)
* RUST-2042 sync fle2v2-Rangev2-Compact to 9058491f2d5b5651913a56e373121a24d6498673 * sync tests updated in 24817a5caa0526725d480f9a8b3fbb8714507311 * RUST-2076 sync tests updated in mongodb/specifications#1680
1 parent 842c536 commit 9b10138

12 files changed

+48
-6
lines changed

src/test/spec/json/client-side-encryption/legacy/fle2v2-Rangev2-Compact.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"replicaset",
77
"sharded",
88
"load-balanced"
9-
],
10-
"serverless": "forbid"
9+
]
1110
}
1211
],
1312
"database_name": "default",

src/test/spec/json/client-side-encryption/legacy/fle2v2-Rangev2-Compact.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ runOn:
33
- minServerVersion: "8.0.0" # Require range v2 support on server.
44
# FLE 2 Encrypted collections are not supported on standalone.
55
topology: [ "replicaset", "sharded", "load-balanced" ]
6-
serverless: forbid # Skip on serverless until CLOUDP-267864 is resolved.
76
database_name: "default"
87
collection_name: &collection_name "default"
98
data: []
@@ -91,4 +90,4 @@ tests:
9190
}
9291
}
9392
encryptionInformation: *encryptionInformation
94-
command_name: compactStructuredEncryptionData
93+
command_name: compactStructuredEncryptionData

src/test/spec/json/crud/unified/client-bulkWrite-replaceOne-sort.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"schemaVersion": "1.4",
44
"runOnRequirements": [
55
{
6-
"minServerVersion": "8.0"
6+
"minServerVersion": "8.0",
7+
"serverless": "forbid"
78
}
89
],
910
"createEntities": [

src/test/spec/json/crud/unified/client-bulkWrite-replaceOne-sort.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ schemaVersion: "1.4"
44

55
runOnRequirements:
66
- minServerVersion: "8.0"
7+
serverless: forbid # Serverless does not support bulkWrite: CLOUDP-256344.
78

89
createEntities:
910
- client:

src/test/spec/json/crud/unified/client-bulkWrite-updateOne-sort.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"schemaVersion": "1.4",
44
"runOnRequirements": [
55
{
6-
"minServerVersion": "8.0"
6+
"minServerVersion": "8.0",
7+
"serverless": "forbid"
78
}
89
],
910
"createEntities": [

src/test/spec/json/crud/unified/client-bulkWrite-updateOne-sort.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ schemaVersion: "1.4"
44

55
runOnRequirements:
66
- minServerVersion: "8.0"
7+
serverless: forbid # Serverless does not support bulkWrite: CLOUDP-256344.
78

89
createEntities:
910
- client:

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

Lines changed: 5 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 15 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 5 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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)