kubernetes/staging/src/k8s.io/client-go/util/certificate/certificate_manager_test.go

var storeCertData

var storeTwoCertsData

var expiredStoreCertData

var bootstrapCertData

var apiServerCertData

type certificateData

func newCertificateData(certificatePEM string, keyPEM string) *certificateData {}

func TestNewManagerNoRotation(t *testing.T) {}

type metricMock

func (g *metricMock) Set(v float64) {}

func (g *metricMock) Observe(v float64) {}

func TestSetRotationDeadline(t *testing.T) {}

func TestCertSatisfiesTemplate(t *testing.T) {}

func TestRotateCertCreateCSRError(t *testing.T) {}

func TestRotateCertWaitingForResultError(t *testing.T) {}

func TestNewManagerBootstrap(t *testing.T) {}

func TestNewManagerNoBootstrap(t *testing.T) {}

func TestGetCurrentCertificateOrBootstrap(t *testing.T) {}

func TestInitializeCertificateSigningRequestClient(t *testing.T) {}

func TestInitializeOtherRESTClients(t *testing.T) {}

func TestServerHealth(t *testing.T) {}

func TestRotationLogsDuration(t *testing.T) {}

type fakeClientFailureType

const none

const createError

const watchError

const certificateSigningRequestDenied

type fakeClient

func newClientset(opts fakeClient) *fake.Clientset {}

type fakeWatch

func (w *fakeWatch) Stop() {}

func (w *fakeWatch) ResultChan() <-chan watch.Event {}

type fakeStore

func (s *fakeStore) Current() (*tls.Certificate, error) {}

// Accepts the PEM data for the cert/key pair and makes the new cert/key
// pair the 'current' pair, that will be returned by future calls to
// Current().
func (s *fakeStore) Update(certPEM, keyPEM []byte) (*tls.Certificate, error) {}

func certificatesEqual(c1 *tls.Certificate, c2 *tls.Certificate) bool {}

func certificateString(c *tls.Certificate) string {}