Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
65 changes: 22 additions & 43 deletions src/test/spec/json/change-streams/unified/change-streams.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
{
"minServerVersion": "3.6",
"topologies": [
"replicaset",
"sharded-replicaset"
]
"replicaset"
],
"serverless": "forbid"
}
],
"createEntities": [
Expand Down Expand Up @@ -273,6 +273,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 Expand Up @@ -449,10 +458,7 @@
"description": "$changeStream must be the first stage in a change stream pipeline sent to the server",
"runOnRequirements": [
{
"minServerVersion": "3.6.0",
"topologies": [
"replicaset"
]
"minServerVersion": "3.6.0"
}
],
"operations": [
Expand Down Expand Up @@ -525,10 +531,7 @@
"description": "The server returns change stream responses in the specified server response format",
"runOnRequirements": [
{
"minServerVersion": "3.6.0",
"topologies": [
"replicaset"
]
"minServerVersion": "3.6.0"
}
],
"operations": [
Expand Down Expand Up @@ -578,10 +581,7 @@
"description": "Executing a watch helper on a Collection results in notifications for changes to the specified collection",
"runOnRequirements": [
{
"minServerVersion": "3.6.0",
"topologies": [
"replicaset"
]
"minServerVersion": "3.6.0"
}
],
"operations": [
Expand Down Expand Up @@ -666,10 +666,7 @@
"description": "Change Stream should allow valid aggregate pipeline stages",
"runOnRequirements": [
{
"minServerVersion": "3.6.0",
"topologies": [
"replicaset"
]
"minServerVersion": "3.6.0"
}
],
"operations": [
Expand Down Expand Up @@ -756,10 +753,7 @@
"description": "Executing a watch helper on a Database results in notifications for changes to all collections in the specified database.",
"runOnRequirements": [
{
"minServerVersion": "3.8.0",
"topologies": [
"replicaset"
]
"minServerVersion": "3.8.0"
}
],
"operations": [
Expand Down Expand Up @@ -861,10 +855,7 @@
"description": "Executing a watch helper on a MongoClient results in notifications for changes to all collections in all databases in the cluster.",
"runOnRequirements": [
{
"minServerVersion": "3.8.0",
"topologies": [
"replicaset"
]
"minServerVersion": "3.8.0"
}
],
"operations": [
Expand Down Expand Up @@ -985,10 +976,7 @@
"description": "Test insert, update, replace, and delete event types",
"runOnRequirements": [
{
"minServerVersion": "3.6.0",
"topologies": [
"replicaset"
]
"minServerVersion": "3.6.0"
}
],
"operations": [
Expand Down Expand Up @@ -1140,10 +1128,7 @@
"description": "Test rename and invalidate event types",
"runOnRequirements": [
{
"minServerVersion": "4.0.1",
"topologies": [
"replicaset"
]
"minServerVersion": "4.0.1"
}
],
"operations": [
Expand Down Expand Up @@ -1220,10 +1205,7 @@
"description": "Test drop and invalidate event types",
"runOnRequirements": [
{
"minServerVersion": "4.0.1",
"topologies": [
"replicaset"
]
"minServerVersion": "4.0.1"
}
],
"operations": [
Expand Down Expand Up @@ -1289,10 +1271,7 @@
"description": "Test consecutive resume",
"runOnRequirements": [
{
"minServerVersion": "4.1.7",
"topologies": [
"replicaset"
]
"minServerVersion": "4.1.7"
}
],
"operations": [
Expand Down
24 changes: 12 additions & 12 deletions src/test/spec/json/change-streams/unified/change-streams.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
description: "change-streams"

schemaVersion: "1.7"

runOnRequirements:
- minServerVersion: "3.6"
topologies: [ replicaset, sharded-replicaset ]
# 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:
id: &client0 client0
Expand Down Expand Up @@ -155,6 +161,10 @@ tests:
newField: "newFieldValue"

- description: "Test new structure in ns document MUST NOT err"
runOnRequirements:
- minServerVersion: "3.6"
maxServerVersion: "5.2.99"
- minServerVersion: "6.0"
operations:
- name: createChangeStream
object: *collection0
Expand Down Expand Up @@ -238,7 +248,6 @@ tests:
- description: $changeStream must be the first stage in a change stream pipeline sent to the server
runOnRequirements:
- minServerVersion: "3.6.0"
topologies: [ replicaset ]
operations:
- name: createChangeStream
object: *collection0
Expand Down Expand Up @@ -275,7 +284,6 @@ tests:
- description: The server returns change stream responses in the specified server response format
runOnRequirements:
- minServerVersion: "3.6.0"
topologies: [ replicaset ]
operations:
- name: createChangeStream
object: *collection0
Expand All @@ -301,7 +309,6 @@ tests:
- description: Executing a watch helper on a Collection results in notifications for changes to the specified collection
runOnRequirements:
- minServerVersion: "3.6.0"
topologies: [ replicaset ]
operations:
- name: createChangeStream
object: *collection0
Expand Down Expand Up @@ -344,7 +351,6 @@ tests:
- description: Change Stream should allow valid aggregate pipeline stages
runOnRequirements:
- minServerVersion: "3.6.0"
topologies: [ replicaset ]
operations:
- name: createChangeStream
object: *collection0
Expand Down Expand Up @@ -389,7 +395,6 @@ tests:
- description: Executing a watch helper on a Database results in notifications for changes to all collections in the specified database.
runOnRequirements:
- minServerVersion: "3.8.0"
topologies: [ replicaset ]
operations:
- name: createChangeStream
object: *database0
Expand Down Expand Up @@ -442,7 +447,6 @@ tests:
- description: Executing a watch helper on a MongoClient results in notifications for changes to all collections in all databases in the cluster.
runOnRequirements:
- minServerVersion: "3.8.0"
topologies: [ replicaset ]
operations:
- name: createChangeStream
object: *client0
Expand Down Expand Up @@ -506,7 +510,6 @@ tests:
- description: "Test insert, update, replace, and delete event types"
runOnRequirements:
- minServerVersion: "3.6.0"
topologies: [ replicaset ]
operations:
- name: createChangeStream
object: *collection0
Expand Down Expand Up @@ -584,7 +587,6 @@ tests:
- description: Test rename and invalidate event types
runOnRequirements:
- minServerVersion: "4.0.1"
topologies: [ replicaset ]
operations:
- name: createChangeStream
object: *collection0
Expand Down Expand Up @@ -627,7 +629,6 @@ tests:
- description: Test drop and invalidate event types
runOnRequirements:
- minServerVersion: "4.0.1"
topologies: [ replicaset ]
operations:
- name: createChangeStream
object: *collection0
Expand Down Expand Up @@ -661,11 +662,10 @@ tests:
databaseName: *database0

# Test that resume logic works correctly even after consecutive retryable failures of a getMore command,
# with no intervening events. This is ensured by setting the batch size of the change stream to 1,
# with no intervening events. This is ensured by setting the batch size of the change stream to 1,
- description: Test consecutive resume
runOnRequirements:
- minServerVersion: "4.1.7"
topologies: [ replicaset ]
operations:
- name: failPoint
object: testRunner
Expand Down