Skip to content

DRIVERS-1995: Restrict "test server error on projecting out _id" test to 4.2 an higher #1172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2022
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
5 changes: 5 additions & 0 deletions source/change-streams/tests/unified/change-streams.json
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,11 @@
},
{
"description": "Test server error on projecting out _id",
"runOnRequirements": [
{
"minServerVersion": "4.2"
}
],
"operations": [
{
"name": "createChangeStream",
Expand Down
8 changes: 5 additions & 3 deletions source/change-streams/tests/unified/change-streams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ tests:
- description: "Test that comment is set on getMore"
runOnRequirements:
- minServerVersion: "4.4.0"
# Topolgies are limited because of potentially empty getMore responses
# Topologies are limited because of potentially empty getMore responses
# on sharded clusters.
# See https://jira.mongodb.org/browse/DRIVERS-2248 for more details.
topologies: [ replicaset ]
Expand Down Expand Up @@ -183,7 +183,7 @@ tests:
- description: "Test that comment is not set on getMore - pre 4.4"
runOnRequirements:
- maxServerVersion: "4.3.99"
# Topolgies are limited because of potentially empty getMore responses
# Topologies are limited because of potentially empty getMore responses
# on sharded clusters.
# See https://jira.mongodb.org/browse/DRIVERS-2248 for more details.
topologies: [ replicaset ]
Expand Down Expand Up @@ -330,6 +330,9 @@ tests:
viewOn: "db.coll"

- description: "Test server error on projecting out _id"
runOnRequirements:
- minServerVersion: "4.2"
# Server returns an error if _id is modified on versions 4.2 and higher
operations:
- name: createChangeStream
object: *collection0
Expand Down Expand Up @@ -367,4 +370,3 @@ tests:
db: *database0
coll: *collection0
newField: "value"