Documentation ¶
Index ¶
- func CreateCertificate(ctx context.Context, t *testing.T, clients *test.Clients, dnsNames []string) *v1alpha1.Certificate
- func IsCertificateReady(c *v1alpha1.Certificate) (bool, error)
- func VerifyChallenges(ctx context.Context, t *testing.T, client *test.Clients, ...)
- func WaitForCertificateSecret(ctx context.Context, t *testing.T, client *test.Clients, ...) error
- func WaitForCertificateState(ctx context.Context, client *test.NetworkingClients, name string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertificate ¶
func CreateCertificate(ctx context.Context, t *testing.T, clients *test.Clients, dnsNames []string) *v1alpha1.Certificate
CreateCertificate creates a Certificate with the given DNS names. The certificate is automatically cleaned up when the test ends or is interrupted.
func IsCertificateReady ¶
func IsCertificateReady(c *v1alpha1.Certificate) (bool, error)
IsCertificateReady will check the status conditions of the certificate and return true if the certificate is ready.
func VerifyChallenges ¶
func VerifyChallenges(ctx context.Context, t *testing.T, client *test.Clients, cert *v1alpha1.Certificate)
VerifyChallenges verifies that the given certificate has the correct number of HTTP01challenges and they contain valid data.
func WaitForCertificateSecret ¶
func WaitForCertificateSecret(ctx context.Context, t *testing.T, client *test.Clients, cert *v1alpha1.Certificate, desc string) error
WaitForCertificateSecret polls the status of the Secret for the provided Certificate until it exists or the timeout is exceeded. It then validates its contents
func WaitForCertificateState ¶
func WaitForCertificateState(ctx context.Context, client *test.NetworkingClients, name string, inState func(r *v1alpha1.Certificate) (bool, error), desc string) error
WaitForCertificateState polls the status of the Certificate called name from client every PollInterval until inState returns `true` indicating it is done, returns an error or PollTimeout. desc will be used to name the metric that is emitted to track how long it took for name to get into the state checked by inState.
Types ¶
This section is empty.