diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-27 14:21:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-27 14:21:59 -0800 |
commit | 326cdf944daae40ec83decf38ed1477e806cd846 (patch) | |
tree | 3f2c6a1bc53d3f640c26ed53ed3ed7388d474ba4 /test | |
parent | 33d41a35e5fbac4b674f66f3a2d537fc9e484514 (diff) | |
parent | 6181faa90de3a166004cca4fb6a8d85c17cbfe53 (diff) | |
download | podman-326cdf944daae40ec83decf38ed1477e806cd846.tar.gz podman-326cdf944daae40ec83decf38ed1477e806cd846.tar.bz2 podman-326cdf944daae40ec83decf38ed1477e806cd846.zip |
Merge pull request #4986 from baude/showhconimage
inspect image healthchecks
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/inspect_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/e2e/inspect_test.go b/test/e2e/inspect_test.go index 9d23384ea..ebac087ac 100644 --- a/test/e2e/inspect_test.go +++ b/test/e2e/inspect_test.go @@ -164,4 +164,17 @@ var _ = Describe("Podman inspect", func() { Expect(inspectDst.ExitCode()).To(Equal(0)) Expect(inspectDst.OutputToString()).To(Equal("/test1")) }) + + It("podman inspect shows healthcheck on docker image", func() { + pull := podmanTest.Podman([]string{"pull", healthcheck}) + pull.WaitWithDefaultTimeout() + Expect(pull.ExitCode()).To(BeZero()) + + session := podmanTest.Podman([]string{"inspect", "--format=json", healthcheck}) + session.WaitWithDefaultTimeout() + imageData := session.InspectImageJSON() + Expect(imageData[0].HealthCheck.Timeout).To(BeNumerically("==", 3000000000)) + Expect(imageData[0].HealthCheck.Interval).To(BeNumerically("==", 60000000000)) + Expect(imageData[0].HealthCheck.Test).To(Equal([]string{"CMD-SHELL", "curl -f http://localhost/ || exit 1"})) + }) }) |