-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-2482 Test Versioned API with a server started with acceptAPIVersion2 #545
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
Conversation
@@ -6,7 +6,8 @@ | |||
"minServerVersion": "4.7", | |||
"serverParameters": { | |||
"enableTestCommands": true, | |||
"acceptAPIVersion2": true | |||
"acceptAPIVersion2": true, | |||
"requireApiVersion": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was added in mongodb/specifications#893
display_name: "acceptAPIVersion2" | ||
tags: [ "versionedApi_tag" ] | ||
variables: | ||
ORCHESTRATION_FILE: "versioned-api-testing.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reworked this section slightly because in one case we want to test two different cases:
- against a cluster with requireApiVersion=1 and with
MONGODB_API_VERSION
- against a cluster without requireApiVersion without
MONGODB_API_VERSION
but with acceptAPIVersion2.
67567e9
to
f5cb670
Compare
.evergreen/config.yml
Outdated
variables: | ||
# REQUIRE_API_VERSION is set to make drivers-evergreen-tools | ||
# start a cluster with the requireApiVersion parameter. | ||
REQUIRE_API_VERSION: "1" | ||
# MONGODB_API_VERSION is the apiVersion to use in the test suite. | ||
MONGODB_API_VERSION: "1" | ||
# Test against a cluster acceptAPIVersion2 but without requireApiVersion=0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without requireApiVersion=0 or without requireApiVersion=1? What does version 0 mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the comment to actually make sense.
This change: