Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinAlbs committed Jul 23, 2024
1 parent bee8207 commit c9f69f3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions source/client-side-encryption/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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.

0 comments on commit c9f69f3

Please sign in to comment.