prefix imageId with sha256: in containers list

test for compat API ImageId

Signed-off-by: Oliver Thallmair <oliver.thallmair@mailbox.org>
This commit is contained in:
Oliver
2021-12-26 15:21:08 +01:00
committed by Oliver Thallmair
parent 73a54ea54d
commit a2687783d4
2 changed files with 5 additions and 1 deletions

View File

@@ -46,6 +46,10 @@ t GET /containers/json?all=true 200 \
.[0].Image=$IMAGE \
$network_expect
# compat API imageid with sha256: prefix
t GET containers/json?limit=1 200 \
.[0].ImageID~sha256:[0-9a-f]\\{64\\}
# Make sure `limit` works.
t GET libpod/containers/json?limit=1 200 \
length=1 \