@@ -2946,9 +2946,6 @@ func TestClientSideEncryptionProse(t *testing.T) {
2946
2946
assert .Nil (mt , err , "error on NewClientEncryption: %v" , err )
2947
2947
2948
2948
dkOpts := options .DataKey ()
2949
- if val , ok := fullKmsProvidersMap ["local" ]; ok {
2950
- dkOpts .SetMasterKey (val )
2951
- }
2952
2949
keyID , err := clientEncryption .CreateDataKey (context .Background (), "local" , dkOpts )
2953
2950
assert .Nil (mt , err , "error in CreateDataKey: %v" , err )
2954
2951
@@ -2957,8 +2954,8 @@ func TestClientSideEncryptionProse(t *testing.T) {
2957
2954
SetKeyID (keyID ).
2958
2955
SetContentionFactor (0 ).
2959
2956
SetRangeOptions (options.RangeOptions {
2960
- Min : & bson.RawValue {Type : bson .TypeInt64 , Value : bsoncore .AppendInt64 (nil , 0 )},
2961
- Max : & bson.RawValue {Type : bson .TypeInt64 , Value : bsoncore .AppendInt64 (nil , 1000 )},
2957
+ Min : & bson.RawValue {Type : bson .TypeInt32 , Value : bsoncore .AppendInt32 (nil , 0 )},
2958
+ Max : & bson.RawValue {Type : bson .TypeInt32 , Value : bsoncore .AppendInt32 (nil , 1000 )},
2962
2959
})
2963
2960
payloadDefaults , err := clientEncryption .Encrypt (context .Background (), testVal , eo )
2964
2961
assert .Nil (mt , err , "error in Encrypt: %v" , err )
@@ -2971,8 +2968,8 @@ func TestClientSideEncryptionProse(t *testing.T) {
2971
2968
SetKeyID (keyID ).
2972
2969
SetContentionFactor (0 ).
2973
2970
SetRangeOptions (options.RangeOptions {
2974
- Min : & bson.RawValue {Type : bson .TypeInt64 , Value : bsoncore .AppendInt64 (nil , 0 )},
2975
- Max : & bson.RawValue {Type : bson .TypeInt64 , Value : bsoncore .AppendInt64 (nil , 1000 )},
2971
+ Min : & bson.RawValue {Type : bson .TypeInt32 , Value : bsoncore .AppendInt32 (nil , 0 )},
2972
+ Max : & bson.RawValue {Type : bson .TypeInt32 , Value : bsoncore .AppendInt32 (nil , 1000 )},
2976
2973
TrimFactor : & trimFactor ,
2977
2974
Sparsity : & sparsity ,
2978
2975
})
@@ -2988,8 +2985,8 @@ func TestClientSideEncryptionProse(t *testing.T) {
2988
2985
SetKeyID (keyID ).
2989
2986
SetContentionFactor (0 ).
2990
2987
SetRangeOptions (options.RangeOptions {
2991
- Min : & bson.RawValue {Type : bson .TypeInt64 , Value : bsoncore .AppendInt64 (nil , 0 )},
2992
- Max : & bson.RawValue {Type : bson .TypeInt64 , Value : bsoncore .AppendInt64 (nil , 1000 )},
2988
+ Min : & bson.RawValue {Type : bson .TypeInt32 , Value : bsoncore .AppendInt32 (nil , 0 )},
2989
+ Max : & bson.RawValue {Type : bson .TypeInt32 , Value : bsoncore .AppendInt32 (nil , 1000 )},
2993
2990
TrimFactor : & trimFactor ,
2994
2991
})
2995
2992
payload , err := clientEncryption .Encrypt (context .Background (), testVal , eo )
0 commit comments