DRIVERS-2604 deduplicate encrypted fields files #1400
Merged
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.
Summary
encryptedFields-Range-*
files withrange-encryptedFields-*
.encryptedDouble
andencryptedDecimal
withencryptedDoubleNoPrecision
andencryptedDecimalNoPrecision
to match the field name in therange-encryptedFields-*
files.There is no expected test coverage or behavior change.
Changes tested with C driver in this patch build: https://spruce.mongodb.com/version/6436ce262a60edecd5b8f761
Background & Motivation
Motivated by this comment: #1396 (comment)
The
range-encryptedFields-*.json
files and theencryptedFields-Range-*.json
files are almost identical.14c5099 adds
contention
toencryptedFields-Range-*.json
. The server response tolistCollections
includes the default value chosen forcontention
.encryptedFields-Range-*.json
is used both for collection creation and for thecommand_started
event assertions. Without addingcontention
to the expectedcommand_started
event, the test assertion fails since the actual event contains the defaultcontention
.9b2df75 uses
$numberLong
consistently for sparsity. The server accepts both$numberLong
and$numberInt
. The only motivation was for consistency.Please complete the following before merging:
[ ] Update changelog.N/A. Only test files changed[ ] Test these changes against all server versions and topologies (including standalone, replica set, sharded clusters, and serverless).Tested in C driver on replica set only.