diff --git a/source/client-side-encryption/tests/README.md b/source/client-side-encryption/tests/README.md index 6fab6fe0ca..9aa963ab55 100644 --- a/source/client-side-encryption/tests/README.md +++ b/source/client-side-encryption/tests/README.md @@ -3213,7 +3213,7 @@ Assert that an error was raised. ### 22. Range Explicit Encryption applies defaults -This test requires libmongocrypt with changes of [MONGOCRYPT-698|https://jira.mongodb.org/browse/MONGOCRYPT-698]. +This test requires libmongocrypt with changes of [MONGOCRYPT-698](https://jira.mongodb.org/browse/MONGOCRYPT-698). #### Test Setup @@ -3232,6 +3232,7 @@ class ClientEncryptionOpts { Create a key with `clientEncryption.createDataKey`. Store the returned key ID in a variable named `keyId`. Call `clientEncryption.encrypt` to encrypt the int32 value 123 with these options: + ```typescript class EncryptOpts { keyId : keyId, @@ -3243,11 +3244,13 @@ class EncryptOpts { } } ``` + Store the result in a variable named `payload_defaults`. #### Case 1: Uses libmongocrypt defaults Call `clientEncryption.encrypt` to encrypt the int32 value 123 with these options: + ```typescript class EncryptOpts { keyId : keyId, @@ -3265,12 +3268,13 @@ class EncryptOpts { Assert the returned payload size equals the size of `payload_defaults`. > [!NOTE] -> The payload contents are not compared. The payloads include random data. -> The `trimFactor` and `sparsity` directly affect the payload size. +> The payload contents are not compared. The payloads include random data. The `trimFactor` and `sparsity` directly +> affect the payload size. #### Case 2: Accepts `trimFactor` 0 Call `clientEncryption.encrypt` to encrypt the int32 value 123 with these options: + ```typescript class EncryptOpts { keyId : keyId, @@ -3287,5 +3291,5 @@ class EncryptOpts { Assert the returned payload size is greater than the size of `payload_defaults`. > [!NOTE] -> The payload contents are not compared. The payloads include random data. -> The `trimFactor` and `sparsity` directly affect the payload size. +> The payload contents are not compared. The payloads include random data. The `trimFactor` and `sparsity` directly +> affect the payload size.