aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ertel <jason.ertel@securityonionsolutions.com>2022-08-29 14:10:33 -0400
committerMatthew Heon <mheon@redhat.com>2022-09-06 14:55:22 -0400
commit8634f55c75fff451d1190df01b74f9522aa5b6cf (patch)
treefed484889d37692cd3d8c0da5481fe3c9cd35ec4
parent54a9e24488a455e8b338d49719bc1c514697445e (diff)
downloadpodman-8634f55c75fff451d1190df01b74f9522aa5b6cf.tar.gz
podman-8634f55c75fff451d1190df01b74f9522aa5b6cf.tar.bz2
podman-8634f55c75fff451d1190df01b74f9522aa5b6cf.zip
updated apiv2 tests to reflect hash compat fix
Signed-off-by: Jason Ertel <jason.ertel@securityonionsolutions.com>
-rw-r--r--test/apiv2/20-containers.at4
-rw-r--r--test/apiv2/70-short-names.at2
2 files changed, 4 insertions, 2 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index a8d9baef3..c1636a2d3 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -309,7 +309,9 @@ t POST containers/create Image=${MultiTagName} 201 \
.Id~[0-9a-f]\\{64\\}
cid=$(jq -r '.Id' <<<"$output")
t GET containers/$cid/json 200 \
- .Image=${MultiTagName}
+ .Config.Image=${MultiTagName} \
+ .Image~sha256:[0-9a-f]\\{64\\}
+
t DELETE containers/$cid 204
t DELETE images/${MultiTagName} 200
# vim: filetype=sh
diff --git a/test/apiv2/70-short-names.at b/test/apiv2/70-short-names.at
index bd7f8e7bd..643cbc25b 100644
--- a/test/apiv2/70-short-names.at
+++ b/test/apiv2/70-short-names.at
@@ -9,7 +9,7 @@ t POST "images/create?fromImage=quay.io/libpod/alpine:latest" 200 .error~null .s
# 14291 - let a short-name resolve to a *local* non Docker-Hub image.
t POST containers/create Image=alpine 201 .Id~[0-9a-f]\\{64\\}
cid=$(jq -r '.Id' <<<"$output")
-t GET containers/$cid/json 200 .Image="quay.io/libpod/alpine:latest"
+t GET containers/$cid/json 200 .Config.Image="quay.io/libpod/alpine:latest" .Image~sha256:[0-9a-f]\\{64\\}
podman rm -f $cid
########## TAG