Skip to content

Commit

Permalink
Show verbose curl output for debuggability
Browse files Browse the repository at this point in the history
Signed-off-by: Swati Sehgal <[email protected]>
  • Loading branch information
swatisehgal committed Apr 5, 2024
1 parent 835d46b commit 1042edc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/rte/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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("http://%s:%d/metrics", MetricsAddress, metricsPort)}
cmd := []string{"curl", "-v", "-L", fmt.Sprintf("http://%s:%d/metrics", MetricsAddress, metricsPort)}
key := client.ObjectKeyFromObject(rtePod)
klog.Infof("executing cmd: %s on pod %q", cmd, key.String())
var stdout, stderr []byte
Expand Down Expand Up @@ -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("http://%s:%d/metrics", MetricsAddress, metricsPort)}
cmd := []string{"curl", "-v", "-L", fmt.Sprintf("http://%s:%d/metrics", MetricsAddress, metricsPort)}
key := client.ObjectKeyFromObject(rtePod)
klog.Infof("executing cmd: %s on pod %q", cmd, key.String())
var stdout, stderr []byte
Expand Down

0 comments on commit 1042edc

Please sign in to comment.