summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-16 09:35:58 +0000
committerGitHub <noreply@github.com>2021-08-16 09:35:58 +0000
commita38d7530dbe7d39cb76c16b2b44f96f870223fca (patch)
tree8535633b4763fad35de62164c34d6d00c8e582f6 /test
parent5592ac9e236191da654619d1c8505420187766b4 (diff)
parent257d5e8a734a84aba305cea21d603c7755834ed8 (diff)
downloadpodman-a38d7530dbe7d39cb76c16b2b44f96f870223fca.tar.gz
podman-a38d7530dbe7d39cb76c16b2b44f96f870223fca.tar.bz2
podman-a38d7530dbe7d39cb76c16b2b44f96f870223fca.zip
Merge pull request #11228 from mlegenovic/main
Fixed healthcheck default values when container created via compat API
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/20-containers.at11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index 610d3e36d..e2eb94233 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -356,3 +356,14 @@ t GET containers/$cid/json 200 \
.HostConfig.NetworkMode="bridge"
t DELETE containers/$cid?v=true 204
+
+# Test Compat Create with healthcheck, check default values
+t POST containers/create Image=$IMAGE Cmd='["top"]' Healthcheck='{"Test":["true"]}' 201 \
+ .Id~[0-9a-f]\\{64\\}
+cid=$(jq -r '.Id' <<<"$output")
+t GET containers/$cid/json 200 \
+ .Config.Healthcheck.Interval=30000000000 \
+ .Config.Healthcheck.Timeout=30000000000 \
+ .Config.Healthcheck.Retries=3
+
+t DELETE containers/$cid?v=true 204