Skip to content

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

Merged
merged 3 commits into from
Jan 14, 2021

Conversation

ShaneHarvey
Copy link
Member

@ShaneHarvey ShaneHarvey commented Jan 13, 2021

This change:

  • adds testing against a server started with acceptAPIVersion2.
  • skips the failing $listLocalSessions test related to DRIVERS-1505.
  • resyncs the spec test added in DRIVERS-1504.

@@ -6,7 +6,8 @@
"minServerVersion": "4.7",
"serverParameters": {
"enableTestCommands": true,
"acceptAPIVersion2": true
"acceptAPIVersion2": true,
"requireApiVersion": false
Copy link
Member Author

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"
Copy link
Member Author

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.

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.
Copy link
Contributor

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?

Copy link
Member Author

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.

@ShaneHarvey ShaneHarvey merged commit 1128129 into mongodb:master Jan 14, 2021
@ShaneHarvey ShaneHarvey deleted the PYTHON-2482 branch January 14, 2021 22:09
ShaneHarvey added a commit that referenced this pull request Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants