Skip to content

Commit 8116bb6

Browse files
committed
Use map literals for the BuildTLSConfig args.
1 parent a2399ef commit 8116bb6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

internal/integration/client_side_encryption_prose_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,11 +1517,10 @@ func TestClientSideEncryptionProse(t *testing.T) {
15171517
SetKeyVaultNamespace(kvNamespace)
15181518

15191519
// make TLS opts containing client certificate and CA file
1520-
clientAndCATlsMap := map[string]interface{}{
1520+
clientAndCATLSConfig, err := options.BuildTLSConfig(map[string]interface{}{
15211521
"tlsCertificateKeyFile": tlsClientCertificateKeyFileKMIP,
15221522
"tlsCAFile": tlsCAFileKMIP,
1523-
}
1524-
clientAndCATLSConfig, err := options.BuildTLSConfig(clientAndCATlsMap)
1523+
})
15251524
assert.Nil(mt, err, "BuildTLSConfig error: %v", err)
15261525

15271526
// create valid Client Encryption options and set valid TLS options
@@ -1536,10 +1535,9 @@ func TestClientSideEncryptionProse(t *testing.T) {
15361535
})
15371536

15381537
// make TLS opts containing only CA file
1539-
caTlSMap := map[string]interface{}{
1538+
caTLSConfig, err := options.BuildTLSConfig(map[string]interface{}{
15401539
"tlsCAFile": tlsCAFileKMIP,
1541-
}
1542-
caTLSConfig, err := options.BuildTLSConfig(caTlSMap)
1540+
})
15431541
assert.Nil(mt, err, "BuildTLSConfig error: %v", err)
15441542

15451543
// create invalid Client Encryption options with expired credentials

0 commit comments

Comments
 (0)