@@ -3102,12 +3102,11 @@ range_explicit_encryption_objects range_explicit_encryption_setup(const std::str
3102
3102
// algorithm: "RangePreview",
3103
3103
// contentionFactor: 0
3104
3104
// }
3105
- const auto encrypt_opts =
3106
- options::encrypt ()
3107
- .range_opts (range_opts)
3108
- .key_id (key1_id)
3109
- .algorithm (options::encrypt::encryption_algorithm::k_range_preview)
3110
- .contention_factor (0 );
3105
+ const auto encrypt_opts = options::encrypt ()
3106
+ .range_opts (range_opts)
3107
+ .key_id (key1_id)
3108
+ .algorithm (options::encrypt::encryption_algorithm::k_range)
3109
+ .contention_factor (0 );
3111
3110
3112
3111
// Use `clientEncryption` to encrypt these values: 0, 6, 30, and 200.
3113
3112
const auto encrypted_v0 = client_encryption.encrypt (field_values.v0 , encrypt_opts);
@@ -3216,7 +3215,7 @@ TEST_CASE("Range Explicit Encryption", "[client_side_encryption]") {
3216
3215
options::encrypt ()
3217
3216
.range_opts (range_opts)
3218
3217
.key_id (key1_id)
3219
- .algorithm (options::encrypt::encryption_algorithm::k_range_preview )
3218
+ .algorithm (options::encrypt::encryption_algorithm::k_range )
3220
3219
.contention_factor (0 ));
3221
3220
3222
3221
// Use `clientEncryption` to decrypt `insertPayload`.
@@ -3251,8 +3250,8 @@ TEST_CASE("Range Explicit Encryption", "[client_side_encryption]") {
3251
3250
options::encrypt ()
3252
3251
.range_opts (range_opts)
3253
3252
.key_id (key1_id)
3254
- .algorithm (options::encrypt::encryption_algorithm::k_range_preview )
3255
- .query_type (options::encrypt::encryption_query_type::k_range_preview )
3253
+ .algorithm (options::encrypt::encryption_algorithm::k_range )
3254
+ .query_type (options::encrypt::encryption_query_type::k_range )
3256
3255
.contention_factor (0 ));
3257
3256
3258
3257
// Use encryptedClient to run a "find" operation on the `db.explicit_encryption`
@@ -3303,8 +3302,8 @@ TEST_CASE("Range Explicit Encryption", "[client_side_encryption]") {
3303
3302
options::encrypt ()
3304
3303
.range_opts (range_opts)
3305
3304
.key_id (key1_id)
3306
- .algorithm (options::encrypt::encryption_algorithm::k_range_preview )
3307
- .query_type (options::encrypt::encryption_query_type::k_range_preview )
3305
+ .algorithm (options::encrypt::encryption_algorithm::k_range )
3306
+ .query_type (options::encrypt::encryption_query_type::k_range )
3308
3307
.contention_factor (0 ));
3309
3308
3310
3309
// Use `encryptedClient` to run a "find" operation on the `db.explicit_encryption`
@@ -3351,8 +3350,8 @@ TEST_CASE("Range Explicit Encryption", "[client_side_encryption]") {
3351
3350
options::encrypt ()
3352
3351
.range_opts (range_opts)
3353
3352
.key_id (key1_id)
3354
- .algorithm (options::encrypt::encryption_algorithm::k_range_preview )
3355
- .query_type (options::encrypt::encryption_query_type::k_range_preview )
3353
+ .algorithm (options::encrypt::encryption_algorithm::k_range )
3354
+ .query_type (options::encrypt::encryption_query_type::k_range )
3356
3355
.contention_factor (0 ));
3357
3356
3358
3357
// Use encryptedClient to run a "find" operation on the `db.explicit_encryption`
@@ -3397,8 +3396,8 @@ TEST_CASE("Range Explicit Encryption", "[client_side_encryption]") {
3397
3396
options::encrypt ()
3398
3397
.range_opts (range_opts)
3399
3398
.key_id (key1_id)
3400
- .algorithm (options::encrypt::encryption_algorithm::k_range_preview )
3401
- .query_type (options::encrypt::encryption_query_type::k_range_preview )
3399
+ .algorithm (options::encrypt::encryption_algorithm::k_range )
3400
+ .query_type (options::encrypt::encryption_query_type::k_range )
3402
3401
.contention_factor (0 ));
3403
3402
3404
3403
// Use encryptedClient to run a "find" operation on the `db.explicit_encryption`
@@ -3448,8 +3447,7 @@ TEST_CASE("Range Explicit Encryption", "[client_side_encryption]") {
3448
3447
options::encrypt ()
3449
3448
.range_opts (range_opts)
3450
3449
.key_id (key1_id)
3451
- .algorithm (
3452
- options::encrypt::encryption_algorithm::k_range_preview)
3450
+ .algorithm (options::encrypt::encryption_algorithm::k_range)
3453
3451
.contention_factor (0 )),
3454
3452
Catch::Contains (
3455
3453
" Value must be greater than or equal to the minimum value and "
@@ -3477,7 +3475,7 @@ TEST_CASE("Range Explicit Encryption", "[client_side_encryption]") {
3477
3475
options::encrypt ()
3478
3476
.range_opts (range_opts)
3479
3477
.key_id (key1_id)
3480
- .algorithm (options::encrypt::encryption_algorithm::k_range_preview )
3478
+ .algorithm (options::encrypt::encryption_algorithm::k_range )
3481
3479
.contention_factor (0 );
3482
3480
3483
3481
// If the encrypted field is encryptedInt encrypt:
@@ -3533,8 +3531,7 @@ TEST_CASE("Range Explicit Encryption", "[client_side_encryption]") {
3533
3531
.sparsity (1 )
3534
3532
.precision (2 ))
3535
3533
.key_id (key1_id)
3536
- .algorithm (
3537
- options::encrypt::encryption_algorithm::k_range_preview)
3534
+ .algorithm (options::encrypt::encryption_algorithm::k_range)
3538
3535
.contention_factor (0 )),
3539
3536
Catch::Contains (
3540
3537
" expected 'precision' to be set with double or decimal128 index" ));
0 commit comments