Skip to content

Commit

Permalink
Use map literals for the BuildTLSConfig args.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdale committed Dec 3, 2024
1 parent a2399ef commit 8116bb6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions internal/integration/client_side_encryption_prose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1517,11 +1517,10 @@ func TestClientSideEncryptionProse(t *testing.T) {
SetKeyVaultNamespace(kvNamespace)

// make TLS opts containing client certificate and CA file
clientAndCATlsMap := map[string]interface{}{
clientAndCATLSConfig, err := options.BuildTLSConfig(map[string]interface{}{
"tlsCertificateKeyFile": tlsClientCertificateKeyFileKMIP,
"tlsCAFile": tlsCAFileKMIP,
}
clientAndCATLSConfig, err := options.BuildTLSConfig(clientAndCATlsMap)
})
assert.Nil(mt, err, "BuildTLSConfig error: %v", err)

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

// make TLS opts containing only CA file
caTlSMap := map[string]interface{}{
caTLSConfig, err := options.BuildTLSConfig(map[string]interface{}{
"tlsCAFile": tlsCAFileKMIP,
}
caTLSConfig, err := options.BuildTLSConfig(caTlSMap)
})
assert.Nil(mt, err, "BuildTLSConfig error: %v", err)

// create invalid Client Encryption options with expired credentials
Expand Down

0 comments on commit 8116bb6

Please sign in to comment.