From 257d5e8a734a84aba305cea21d603c7755834ed8 Mon Sep 17 00:00:00 2001 From: Milivoje Legenovic Date: Sat, 14 Aug 2021 13:10:28 +0200 Subject: Fixed healthcheck default values when container created via compat API Fixes #11225 Signed-off-by: Milivoje Legenovic --- test/apiv2/20-containers.at | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/apiv2') 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 -- cgit v1.2.3-54-g00ecf