From 39bdc1becf9b2ba96e697f7918313e20a2417ed0 Mon Sep 17 00:00:00 2001 From: Swati Sehgal Date: Thu, 4 Apr 2024 16:40:08 +0100 Subject: [PATCH] Expose curl version for debuggability Signed-off-by: Swati Sehgal --- test/e2e/rte/metrics.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/rte/metrics.go b/test/e2e/rte/metrics.go index c514d409..8e2bf491 100644 --- a/test/e2e/rte/metrics.go +++ b/test/e2e/rte/metrics.go @@ -123,7 +123,7 @@ var _ = ginkgo.Describe("[RTE][Monitoring] metrics", func() { } rteContainerName, err := e2ertepod.FindRTEContainerName(rtePod) gomega.Expect(err).ToNot(gomega.HaveOccurred()) - cmd := []string{"curl", "-k", "-L", fmt.Sprintf("https://%s:%d/metrics", MetricsAddress, metricsPort)} + cmd := []string{"curl", "-v", "-k", "-L", fmt.Sprintf("https://%s:%d/metrics", MetricsAddress, metricsPort)} key := client.ObjectKeyFromObject(rtePod) klog.Infof("executing cmd: %s on pod %q", cmd, key.String()) var stdout, stderr []byte @@ -142,7 +142,7 @@ var _ = ginkgo.Describe("[RTE][Monitoring] metrics", func() { } rteContainerName, err := e2ertepod.FindRTEContainerName(rtePod) gomega.Expect(err).ToNot(gomega.HaveOccurred()) - cmd := []string{"curl", "-L", fmt.Sprintf("https://%s:%d/metrics", MetricsAddress, metricsPort)} + cmd := []string{"curl", "-v", "-L", fmt.Sprintf("https://%s:%d/metrics", MetricsAddress, metricsPort)} key := client.ObjectKeyFromObject(rtePod) klog.Infof("executing cmd: %s on pod %q", cmd, key.String()) var stdout, stderr []byte @@ -176,7 +176,7 @@ var _ = ginkgo.Describe("[RTE][Monitoring] metrics", func() { rteContainerName, err := e2ertepod.FindRTEContainerName(rtePod) gomega.Expect(err).ToNot(gomega.HaveOccurred()) - cmd := []string{"curl", "-L", fmt.Sprintf("https://%s:%d/metrics", MetricsAddress, metricsPort)} + cmd := []string{"curl", "-v", "-L", fmt.Sprintf("https://%s:%d/metrics", MetricsAddress, metricsPort)} key := client.ObjectKeyFromObject(rtePod) klog.Infof("executing cmd: %s on pod %q", cmd, key.String()) var stdout, stderr []byte