Skip to content

Commit

Permalink
test(e2e): add debug info to gateway api test (#9970)
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
  • Loading branch information
jakubdyszkiewicz authored Apr 17, 2024
1 parent bf8d964 commit 286ab3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/e2e_env/kubernetes/gateway/gatewayapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ spec:
address = net.JoinHostPort(GatewayIP(gatewayName), "10080")
Expect(WaitPodsAvailable(namespace, gatewayName)(kubernetes.Cluster)).To(Succeed())
})
AfterAll(func() {
// debug information to track "could not get a LoadBalancer IP of the Gateway" flake.
Expect(k8s.RunKubectlE(kubernetes.Cluster.GetTesting(), kubernetes.Cluster.GetKubectlOptions(namespace), "get", "gateway", "-oyaml")).To(Succeed())
Expect(k8s.RunKubectlE(kubernetes.Cluster.GetTesting(), kubernetes.Cluster.GetKubectlOptions(namespace), "get", "service", "-oyaml")).To(Succeed())
Expect(k8s.RunKubectlE(kubernetes.Cluster.GetTesting(), kubernetes.Cluster.GetKubectlOptions(namespace), "get", "pods", "-oyaml")).To(Succeed())
})
E2EAfterAll(func() {
Expect(k8s.RunKubectlE(kubernetes.Cluster.GetTesting(), kubernetes.Cluster.GetKubectlOptions(namespace), "delete", "gateway", gatewayName)).To(Succeed())
})
Expand Down

0 comments on commit 286ab3b

Please sign in to comment.