Skip to content

CSHARP-3450: Versioned API database aggregation test only works on 49+ servers. #480

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
Mar 24, 2021
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
Expand Up @@ -3,7 +3,7 @@
"schemaVersion": "1.1",
"runOnRequirements": [
{
"minServerVersion": "4.7"
"minServerVersion": "4.9"
}
],
"createEntities": [
Expand Down Expand Up @@ -608,12 +608,6 @@
},
{
"description": "estimatedDocumentCount appends declared API version",
"skipReason": "DRIVERS-1561 collStats is not in API version 1",
"runOnRequirements": [
{
"minServerVersion": "4.9.0"
}
],
"operations": [
{
"name": "estimatedDocumentCount",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "CRUD Api Version 1 (strict)"
schemaVersion: "1.1"

runOnRequirements:
- minServerVersion: "4.7"
- minServerVersion: "4.9"

createEntities:
- client:
Expand Down Expand Up @@ -225,9 +225,6 @@ tests:
<<: *expectedApiVersion

- description: "estimatedDocumentCount appends declared API version"
skipReason: "DRIVERS-1561 collStats is not in API version 1"
runOnRequirements:
- minServerVersion: "4.9.0" # $collStats is not used in estimatedDocumentCount on < 4.9
operations:
- name: estimatedDocumentCount
object: *collection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"schemaVersion": "1.1",
"runOnRequirements": [
{
"minServerVersion": "4.7"
"minServerVersion": "4.9"
}
],
"createEntities": [
Expand Down Expand Up @@ -598,47 +598,8 @@
}
]
},
{
"description": "estimatedDocumentCount appends declared API version on less than 4.9.0",
"runOnRequirements": [
{
"maxServerVersion": "4.8.99"
}
],
"operations": [
{
"name": "estimatedDocumentCount",
"object": "collection",
"arguments": {}
}
],
"expectEvents": [
{
"client": "client",
"events": [
{
"commandStartedEvent": {
"command": {
"count": "test",
"apiVersion": "1",
"apiStrict": {
"$$unsetOrMatches": false
},
"apiDeprecationErrors": true
}
}
}
]
}
]
},
{
"description": "estimatedDocumentCount appends declared API version on 4.9.0 or greater",
"runOnRequirements": [
{
"minServerVersion": "4.9.0"
}
],
"operations": [
{
"name": "estimatedDocumentCount",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "CRUD Api Version 1"
schemaVersion: "1.1"

runOnRequirements:
- minServerVersion: "4.7"
- minServerVersion: "4.9"

createEntities:
- client:
Expand Down Expand Up @@ -218,24 +218,7 @@ tests:
key: x
<<: *expectedApiVersion

- description: "estimatedDocumentCount appends declared API version on less than 4.9.0"
runOnRequirements:
- maxServerVersion: "4.8.99"
operations:
- name: estimatedDocumentCount
object: *collection
arguments: {}
expectEvents:
- client: *client
events:
- commandStartedEvent:
command:
count: *collectionName
<<: *expectedApiVersion

- description: "estimatedDocumentCount appends declared API version on 4.9.0 or greater"
runOnRequirements:
- minServerVersion: "4.9.0"
operations:
- name: estimatedDocumentCount
object: *collection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"schemaVersion": "1.1",
"runOnRequirements": [
{
"minServerVersion": "4.7",
"minServerVersion": "4.9",
"serverParameters": {
"requireApiVersion": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "RunCommand helper: No API version declared"
schemaVersion: "1.1"

runOnRequirements:
- minServerVersion: "4.7"
- minServerVersion: "4.9"
serverParameters:
requireApiVersion: false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"schemaVersion": "1.1",
"runOnRequirements": [
{
"minServerVersion": "4.7",
"minServerVersion": "4.9",
"serverParameters": {
"enableTestCommands": true,
"acceptAPIVersion2": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "Test commands: deprecation errors"
schemaVersion: "1.1"

runOnRequirements:
- minServerVersion: "4.7"
- minServerVersion: "4.9"
serverParameters:
enableTestCommands: true
acceptAPIVersion2: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"schemaVersion": "1.1",
"runOnRequirements": [
{
"minServerVersion": "4.7",
"minServerVersion": "4.9",
"serverParameters": {
"enableTestCommands": true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "Test commands: strict mode"
schemaVersion: "1.1"

runOnRequirements:
- minServerVersion: "4.7"
- minServerVersion: "4.9"
serverParameters:
enableTestCommands: true

Expand Down
Loading