This commit is contained in:
Louis Taylor 2018-07-06 18:03:02 +01:00
parent d60f4b447e
commit 2e97514c5e
No known key found for this signature in database
GPG Key ID: 8E81A6DAE13E7098

View File

@ -49,4 +49,13 @@ func (f *Framework) WaitCertificateIssuedValidTimeout(c *v1alpha1.Certificate, t
if expectedCN != cert.Subject.CommonName || !util.EqualUnsorted(cert.DNSNames, expectedDNSNames) {
Failf("Expected certificate valid for CN %q, dnsNames %v but got a certificate valid for CN %q, dnsNames %v", expectedCN, expectedDNSNames, cert.Subject.CommonName, cert.DNSNames)
}
label, ok := secret.Labels[v1alpha1.CertificateNameKey]
if !ok {
Failf("Expected secret to have certificate-name label, but had none")
}
if label != c.Name {
Failf("Expected secret to have certificate-name label with a value of %q, but got %q", c.Name, label)
}
}