diff --git a/test/e2e/v2/e2e_suite.go b/test/e2e/v2/e2e_suite.go index 3d3d455e0d5..db0262ebf45 100644 --- a/test/e2e/v2/e2e_suite.go +++ b/test/e2e/v2/e2e_suite.go @@ -269,7 +269,7 @@ var _ = Describe("kubebuilder", func() { fmt.Sprintf("e2e-%s-mutating-webhook-configuration", kbc.TestSuffix), "-o", "go-template={{ range .webhooks }}{{ .clientConfig.caBundle }}{{ end }}") Expect(err).NotTo(HaveOccurred()) - // sanity check that ca should be long enough, because there may be a place holder "\n" + // check that ca should be long enough, because there may be a place holder "\n" Expect(len(mwhOutput)).To(BeNumerically(">", 10)) vwhOutput, err := kbc.Kubectl.Get( @@ -278,7 +278,7 @@ var _ = Describe("kubebuilder", func() { fmt.Sprintf("e2e-%s-validating-webhook-configuration", kbc.TestSuffix), "-o", "go-template={{ range .webhooks }}{{ .clientConfig.caBundle }}{{ end }}") Expect(err).NotTo(HaveOccurred()) - // sanity check that ca should be long enough, because there may be a place holder "\n" + // check that ca should be long enough, because there may be a place holder "\n" Expect(len(vwhOutput)).To(BeNumerically(">", 10)) return nil diff --git a/test/e2e/v3/e2e_suite.go b/test/e2e/v3/e2e_suite.go index d732477a336..c4825febfa8 100644 --- a/test/e2e/v3/e2e_suite.go +++ b/test/e2e/v3/e2e_suite.go @@ -269,7 +269,7 @@ var _ = Describe("kubebuilder", func() { fmt.Sprintf("e2e-%s-mutating-webhook-configuration", kbc.TestSuffix), "-o", "go-template={{ range .webhooks }}{{ .clientConfig.caBundle }}{{ end }}") Expect(err).NotTo(HaveOccurred()) - // sanity check that ca should be long enough, because there may be a place holder "\n" + // check that ca should be long enough, because there may be a place holder "\n" Expect(len(mwhOutput)).To(BeNumerically(">", 10)) vwhOutput, err := kbc.Kubectl.Get( @@ -278,7 +278,7 @@ var _ = Describe("kubebuilder", func() { fmt.Sprintf("e2e-%s-validating-webhook-configuration", kbc.TestSuffix), "-o", "go-template={{ range .webhooks }}{{ .clientConfig.caBundle }}{{ end }}") Expect(err).NotTo(HaveOccurred()) - // sanity check that ca should be long enough, because there may be a place holder "\n" + // check that ca should be long enough, because there may be a place holder "\n" Expect(len(vwhOutput)).To(BeNumerically(">", 10)) return nil