mongodb / specifications

Specifications related to MongoDB
http://specifications.readthedocs.io/en/latest
Other
389 stars 242 forks source link

DRIVERS-2776 test compact with "range" #1605

Closed kevinAlbs closed 2 months ago

kevinAlbs commented 4 months ago

Summary

Partially resolves DRIVERS-2776.

Background & Motivation

Spec tests are motivated by the bug fix in MONGOCRYPT-699.

Adding result: { ok: 1 } to the operation is to ensure test runners check the operation succeeded. The test format does not require checking the operation succeeded if result is not present.

An "insert" operation is added before compactStructuredEncryptionData for the range test. The server check requiring encryptionInformation appears to require data present to trigger the error.

Please complete the following before merging: