mirror of
https://github.com/containers/podman
synced 2024-10-18 08:13:32 +00:00
APIv2 test fix: image history
I'm assuming this was buildah#5595: the COMMENT field moved around. Deal with it, and add a few more checks while we're at it. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
parent
67e39c1ec5
commit
fe96c843bf
|
@ -85,19 +85,45 @@ t GET libpod/images/nonesuch/history 404
|
|||
for i in $iid ${iid:0:12} $PODMAN_TEST_IMAGE_NAME:$PODMAN_TEST_IMAGE_TAG; do
|
||||
t GET libpod/images/$i/history 200 \
|
||||
.[0].Id=$iid \
|
||||
.[1].Id="<missing>" \
|
||||
.[2].Id="<missing>" \
|
||||
.[3].Id="<missing>" \
|
||||
.[0].Created~[0-9]\\{10\\} \
|
||||
.[0].Tags[0]="$IMAGE" \
|
||||
.[0].Size=1024 \
|
||||
.[0].Comment="FROM localhost/interim-image:latest"
|
||||
.[1].Size=0 \
|
||||
.[2].Size=0 \
|
||||
.[3].Size=0 \
|
||||
.[0].Comment="" \
|
||||
.[1].Comment="" \
|
||||
.[2].Comment="" \
|
||||
.[3].Comment="FROM localhost/interim-image:latest" \
|
||||
.[0].CreatedBy~".*/echo.*This container is intended for podman CI testing.*" \
|
||||
.[1].CreatedBy~".* WORKDIR /home/podman" \
|
||||
.[2].CreatedBy~".* LABEL created_at=.*" \
|
||||
.[3].CreatedBy~".* LABEL created_by=test/system/build-testimage"
|
||||
done
|
||||
|
||||
for i in $iid ${iid:0:12} $PODMAN_TEST_IMAGE_NAME:$PODMAN_TEST_IMAGE_TAG; do
|
||||
t GET images/$i/history 200 \
|
||||
.[0].Id="sha256:"$iid \
|
||||
.[0].Id="sha256:$iid" \
|
||||
.[1].Id="sha256:<missing>" \
|
||||
.[2].Id="sha256:<missing>" \
|
||||
.[3].Id="sha256:<missing>" \
|
||||
.[0].Created~[0-9]\\{10\\} \
|
||||
.[0].Tags[0]="$IMAGE" \
|
||||
.[0].Size=1024 \
|
||||
.[0].Comment="FROM localhost/interim-image:latest"
|
||||
.[1].Size=0 \
|
||||
.[2].Size=0 \
|
||||
.[3].Size=0 \
|
||||
.[0].Comment="" \
|
||||
.[1].Comment="" \
|
||||
.[2].Comment="" \
|
||||
.[3].Comment="FROM localhost/interim-image:latest" \
|
||||
.[0].CreatedBy~".*/echo.*This container is intended for podman CI testing.*" \
|
||||
.[1].CreatedBy~".* WORKDIR /home/podman" \
|
||||
.[2].CreatedBy~".* LABEL created_at=.*" \
|
||||
.[3].CreatedBy~".* LABEL created_by=test/system/build-testimage"
|
||||
done
|
||||
|
||||
# compat api pull image unauthorized message error
|
||||
|
|
|
@ -213,7 +213,7 @@ iid=$(jq -r '.Id' <<<"$output")
|
|||
t GET libpod/images/$iid/json 200 \
|
||||
.RepoTags[0]=null \
|
||||
.Author="" \
|
||||
.Comment=""
|
||||
.Comment~"FROM docker\.io/.*"
|
||||
|
||||
# Commit a new image w/o tag
|
||||
cparam="repo=newrepo&comment=foo&author=bob&format=docker"
|
||||
|
|
Loading…
Reference in a new issue