Skip to content

Commit 3aed8b9

Browse files
committed
fix
1 parent fe2f251 commit 3aed8b9

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

mongo/integration/client_side_encryption_prose_test.go

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2946,9 +2946,6 @@ func TestClientSideEncryptionProse(t *testing.T) {
29462946
assert.Nil(mt, err, "error on NewClientEncryption: %v", err)
29472947

29482948
dkOpts := options.DataKey()
2949-
if val, ok := fullKmsProvidersMap["local"]; ok {
2950-
dkOpts.SetMasterKey(val)
2951-
}
29522949
keyID, err := clientEncryption.CreateDataKey(context.Background(), "local", dkOpts)
29532950
assert.Nil(mt, err, "error in CreateDataKey: %v", err)
29542951

@@ -2957,8 +2954,8 @@ func TestClientSideEncryptionProse(t *testing.T) {
29572954
SetKeyID(keyID).
29582955
SetContentionFactor(0).
29592956
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)},
29622959
})
29632960
payloadDefaults, err := clientEncryption.Encrypt(context.Background(), testVal, eo)
29642961
assert.Nil(mt, err, "error in Encrypt: %v", err)
@@ -2971,8 +2968,8 @@ func TestClientSideEncryptionProse(t *testing.T) {
29712968
SetKeyID(keyID).
29722969
SetContentionFactor(0).
29732970
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)},
29762973
TrimFactor: &trimFactor,
29772974
Sparsity: &sparsity,
29782975
})
@@ -2988,8 +2985,8 @@ func TestClientSideEncryptionProse(t *testing.T) {
29882985
SetKeyID(keyID).
29892986
SetContentionFactor(0).
29902987
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)},
29932990
TrimFactor: &trimFactor,
29942991
})
29952992
payload, err := clientEncryption.Encrypt(context.Background(), testVal, eo)

0 commit comments

Comments
 (0)