diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2022-01-19 09:33:34 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2022-01-19 09:33:34 +0100 |
commit | af6a43fa494bd3152c000d4e03e43f091c742d48 (patch) | |
tree | 68c6e67e3bdc9cea81bf0e61ba7cdab124cae469 | |
parent | 094b11cbcb528a7d120c31402a1bcd9c82d84938 (diff) | |
download | podman-af6a43fa494bd3152c000d4e03e43f091c742d48.tar.gz podman-af6a43fa494bd3152c000d4e03e43f091c742d48.tar.bz2 podman-af6a43fa494bd3152c000d4e03e43f091c742d48.zip |
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>
-rw-r--r-- | test/apiv2/20-containers.at | 5 |
1 files changed, 5 insertions, 0 deletions
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 |