From 756fc5db53bce165cf2020989a60ea4244281a67 Mon Sep 17 00:00:00 2001 From: Olivia Song Date: Wed, 29 May 2024 22:20:12 -0700 Subject: [PATCH] update the traffic test for ingress (#3725) * update the traffic test for ingress * make crds --- config/webhook/manifests.yaml | 1 + test/e2e/ingress/vanilla_ingress_test.go | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/config/webhook/manifests.yaml b/config/webhook/manifests.yaml index 1493d5386..0b1a24bfe 100644 --- a/config/webhook/manifests.yaml +++ b/config/webhook/manifests.yaml @@ -1,3 +1,4 @@ +--- apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: diff --git a/test/e2e/ingress/vanilla_ingress_test.go b/test/e2e/ingress/vanilla_ingress_test.go index d83bde27f..063ba4be0 100644 --- a/test/e2e/ingress/vanilla_ingress_test.go +++ b/test/e2e/ingress/vanilla_ingress_test.go @@ -766,10 +766,15 @@ var _ = Describe("vanilla ingress tests", func() { // test traffic ExpectLBDNSBeAvailable(ctx, tf, lbARN, lbDNS) - httpExp := httpexpect.New(tf.LoggerReporter, fmt.Sprintf("http://%v", lbDNS)) - httpExp.GET("/path").Expect(). - Status(http.StatusOK). - Body().Equal("Hello World!") + + //TODO: update the traffic test for dualstack-without-public-ipv4 ALB + // as it may need additional setup compared to dualstack ALB + if annotation["alb.ingress.kubernetes.io/ip-address-type"] != "dualstack-without-public-ipv4" { + httpExp := httpexpect.New(tf.LoggerReporter, fmt.Sprintf("http://%v", lbDNS)) + httpExp.GET("/path").Expect(). + Status(http.StatusOK). + Body().Equal("Hello World!") + } }) }) })