updated apiv2 tests to reflect hash compat fix

Signed-off-by: Jason Ertel <jason.ertel@securityonionsolutions.com>
This commit is contained in:
Jason Ertel
2022-08-29 14:10:33 -04:00
parent 6411f57e78
commit 08af95f635
2 changed files with 4 additions and 2 deletions

View File

@ -309,7 +309,9 @@ t POST containers/create Image=${MultiTagName} 201 \
.Id~[0-9a-f]\\{64\\} .Id~[0-9a-f]\\{64\\}
cid=$(jq -r '.Id' <<<"$output") cid=$(jq -r '.Id' <<<"$output")
t GET containers/$cid/json 200 \ t GET containers/$cid/json 200 \
.Image=${MultiTagName} .Config.Image=${MultiTagName} \
.Image~sha256:[0-9a-f]\\{64\\}
t DELETE containers/$cid 204 t DELETE containers/$cid 204
t DELETE images/${MultiTagName} 200 t DELETE images/${MultiTagName} 200
# vim: filetype=sh # vim: filetype=sh

View File

@ -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. # 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\\} t POST containers/create Image=alpine 201 .Id~[0-9a-f]\\{64\\}
cid=$(jq -r '.Id' <<<"$output") 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 podman rm -f $cid
########## TAG ########## TAG