diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-07 12:28:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 12:28:26 -0400 |
commit | 0ce6a65b3961465593470c3457d75b0a846c8d98 (patch) | |
tree | 4564ec30273c56cdd0607ca70635f2a627f0ff51 /test | |
parent | 5616887f62b4bed1031cdade8bd602bc2cb9d8f4 (diff) | |
parent | 766659917f9b0b47c722d0c08707841bd1c649ae (diff) | |
download | podman-0ce6a65b3961465593470c3457d75b0a846c8d98.tar.gz podman-0ce6a65b3961465593470c3457d75b0a846c8d98.tar.bz2 podman-0ce6a65b3961465593470c3457d75b0a846c8d98.zip |
Merge pull request #10230 from matejvasek/fix-compat-img-get
fix: docker APIv2 `images/get`
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/10-images.at | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at index a08393668..53702fa0a 100644 --- a/test/apiv2/10-images.at +++ b/test/apiv2/10-images.at @@ -140,16 +140,15 @@ t GET images/json?filters='{"reference":["test1"]}' 200 length=1 t DELETE libpod/images/test1:latest 200 -# Export more than one image -# FIXME FIXME FIXME, this doesn't work: -# not ok 64 [10-images] GET images/get?names=alpine,busybox : status -# expected: 200 -# actual: 500 -# expected: 200 -# not ok 65 [10-images] GET images/get?names=alpine,busybox : output - # expected: [POSIX tar archive] -# actual: {"cause":"no such image","message":"unable to find a name and tag match for busybox in repotags: no such image","response":500} -# -#t GET images/get?names=alpine,busybox 200 '[POSIX tar archive]' +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" # vim: filetype=sh |