possible timing issue with the e2e test and the NotAfter status field

Signed-off-by: Gus Parvin <gparvin@us.ibm.com>
This commit is contained in:
Gus Parvin 2018-11-14 16:34:52 +00:00
parent ff1a8534fa
commit aceb997032

View File

@ -283,6 +283,10 @@ func WaitCertificateIssuedValid(certClient clientset.CertificateInterface, secre
return false, nil
}
if certificate.Status.NotAfter == nil {
glog.Infof("No certificate expiration found for Certificate %q", name)
return false, nil
}
if !cert.NotAfter.Equal(certificate.Status.NotAfter.Time) {
glog.Info("Expected certificate expire date to be %v, but got %v", certificate.Status.NotAfter, cert.NotAfter)
return false, nil