summaryrefslogtreecommitdiff
path: root/test/apiv2/10-images.at
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-12 12:56:19 +0100
committerGitHub <noreply@github.com>2020-02-12 12:56:19 +0100
commit4f44a1a3a26f4cb82efc6a727586f721ebf505ca (patch)
tree297cc609f9b5d3af7fb1e2228b581bed8fceb1fe /test/apiv2/10-images.at
parentd0452ae6f3e3bd664ad45ef13ed5da1a8c09006b (diff)
parent0af16eb15b54726c2b16fe1ba936a943ded0a219 (diff)
downloadpodman-4f44a1a3a26f4cb82efc6a727586f721ebf505ca.tar.gz
podman-4f44a1a3a26f4cb82efc6a727586f721ebf505ca.tar.bz2
podman-4f44a1a3a26f4cb82efc6a727586f721ebf505ca.zip
Merge pull request #5165 from edsantiago/test_apiv2
API v2 tests: catch up to moving target
Diffstat (limited to 'test/apiv2/10-images.at')
-rw-r--r--test/apiv2/10-images.at6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at
index 243b35e9f..42ec028d0 100644
--- a/test/apiv2/10-images.at
+++ b/test/apiv2/10-images.at
@@ -6,9 +6,9 @@
# FIXME: API doesn't support pull yet, so use podman
podman pull -q $IMAGE
-# We want the SHA without the "sha256:" prefix
-full_iid=$(podman images --no-trunc --format '{{.ID}}' $IMAGE)
-iid=${full_iid##sha256:}
+t GET libpod/images/json 200 \
+ .[0].Id~[0-9a-f]\\{64\\}
+iid=$(jq -r '.[0].Id' <<<"$output")
t GET libpod/images/$iid/exists 204
t GET libpod/images/$PODMAN_TEST_IMAGE_NAME/exists 204