Merge pull request #2858 from giuseppe/rootless-enable-healthcheck

rootless: enable healthcheck
This commit is contained in:
OpenShift Merge Robot
2019-04-05 05:21:30 -07:00
committed by GitHub

View File

@ -42,7 +42,6 @@ var _ = Describe("Podman healthcheck run", func() {
}) })
It("podman healthcheck on valid container", func() { It("podman healthcheck on valid container", func() {
SkipIfRootless()
podmanTest.RestoreArtifact(healthcheck) podmanTest.RestoreArtifact(healthcheck)
session := podmanTest.Podman([]string{"run", "-dt", "--name", "hc", healthcheck}) session := podmanTest.Podman([]string{"run", "-dt", "--name", "hc", healthcheck})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
@ -135,7 +134,6 @@ var _ = Describe("Podman healthcheck run", func() {
}) })
It("podman healthcheck good check results in healthy even in start-period", func() { It("podman healthcheck good check results in healthy even in start-period", func() {
SkipIfRootless()
session := podmanTest.Podman([]string{"run", "-dt", "--name", "hc", "--healthcheck-start-period", "2m", "--healthcheck-retries", "2", "--healthcheck-command", "\"CMD-SHELL\" \"ls\" \"||\" \"exit\" \"1\"", ALPINE, "top"}) session := podmanTest.Podman([]string{"run", "-dt", "--name", "hc", "--healthcheck-start-period", "2m", "--healthcheck-retries", "2", "--healthcheck-command", "\"CMD-SHELL\" \"ls\" \"||\" \"exit\" \"1\"", ALPINE, "top"})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))
@ -149,7 +147,6 @@ var _ = Describe("Podman healthcheck run", func() {
}) })
It("podman healthcheck single healthy result changes failed to healthy", func() { It("podman healthcheck single healthy result changes failed to healthy", func() {
SkipIfRootless()
session := podmanTest.Podman([]string{"run", "-dt", "--name", "hc", "--healthcheck-retries", "2", "--healthcheck-command", "\"CMD-SHELL\" \"ls\" \"/foo\" \"||\" \"exit\" \"1\"", ALPINE, "top"}) session := podmanTest.Podman([]string{"run", "-dt", "--name", "hc", "--healthcheck-retries", "2", "--healthcheck-command", "\"CMD-SHELL\" \"ls\" \"/foo\" \"||\" \"exit\" \"1\"", ALPINE, "top"})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))