summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2021-11-01 16:10:10 +0100
committerMatej Vasek <mvasek@redhat.com>2021-11-01 16:53:49 +0100
commit218d91d76d49c7329704a80411ad2c115b074f84 (patch)
tree8ef32d6ae77b05866d0eb88ff251477f07f359a1 /test/apiv2
parent85bad0cc7c68b71ab7ddb6ed09b862145c6c6d0e (diff)
downloadpodman-218d91d76d49c7329704a80411ad2c115b074f84.tar.gz
podman-218d91d76d49c7329704a80411ad2c115b074f84.tar.bz2
podman-218d91d76d49c7329704a80411ad2c115b074f84.zip
Fix libpod API conformance to swagger
* Return empty array when nothing has been pruned. * Use correct return type swagger doc-comment. Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/10-images.at3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at
index d3fde9f9d..b7bcaf81d 100644
--- a/test/apiv2/10-images.at
+++ b/test/apiv2/10-images.at
@@ -218,6 +218,9 @@ if ! grep -q '400 Bad Request' "${TMPD}/headers.txt"; then
BUILD_TEST_ERROR="1"
fi
+t POST libpod/images/prune 200
+t POST libpod/images/prune 200 length=0 []
+
cleanBuildTest
if [[ "${BUILD_TEST_ERROR}" ]]; then
exit 1