Skip to content

Commit

Permalink
Print the output from kubectl exec -it for retriving the health endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jordi Gil <[email protected]>
  • Loading branch information
jordigilh committed Jan 19, 2024
1 parent f30a71e commit 0af9418
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/e2e/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ func getHealthStatusInContainer(podName string, containerName string, namespace
h := health{}
cmd := exec.Command("kubectl", "exec", "-t", podName, "-n", namespace, "-c", containerName, "--", "curl", "-s", "localhost:8080/q/health")
output, err := utils.Run(cmd)
GinkgoWriter.Printf("%s\n", string(output))
Expect(err).NotTo(HaveOccurred())
err = json.Unmarshal(output, &h)
if err != nil {
Expand Down

0 comments on commit 0af9418

Please sign in to comment.