From af6a43fa494bd3152c000d4e03e43f091c742d48 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Wed, 19 Jan 2022 09:33:34 +0100 Subject: apiv2 test: add regression test for #12904 Add a regression test for issue #12904 to make sure that attaching with logs=true to the compact endpoint does not blow up. Note that I did not find a way to test the output (i.e., '123'); logs are sent in a binary format and I did not find a way to compare the control characters. Signed-off-by: Valentin Rothberg --- test/apiv2/20-containers.at | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/apiv2') diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at index 72003984f..e6d49ac25 100644 --- a/test/apiv2/20-containers.at +++ b/test/apiv2/20-containers.at @@ -18,6 +18,11 @@ podman rm -a -f &>/dev/null t GET "libpod/containers/json (at start: clean slate)" 200 length=0 +# Regression test for #12904 +podman run --rm -d --replace --name foo $IMAGE sh -c "echo 123;sleep 42" +t POST "containers/foo/attach?logs=true&stream=false" 200 +t POST "containers/foo/kill" 204 + podman run -v /tmp:/tmp $IMAGE true t GET libpod/containers/json 200 length=0 -- cgit v1.2.3-54-g00ecf