summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-23 12:21:55 -0500
committerGitHub <noreply@github.com>2020-02-23 12:21:55 -0500
commiteef9875a6133d4cbf4e6f63771dd86045f071f7d (patch)
tree46c50c1a5b85e6f558bdd82f13b934ed802bfb60 /test
parent9fd01e19458bd8c8281663bdb504f02aa3a92e3b (diff)
parent0184714a82696feec33b383bfd98875712173e6e (diff)
downloadpodman-eef9875a6133d4cbf4e6f63771dd86045f071f7d.tar.gz
podman-eef9875a6133d4cbf4e6f63771dd86045f071f7d.tar.bz2
podman-eef9875a6133d4cbf4e6f63771dd86045f071f7d.zip
Merge pull request #5300 from baude/disablehealth
Add --no-healthcheck command to create/run
Diffstat (limited to 'test')
-rw-r--r--test/e2e/healthcheck_run_test.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/e2e/healthcheck_run_test.go b/test/e2e/healthcheck_run_test.go
index 7633261e3..19a8658ac 100644
--- a/test/e2e/healthcheck_run_test.go
+++ b/test/e2e/healthcheck_run_test.go
@@ -41,6 +41,26 @@ var _ = Describe("Podman healthcheck run", func() {
Expect(session).To(ExitWithError())
})
+ It("podman disable healthcheck with --no-healthcheck on valid container", func() {
+ SkipIfRemote()
+ session := podmanTest.Podman([]string{"run", "-dt", "--no-healthcheck", "--name", "hc", healthcheck})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ hc := podmanTest.Podman([]string{"healthcheck", "run", "hc"})
+ hc.WaitWithDefaultTimeout()
+ Expect(hc.ExitCode()).To(Equal(125))
+ })
+
+ It("podman disable healthcheck with --health-cmd=none on valid container", func() {
+ SkipIfRemote()
+ session := podmanTest.Podman([]string{"run", "-dt", "--health-cmd", "none", "--name", "hc", healthcheck})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ hc := podmanTest.Podman([]string{"healthcheck", "run", "hc"})
+ hc.WaitWithDefaultTimeout()
+ Expect(hc.ExitCode()).To(Equal(125))
+ })
+
It("podman healthcheck on valid container", func() {
Skip("Extremely consistent flake - re-enable on debugging")
session := podmanTest.Podman([]string{"run", "-dt", "--name", "hc", healthcheck})