diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-04-26 08:36:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 08:36:36 -0400 |
commit | b3416d3292691788097389b8f41a632c56a926fa (patch) | |
tree | 202cc2bb1b8d2600f24221ee1102a23d7d3e5c5d /test/e2e/common_test.go | |
parent | 9db22fb58abda8ccaf9fe68490d8c8f9a8dc994f (diff) | |
parent | ee9d755c5b86ef996a7896f09e6e91ee5e488af7 (diff) | |
download | podman-b3416d3292691788097389b8f41a632c56a926fa.tar.gz podman-b3416d3292691788097389b8f41a632c56a926fa.tar.bz2 podman-b3416d3292691788097389b8f41a632c56a926fa.zip |
Merge pull request #13791 from edsantiago/curl_dash_f
Robustify nginx tests
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r-- | test/e2e/common_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go index 766f39964..6846a5677 100644 --- a/test/e2e/common_test.go +++ b/test/e2e/common_test.go @@ -462,7 +462,8 @@ func (p *PodmanTestIntegration) RunNginxWithHealthCheck(name string) (*PodmanSes if name != "" { podmanArgs = append(podmanArgs, "--name", name) } - podmanArgs = append(podmanArgs, "-dt", "-P", "--health-cmd", "curl http://localhost/", nginx) + // curl without -f exits 0 even if http code >= 400! + podmanArgs = append(podmanArgs, "-dt", "-P", "--health-cmd", "curl -f http://localhost/", nginx) session := p.Podman(podmanArgs) session.WaitWithDefaultTimeout() return session, session.OutputToString() |