Skip to content

CDRIVER-4317 Add support for clientEncryption entity in unified test runner #975

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 14 commits into from
Apr 27, 2022

Conversation

eramongodb
Copy link
Contributor

@eramongodb eramongodb commented Apr 26, 2022

This PR is a part of CDRIVER-4317. It is being reviewed separately to unblock FLE 2 work.

This PR implements support for the new clientEncryption entity in unified tests. The JSON schema version is bumped from 1.5 to 1.8 to support running new unified test format valid-pass test files. This does not indicate that the unified test runner supports JSON schema version 1.8 in its entirety (not all spec tests have been updated).

This PR includes a drive-by improvement to unified test runner error messages to support outputting the actual value of a BSON document when it differs from the expected value.

PR Updates

  • Add support for runOnRequirement.csfle to avoid test runner errors when built without CSFLE.

@eramongodb eramongodb requested a review from kevinAlbs April 26, 2022 20:24
@eramongodb eramongodb self-assigned this Apr 26, 2022
Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you for adding the actual value to the match message.

Please update with the new runOnRequirement. That may resolve test failures.

@eramongodb
Copy link
Contributor Author

Resolved merge conflicts and verified expected behavior in a full patch build.

@eramongodb eramongodb requested a review from kevinAlbs April 27, 2022 19:49
Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eramongodb eramongodb merged commit 904db53 into mongodb:master Apr 27, 2022
@eramongodb eramongodb deleted the client-encryption-entity branch April 27, 2022 20:12
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