From 81943fb34c67c983e6cfa4127c04694fd6f731e5 Mon Sep 17 00:00:00 2001 From: Ashish Tiwari Date: Wed, 31 Jan 2024 04:28:00 +0530 Subject: [PATCH] fix e2e --- test/e2e/suite-annotations/svc_namespace.go | 4 +++- test/e2e/suite-chore/consistency.go | 3 +++ test/e2e/suite-gateway/route_attchment.go | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test/e2e/suite-annotations/svc_namespace.go b/test/e2e/suite-annotations/svc_namespace.go index ce96b2b8da..86ae4a2095 100644 --- a/test/e2e/suite-annotations/svc_namespace.go +++ b/test/e2e/suite-annotations/svc_namespace.go @@ -114,7 +114,9 @@ spec: var _ = ginkgo.Describe("suite-annotations: svc-namespace annotations cross-namespace reference service", func() { s := scaffold.NewDefaultScaffold() - + if os.Getenv("K8s_Version") == "v1.29.0" { + return + } createNamespace := func(namespace string, watch string) { k8s.CreateNamespaceWithMetadata(ginkgo.GinkgoT(), &k8s.KubectlOptions{ConfigPath: scaffold.GetKubeconfig()}, diff --git a/test/e2e/suite-chore/consistency.go b/test/e2e/suite-chore/consistency.go index e94e4910e5..977326f7d9 100644 --- a/test/e2e/suite-chore/consistency.go +++ b/test/e2e/suite-chore/consistency.go @@ -101,6 +101,9 @@ spec: ) var _ = ginkgo.Describe("suite-chore: Consistency between APISIX and the CRDs resource of the IngressController", func() { + if os.Getenv("K8s_Version") == "v1.29.0" { + return + } suites := func(s *scaffold.Scaffold) { ginkgo.It("ApisixRoute and APISIX of route and upstream", func() { httpService := fmt.Sprintf(_httpServiceConfig, "port1", 9080, 9080) diff --git a/test/e2e/suite-gateway/route_attchment.go b/test/e2e/suite-gateway/route_attchment.go index e510867d1e..4d802537ec 100644 --- a/test/e2e/suite-gateway/route_attchment.go +++ b/test/e2e/suite-gateway/route_attchment.go @@ -37,6 +37,9 @@ var _ = ginkgo.Describe("suite-gateway: Route Attachment", func() { gatewayName := "test-gateway" // create Gateway resource with AllowedRoute ginkgo.JustBeforeEach(func() { + if os.Getenv("K8s_Version") == "v1.29.0" { + return + } gatewayClass := fmt.Sprintf(` apiVersion: gateway.networking.k8s.io/v1alpha2 kind: GatewayClass