From e78fdb7c3cedfdcfc6aa12afddbba7fa6473b2d8 Mon Sep 17 00:00:00 2001 From: Tushar Verma Date: Sun, 23 Aug 2026 23:28:00 +0530 Subject: [PATCH] test/apiv2: build healthcheck image as docker The healthcheck inherit tests build their image with the default oci format, which drops HEALTHCHECK. The build only warns about it and the test sends that to /dev/null, so the image has no health config, there is nothing to inherit and all 21 assertions come back null. Fixes: 16a1d3fbe9 ("support healthcheck: {} inherits healthcheck from image") Signed-off-by: Tushar Verma --- test/apiv2/20-containers.at | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at index 3a1f386ac1..d64e8bcacc 100644 --- a/test/apiv2/20-containers.at +++ b/test/apiv2/20-containers.at @@ -645,7 +645,8 @@ cat >$HEALTHCHECK_INHERIT_TMPD/Dockerfile </dev/null +# HEALTHCHECK is only recorded in the docker image format, the oci default drops it +podman build --format docker -t healthcheck_inherit $HEALTHCHECK_INHERIT_TMPD &>/dev/null # empty Test inherits the image healthcheck unchanged (all fields preserved) t POST containers/create Image=healthcheck_inherit Cmd='["top"]' Healthcheck='{"Test":[]}' 201 \