summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2021-05-07 20:35:03 +0200
committerMatej Vasek <mvasek@redhat.com>2021-05-07 20:35:03 +0200
commitc8deab8296ea1267d78a8ada45c3cfdc45fa207a (patch)
treef759785789b72991146a80592856fc04603b4893 /test/apiv2
parent0ce6a65b3961465593470c3457d75b0a846c8d98 (diff)
downloadpodman-c8deab8296ea1267d78a8ada45c3cfdc45fa207a.tar.gz
podman-c8deab8296ea1267d78a8ada45c3cfdc45fa207a.tar.bz2
podman-c8deab8296ea1267d78a8ada45c3cfdc45fa207a.zip
fix: compat API "images/get" for multiple images
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/10-images.at10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at
index 53702fa0a..037a4c01f 100644
--- a/test/apiv2/10-images.at
+++ b/test/apiv2/10-images.at
@@ -143,12 +143,8 @@ t DELETE libpod/images/test1:latest 200
t GET "images/get?names=alpine" 200 '[POSIX tar archive]'
podman pull busybox
-#t GET "images/get?names=alpine&names=busybox" 200 '[POSIX tar archive]'
-#img_cnt=$(tar xf "$WORKDIR/curl.result.out" manifest.json -O | jq "length")
-#is "$img_cnt" 2 "number of images in tar archive"
-# TODO getting multiple images is not supported yet
-# once it is supported replace the test below by the tests above
-t GET "images/get?names=alpine&names=busybox" 501 \
- .cause="getting multiple image is not supported yet"
+t GET "images/get?names=alpine&names=busybox" 200 '[POSIX tar archive]'
+img_cnt=$(tar xf "$WORKDIR/curl.result.out" manifest.json -O | jq "length")
+is "$img_cnt" 2 "number of images in tar archive"
# vim: filetype=sh