summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAditya R <arajan@redhat.com>2022-04-20 16:12:41 +0530
committerAditya R <arajan@redhat.com>2022-04-20 16:12:45 +0530
commit519535daa0e5c4ce27a77cea0fb24d87f6ee8c54 (patch)
tree98a4c53a2b4b535be9ed729a2ea54df6be17c8d7 /test
parentbc8d8737b760a1f42a9208c6067d2e163817d5f0 (diff)
downloadpodman-519535daa0e5c4ce27a77cea0fb24d87f6ee8c54.tar.gz
podman-519535daa0e5c4ce27a77cea0fb24d87f6ee8c54.tar.bz2
podman-519535daa0e5c4ce27a77cea0fb24d87f6ee8c54.zip
healthcheck: set default healthcheck Interval if not specified in image
Set appropriate defaults for `--interval` when processing a Containerfile with build format as docker. Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/healthcheck_run_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/e2e/healthcheck_run_test.go b/test/e2e/healthcheck_run_test.go
index 757eaed20..23f1a1dbf 100644
--- a/test/e2e/healthcheck_run_test.go
+++ b/test/e2e/healthcheck_run_test.go
@@ -325,6 +325,8 @@ HEALTHCHECK CMD ls -l / 2>&1`, ALPINE)
inspect := podmanTest.InspectContainer("hctest")
// Check to make sure a default time value was added
Expect(inspect[0].Config.Healthcheck.Timeout).To(BeNumerically("==", 30000000000))
+ // Check to make sure a default time interval value was added
+ Expect(inspect[0].Config.Healthcheck.Interval).To(BeNumerically("==", 30000000000))
// Check to make sure characters were not coerced to utf8
Expect(inspect[0].Config.Healthcheck.Test).To(Equal([]string{"CMD-SHELL", "ls -l / 2>&1"}))
})