mirror of
https://github.com/containers/podman.git
synced 2025-12-15 19:49:29 +08:00
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 <rothberg@redhat.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user