From 1d7e5227f874dc3d2511a73a6f3d69550e62b303 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 11 Jan 2021 11:34:23 +0100 Subject: image list: ignore bare manifest list Handle empty/bare manifest lists when listing images. Fixes: #8931 Signed-off-by: Valentin Rothberg --- test/system/010-images.bats | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') diff --git a/test/system/010-images.bats b/test/system/010-images.bats index 76caf282b..e7c88408e 100644 --- a/test/system/010-images.bats +++ b/test/system/010-images.bats @@ -228,4 +228,17 @@ Labels.created_at | 20[0-9-]\\\+T[0-9:]\\\+Z run_podman rmi ${aaa_name}:${aaa_tag} ${zzz_name}:${zzz_tag} } +# Regression test for #8931 +@test "podman images - bare manifest list" { + # Create an empty manifest list and list images. + + run_podman inspect --format '{{.ID}}' $IMAGE + iid=$output + + run_podman manifest create test:1.0 + run_podman images --format '{{.ID}}' --no-trunc + [[ "$output" == *"sha256:$iid"* ]] + + run_podman rmi test:1.0 +} # vim: filetype=sh -- cgit v1.2.3-54-g00ecf