summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOliver <oliver.thallmair@mailbox.org>2021-12-26 15:21:08 +0100
committerOliver Thallmair <oliver.thallmair@mailbox.org>2021-12-29 00:26:12 +0100
commita2687783d447183a7ab0c97023b87e9731cc7fe9 (patch)
treeb966e5638c0c8a615e9f4ca9cf0520b50fd39e21 /test
parent73a54ea54d0a1b4ccaa2a0e23c678e5b7c1d5c37 (diff)
downloadpodman-a2687783d447183a7ab0c97023b87e9731cc7fe9.tar.gz
podman-a2687783d447183a7ab0c97023b87e9731cc7fe9.tar.bz2
podman-a2687783d447183a7ab0c97023b87e9731cc7fe9.zip
prefix imageId with sha256: in containers list
test for compat API ImageId Signed-off-by: Oliver Thallmair <oliver.thallmair@mailbox.org>
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/20-containers.at4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index e931ceebe..5a02ca3cb 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -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 \