Documentation ¶
Index ¶
- func CreateCertificate(t *testing.T, clients *test.Clients, dnsNames []string) (*v1alpha1.Certificate, context.CancelFunc)
- func VerifyChallenges(t *testing.T, client *test.Clients, cert *v1alpha1.Certificate)
- func WaitForCertificateSecret(t *testing.T, client *test.Clients, cert *v1alpha1.Certificate, desc string) error
- func WaitForCertificateState(client *test.NetworkingClients, name string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertificate ¶
func CreateCertificate(t *testing.T, clients *test.Clients, dnsNames []string) (*v1alpha1.Certificate, context.CancelFunc)
CreateCertificate creates a Certificate with the given DNS names
func VerifyChallenges ¶
VerifyChallenges verifies that the given certificate has the correct number of HTTP01challenges and they contain valid data.
func WaitForCertificateSecret ¶
func WaitForCertificateSecret(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(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.