check that issuer is not nil before reading its field values on cleanup
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
parent
50ac858898
commit
e9c4cd9f3f
@ -69,7 +69,9 @@ var _ = TPPDescribe("Certificate with a properly configured Issuer", func() {
|
||||
|
||||
AfterEach(func() {
|
||||
By("Cleaning up")
|
||||
f.CertManagerClientSet.CertmanagerV1().Issuers(f.Namespace.Name).Delete(context.TODO(), issuer.Name, metav1.DeleteOptions{})
|
||||
if issuer != nil {
|
||||
f.CertManagerClientSet.CertmanagerV1().Issuers(f.Namespace.Name).Delete(context.TODO(), issuer.Name, metav1.DeleteOptions{})
|
||||
}
|
||||
})
|
||||
|
||||
It("should obtain a signed certificate for a single domain", func() {
|
||||
|
||||
@ -46,7 +46,9 @@ var _ = TPPDescribe("properly configured Venafi TPP Issuer", func() {
|
||||
|
||||
AfterEach(func() {
|
||||
By("Cleaning up")
|
||||
f.CertManagerClientSet.CertmanagerV1().Issuers(f.Namespace.Name).Delete(context.TODO(), issuer.Name, metav1.DeleteOptions{})
|
||||
if issuer != nil {
|
||||
f.CertManagerClientSet.CertmanagerV1().Issuers(f.Namespace.Name).Delete(context.TODO(), issuer.Name, metav1.DeleteOptions{})
|
||||
}
|
||||
})
|
||||
|
||||
It("should set Ready=True accordingly", func() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user