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:
parent
ff1a8534fa
commit
aceb997032
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user