Skip to content

Commit

Permalink
test(NODE-4200): sync serverless:forbid changes in change stream unif…
Browse files Browse the repository at this point in the history
…ied tests (#3380)
  • Loading branch information
baileympearson authored and durran committed Aug 31, 2022
1 parent a96ba11 commit cb6d51f
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 8 deletions.
5 changes: 5 additions & 0 deletions test/spec/change-streams/unified/change-streams-errors.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"description": "change-streams-errors",
"schemaVersion": "1.7",
"runOnRequirements": [
{
"serverless": "forbid"
}
],
"createEntities": [
{
"client": {
Expand Down
5 changes: 5 additions & 0 deletions test/spec/change-streams/unified/change-streams-errors.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
description: "change-streams-errors"

schemaVersion: "1.7"

runOnRequirements:
- serverless: forbid

createEntities:
- client:
id: &client0 client0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"description": "change-streams-pre_and_post_images",
"schemaVersion": "1.0",
"schemaVersion": "1.4",
"runOnRequirements": [
{
"minServerVersion": "6.0.0",
"topologies": [
"replicaset",
"sharded-replicaset",
"load-balanced"
]
],
"serverless": "forbid"
}
],
"createEntities": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
description: "change-streams-pre_and_post_images"

schemaVersion: "1.3"
schemaVersion: "1.4"

runOnRequirements:
- minServerVersion: "6.0.0"
topologies: [ replicaset, sharded-replicaset, load-balanced ]
serverless: forbid

createEntities:
- client:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"replicaset",
"sharded-replicaset",
"load-balanced"
]
],
"serverless": "forbid"
}
],
"createEntities": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Tests for resume behavior on server versions that do not support the ResumableChangeStreamError label
description: "change-streams-resume-allowlist"

schemaVersion: "1.7"

runOnRequirements:
- minServerVersion: "3.6"
topologies: [ replicaset, sharded-replicaset, load-balanced ]
serverless: forbid

createEntities:
- client:
id: &client0 client0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"replicaset",
"sharded-replicaset",
"load-balanced"
]
],
"serverless": "forbid"
}
],
"createEntities": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Tests for resume behavior on server versions that support the ResumableChangeStreamError label
description: "change-streams-resume-errorlabels"

schemaVersion: "1.7"

runOnRequirements:
- minServerVersion: "4.3.1"
topologies: [ replicaset, sharded-replicaset, load-balanced ]
serverless: forbid

createEntities:
- client:
id: &client0 client0
Expand Down
12 changes: 11 additions & 1 deletion test/spec/change-streams/unified/change-streams.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"minServerVersion": "3.6",
"topologies": [
"replicaset"
]
],
"serverless": "forbid"
}
],
"createEntities": [
Expand Down Expand Up @@ -613,6 +614,15 @@
},
{
"description": "Test new structure in ns document MUST NOT err",
"runOnRequirements": [
{
"minServerVersion": "3.6",
"maxServerVersion": "5.2.99"
},
{
"minServerVersion": "6.0"
}
],
"operations": [
{
"name": "createChangeStream",
Expand Down
1 change: 1 addition & 0 deletions test/spec/change-streams/unified/change-streams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ runOnRequirements:
# TODO(DRIVERS-2323): Run all possible tests against sharded clusters once we know the
# cause of unexpected command monitoring events.
topologies: [ replicaset ]
serverless: forbid

createEntities:
- client:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"description": "poc-change-streams",
"schemaVersion": "1.0",
"schemaVersion": "1.4",
"runOnRequirements": [
{
"serverless": "forbid"
}
],
"createEntities": [
{
"client": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
description: "poc-change-streams"

schemaVersion: "1.0"
schemaVersion: "1.4"

runOnRequirements:
- serverless: forbid

createEntities:
# Entities for creating changeStreams
Expand Down

0 comments on commit cb6d51f

Please sign in to comment.