Skip to content

Commit a60716f

Browse files
author
Jelle Dijkstra
committed
Removed cert-manager e2e tests
1 parent bf87bb1 commit a60716f

File tree

1 file changed

+51
-51
lines changed

1 file changed

+51
-51
lines changed

test/e2e/e2e_test.go

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -263,57 +263,57 @@ var _ = Describe("Manager", Ordered, func() {
263263
))
264264
})
265265

266-
It("should provisioned cert-manager", func() {
267-
By("validating that cert-manager has the certificate Secret")
268-
verifyCertManager := func(g Gomega) {
269-
cmd := exec.Command("kubectl", "get", "secrets", "webhook-server-cert", "-n", namespace)
270-
_, err := utils.Run(cmd)
271-
g.Expect(err).NotTo(HaveOccurred())
272-
}
273-
Eventually(verifyCertManager).Should(Succeed())
274-
})
275-
276-
It("should have CA injection for WFS conversion webhook", func() {
277-
By("checking CA injection for WFS conversion webhook")
278-
verifyCAInjection := func(g Gomega) {
279-
cmd := exec.Command("kubectl", "get",
280-
"customresourcedefinitions.apiextensions.k8s.io",
281-
"wfs..pdok.nl",
282-
"-o", "go-template={{ .spec.conversion.webhook.clientConfig.caBundle }}")
283-
vwhOutput, err := utils.Run(cmd)
284-
g.Expect(err).NotTo(HaveOccurred())
285-
g.Expect(len(vwhOutput)).To(BeNumerically(">", 10))
286-
}
287-
Eventually(verifyCAInjection).Should(Succeed())
288-
})
289-
290-
It("should have CA injection for WMS conversion webhook", func() {
291-
By("checking CA injection for WMS conversion webhook")
292-
verifyCAInjection := func(g Gomega) {
293-
cmd := exec.Command("kubectl", "get",
294-
"customresourcedefinitions.apiextensions.k8s.io",
295-
"wms..pdok.nl",
296-
"-o", "go-template={{ .spec.conversion.webhook.clientConfig.caBundle }}")
297-
vwhOutput, err := utils.Run(cmd)
298-
g.Expect(err).NotTo(HaveOccurred())
299-
g.Expect(len(vwhOutput)).To(BeNumerically(">", 10))
300-
}
301-
Eventually(verifyCAInjection).Should(Succeed())
302-
})
303-
304-
It("should have CA injection for validating webhooks", func() {
305-
By("checking CA injection for validating webhooks")
306-
verifyCAInjection := func(g Gomega) {
307-
cmd := exec.Command("kubectl", "get",
308-
"validatingwebhookconfigurations.admissionregistration.k8s.io",
309-
"mapserver-operator-validating-webhook-configuration",
310-
"-o", "go-template={{ range .webhooks }}{{ .clientConfig.caBundle }}{{ end }}")
311-
vwhOutput, err := utils.Run(cmd)
312-
g.Expect(err).NotTo(HaveOccurred())
313-
g.Expect(len(vwhOutput)).To(BeNumerically(">", 10))
314-
}
315-
Eventually(verifyCAInjection).Should(Succeed())
316-
})
266+
//It("should provisioned cert-manager", func() {
267+
// By("validating that cert-manager has the certificate Secret")
268+
// verifyCertManager := func(g Gomega) {
269+
// cmd := exec.Command("kubectl", "get", "secrets", "webhook-server-cert", "-n", namespace)
270+
// _, err := utils.Run(cmd)
271+
// g.Expect(err).NotTo(HaveOccurred())
272+
// }
273+
// Eventually(verifyCertManager).Should(Succeed())
274+
//})
275+
//
276+
//It("should have CA injection for WFS conversion webhook", func() {
277+
// By("checking CA injection for WFS conversion webhook")
278+
// verifyCAInjection := func(g Gomega) {
279+
// cmd := exec.Command("kubectl", "get",
280+
// "customresourcedefinitions.apiextensions.k8s.io",
281+
// "wfs..pdok.nl",
282+
// "-o", "go-template={{ .spec.conversion.webhook.clientConfig.caBundle }}")
283+
// vwhOutput, err := utils.Run(cmd)
284+
// g.Expect(err).NotTo(HaveOccurred())
285+
// g.Expect(len(vwhOutput)).To(BeNumerically(">", 10))
286+
// }
287+
// Eventually(verifyCAInjection).Should(Succeed())
288+
//})
289+
290+
//It("should have CA injection for WMS conversion webhook", func() {
291+
// By("checking CA injection for WMS conversion webhook")
292+
// verifyCAInjection := func(g Gomega) {
293+
// cmd := exec.Command("kubectl", "get",
294+
// "customresourcedefinitions.apiextensions.k8s.io",
295+
// "wms..pdok.nl",
296+
// "-o", "go-template={{ .spec.conversion.webhook.clientConfig.caBundle }}")
297+
// vwhOutput, err := utils.Run(cmd)
298+
// g.Expect(err).NotTo(HaveOccurred())
299+
// g.Expect(len(vwhOutput)).To(BeNumerically(">", 10))
300+
// }
301+
// Eventually(verifyCAInjection).Should(Succeed())
302+
//})
303+
//
304+
//It("should have CA injection for validating webhooks", func() {
305+
// By("checking CA injection for validating webhooks")
306+
// verifyCAInjection := func(g Gomega) {
307+
// cmd := exec.Command("kubectl", "get",
308+
// "validatingwebhookconfigurations.admissionregistration.k8s.io",
309+
// "mapserver-operator-validating-webhook-configuration",
310+
// "-o", "go-template={{ range .webhooks }}{{ .clientConfig.caBundle }}{{ end }}")
311+
// vwhOutput, err := utils.Run(cmd)
312+
// g.Expect(err).NotTo(HaveOccurred())
313+
// g.Expect(len(vwhOutput)).To(BeNumerically(">", 10))
314+
// }
315+
// Eventually(verifyCAInjection).Should(Succeed())
316+
//})
317317

318318
// +kubebuilder:scaffold:e2e-webhooks-checks
319319

0 commit comments

Comments
 (0)