Skip to content

Commit 31f3bd5

Browse files
committed
fix tests
1 parent 00e69f5 commit 31f3bd5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

internal/integration/client_side_encryption_prose_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2988,8 +2988,16 @@ func TestClientSideEncryptionProse(t *testing.T) {
29882988
mt.Skipf("Skipping test as KMS_FAILPOINT_SERVERS_RUNNING is not set")
29892989
}
29902990

2991-
tlsCfg := &tls.Config{
2992-
InsecureSkipVerify: true,
2991+
mt.Parallel()
2992+
2993+
var tlsCfg *tls.Config
2994+
if tlsCAFileKMIP != "" {
2995+
var err error
2996+
clientAndCATlsMap := map[string]interface{}{
2997+
"tlsCAFile": tlsCAFileKMIP,
2998+
}
2999+
tlsCfg, err = options.BuildTLSConfig(clientAndCATlsMap)
3000+
require.Nil(mt, err, "BuildTLSConfig error: %v", err)
29933001
}
29943002

29953003
setFailPoint := func(failure string, count int) error {

0 commit comments

Comments
 (0)