mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-04 04:04:28 +00:00
Refactor certauthority_test to not need pool.Subjects()
This commit is contained in:
@@ -208,8 +208,10 @@ func TestPool(t *testing.T) {
|
||||
ca, err := New("test", 1*time.Hour)
|
||||
require.NoError(t, err)
|
||||
|
||||
pool := ca.Pool()
|
||||
require.Len(t, pool.Subjects(), 1)
|
||||
expectedPool := x509.NewCertPool()
|
||||
expectedPool.AppendCertsFromPEM(ca.Bundle())
|
||||
|
||||
require.True(t, expectedPool.Equal(ca.Pool()))
|
||||
}
|
||||
|
||||
type errSigner struct {
|
||||
|
||||
Reference in New Issue
Block a user