RUBY-3226 Update libmongocrypt payloads to new QE protocol #2718
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps libmongocrypt to 1.8.0 and updates the spec files required by both RUBY-3226 and RUBY-3211. (There was significant overlap between the two tickets, and they wound up being interdependent.)
There is some noise in the prose specs from updating the specs to satisfy rubocop. The primary things to look for when reviewing this PR are:
min_server_version
of7.0.0-rc0
.eccCollection
collection is no longer created (per the updated spec). Seespec/support/crypt/encrypted_fields/encryptedFields.json
andQueryableEncryption#emm_collections
.lib/mongo/collection/queryable_encryption.rb
.spec/runners/transactions/test.rb
was changed to avoid a hard-coded comparison on a YAML spec filename (which caused a mysterious failure when the fle2 filenames changed to fle2v2). The new API allows you to specify a Proc instance asexpectations_bson_types
, and the proc is then called with the test instance as an argument. To see this in practice, seespec/spec_tests/client_side_encryption_spec.rb
.There are some spec failures, but I can't reproduce them locally. I've added a separate ticket for those, here: https://jira.mongodb.org/browse/RUBY-3265
Ref: https://jira.mongodb.org/browse/RUBY-3226, https://jira.mongodb.org/browse/RUBY-3211