Skip to content

Commit

Permalink
update: tests for TLS config
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
  • Loading branch information
EnriqueL8 committed Oct 15, 2024
1 parent 864bc0b commit 9ff9f37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/namespace/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,9 @@ namespaces:
assert.NoError(t, err)
assert.NotNil(t, tlsConfigs["myconfig"])
assert.True(t, tlsConfigs["myconfig"].RootCAs.Equal(expectedTLSConfig.RootCAs))
assert.Equal(t, tlsConfigs["myconfig"].Certificates, expectedTLSConfig.Certificates)
certificate, err := tlsConfigs["myconfig"].GetCertificate(nil)
assert.NoError(t, err)
assert.Equal(t, *certificate, cert)
}

func TestLoadTLSConfigsDuplicateConfigs(t *testing.T) {
Expand Down

0 comments on commit 9ff9f37

Please sign in to comment.