From 1d1a06bd650e06bfb9d5e2f28035667c4516fc47 Mon Sep 17 00:00:00 2001 From: Maskym Vavilov Date: Thu, 4 Jan 2024 11:19:44 +0000 Subject: [PATCH] test --- test/e2e/gateway_single_spoke_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/e2e/gateway_single_spoke_test.go b/test/e2e/gateway_single_spoke_test.go index 184b1f2c..a86f14c7 100644 --- a/test/e2e/gateway_single_spoke_test.go +++ b/test/e2e/gateway_single_spoke_test.go @@ -368,14 +368,20 @@ var _ = Describe("Gateway single target cluster", func() { if gw.Spec.Listeners == nil { gw.Spec.Listeners = []gatewayapiv1.Listener{} } - AddListener("wildcard", testHostnameWildcard, gatewayapiv1.ObjectName(testHostname), gw) patch := client.MergeFrom(gw.DeepCopy()) + AddListener("wildcard", testHostnameWildcard, gatewayapiv1.ObjectName(testHostname), gw) err = tconfig.HubClient().Patch(ctx, gw, patch) + fmt.Printf("listeners len %d ; ", len(gw.Spec.Listeners)) + for _, listener := range gw.Spec.Listeners { + fmt.Printf("in loop listener name: %s ; ", listener.Name) + } + fmt.Println() Expect(err).ToNot(HaveOccurred()) Eventually(func(g Gomega, ctx SpecContext) { checkGateway := &gatewayapiv1.Gateway{} err = tconfig.HubClient().Get(ctx, client.ObjectKey{Name: testID, Namespace: tconfig.HubNamespace()}, checkGateway) g.Expect(err).ToNot(HaveOccurred()) + fmt.Printf("listener1 %s ; ", gw.Spec.Listeners[0].Name) g.Expect(len(checkGateway.Spec.Listeners)).To(Equal(2)) }).WithContext(ctx).WithTimeout(100 * time.Second).WithPolling(2 * time.Second).Should(Succeed()) }