-
Notifications
You must be signed in to change notification settings - Fork 543
CXX-2656 Update tests for QEv2 compatibility #953
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
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.
LGTM with a change to a test skip condition.
// CXX-2656: temporarily workaround "payload type that is no longer supported" errors until the | ||
// QEv2 protocol is properly supported. | ||
if (test_util::newer_than(conn, "7.0")) { | ||
WARN("Skipping - skipping tests that require QEv2 (CXX-2656)"); | ||
return; | ||
} |
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.
Prose tests that require Queryable Encryption are expected to require server version 7.0 or newer.
Suggest replacing this if
block and the one above with:
if (!test_util::newer_than(conn, "7.0")) {
WARN("Skipping - MongoDB server 7.0 or newer required");
return;
}
Latest changes verified by this patch. |
Description
Resolves CXX-2656. Verified by this patch.
Resolves current Evergreen task failures when testing against latest replica sets due to the following error:
Legacy CSE Tests
This PR moves legacy CSE tests into a proper
legacy
subdirectory for consistency with other unified spec tests with legacy/unified components. Updated CSE test environment variables accordingly.CXX-2656 Test Files
This PR syncs the legacy test files with mongodb/specifications@64deb28 with the exception of the following files:
Minimum libmongoc Version
Bumped to mongodb/mongo-c-driver@8aced03 to include dependent changes introduced by mongodb/mongo-c-driver#1228, including use of libmongocrypt 1.8.0-alpha0.
Snapshot Documentation Examples
This PR also introduces a skip condition for snapshot documentation examples. See CXX-2671 for details.
Miscellaneous
Improved quality of error messages on unexpected test operation success (when an error was expected instead) by emitting the result of the successful command.