Documentation ¶
Index ¶
- func AssertCertificateHasClientAuthUsage(t *testing.T, cert *x509.Certificate)
- func AssertCertificateHasCommonName(t *testing.T, cert *x509.Certificate, commonName string)
- func AssertCertificateHasOrganizations(t *testing.T, cert *x509.Certificate, organizations ...string)
- func AssertCertificateIsSignedByCa(t *testing.T, cert *x509.Certificate, signingCa *x509.Certificate)
- func SetupCertificateAuthorithy(t *testing.T) (*x509.Certificate, *rsa.PrivateKey)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertCertificateHasClientAuthUsage ¶
func AssertCertificateHasClientAuthUsage(t *testing.T, cert *x509.Certificate)
AssertCertificateHasClientAuthUsage is a utility function for kubeadm testing that asserts if a given certificate has the expected ExtKeyUsageClientAuth
func AssertCertificateHasCommonName ¶
func AssertCertificateHasCommonName(t *testing.T, cert *x509.Certificate, commonName string)
AssertCertificateHasCommonName is a utility function for kubeadm testing that asserts if a given certificate has the expected SubjectCommonName
func AssertCertificateHasOrganizations ¶
func AssertCertificateHasOrganizations(t *testing.T, cert *x509.Certificate, organizations ...string)
AssertCertificateHasOrganizations is a utility function for kubeadm testing that asserts if a given certificate has the expected Subject.Organization
func AssertCertificateIsSignedByCa ¶
func AssertCertificateIsSignedByCa(t *testing.T, cert *x509.Certificate, signingCa *x509.Certificate)
AssertCertificateIsSignedByCa is a utility function for kubeadm testing that asserts if a given certificate is signed by the expected CA
func SetupCertificateAuthorithy ¶
func SetupCertificateAuthorithy(t *testing.T) (*x509.Certificate, *rsa.PrivateKey)
SetupCertificateAuthorithy is a utility function for kubeadm testing that creates a CertificateAuthorithy cert/key pair
Types ¶
This section is empty.