Skip to content

Commit

Permalink
Initialises CR annotations in SelfSigned e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
  • Loading branch information
JoshVanL committed Aug 1, 2019
1 parent f26ea8d commit 8d64a94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/suite/issuers/selfsigned/certificaterequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var _ = framework.CertManagerDescribe("SelfSigned CertificateRequest", func() {
},
exampleDNSNames, exampleIPAddresses, exampleURIs, x509.RSA)
Expect(err).NotTo(HaveOccurred())
cr.Annotations[v1alpha1.CRPrivateKeyAnnotationKey] = certificateRequestSecretName
cr.Annotations = map[string]string{v1alpha1.CRPrivateKeyAnnotationKey: certificateRequestSecretName}
_, err = certRequestClient.Create(cr)
Expect(err).NotTo(HaveOccurred())

Expand All @@ -102,7 +102,7 @@ var _ = framework.CertManagerDescribe("SelfSigned CertificateRequest", func() {
},
exampleDNSNames, exampleIPAddresses, exampleURIs, x509.ECDSA)
Expect(err).NotTo(HaveOccurred())
cr.Annotations[v1alpha1.CRPrivateKeyAnnotationKey] = certificateRequestSecretName
cr.Annotations = map[string]string{v1alpha1.CRPrivateKeyAnnotationKey: certificateRequestSecretName}
_, err = certRequestClient.Create(cr)
Expect(err).NotTo(HaveOccurred())

Expand Down Expand Up @@ -135,7 +135,7 @@ var _ = framework.CertManagerDescribe("SelfSigned CertificateRequest", func() {
cr, key, err := util.NewCertManagerBasicCertificateRequest(certificateRequestName, issuerName, v1alpha1.IssuerKind, v.inputDuration,
exampleDNSNames, exampleIPAddresses, exampleURIs, x509.RSA)
Expect(err).NotTo(HaveOccurred())
cr.Annotations[v1alpha1.CRPrivateKeyAnnotationKey] = certificateRequestSecretName
cr.Annotations = map[string]string{v1alpha1.CRPrivateKeyAnnotationKey: certificateRequestSecretName}
cr, err = crClient.Create(cr)
Expect(err).NotTo(HaveOccurred())

Expand Down

0 comments on commit 8d64a94

Please sign in to comment.