diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-12-02 13:25:54 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-12-06 15:47:04 -0500 |
commit | d9527638845d6eb756885e858a7c27670b8ca687 (patch) | |
tree | 4912a70cf10b942b6e5698cb89b6936555e44166 /test | |
parent | 658d133390120105cf673cd7dfe5d3436be29d38 (diff) | |
download | podman-d9527638845d6eb756885e858a7c27670b8ca687.tar.gz podman-d9527638845d6eb756885e858a7c27670b8ca687.tar.bz2 podman-d9527638845d6eb756885e858a7c27670b8ca687.zip |
compat: images/json
Do not list manifest lists. Docker doesn't either.
Fixes: #12453
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/10-images.at | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at index d3fde9f9d..ec32ffb59 100644 --- a/test/apiv2/10-images.at +++ b/test/apiv2/10-images.at @@ -10,6 +10,13 @@ t GET libpod/images/json 200 \ .[0].Id~[0-9a-f]\\{64\\} iid=$(jq -r '.[0].Id' <<<"$output") +# Create an empty manifest and make sure it is not listed +# in the compat endpoint. +t GET images/json 200 length=1 +podman manifest create foo +t GET images/json 200 length=1 +t GET libpod/images/json 200 length=2 + t GET libpod/images/$iid/exists 204 t GET libpod/images/$PODMAN_TEST_IMAGE_NAME/exists 204 t GET libpod/images/${iid}abcdef/exists 404 \ |