diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-07 14:25:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-07 14:25:52 -0500 |
commit | b7c00f2cc03499d5d385a7aa7e8cd35d0ab994d7 (patch) | |
tree | 34c26d2853a0f231cb93d0b451326f894ae986d0 /test/apiv2/12-imagesMore.at | |
parent | 4174b06a4b45b94cdd35a1f4b4d142266cd9cb78 (diff) | |
parent | 9fc29f63e0dedea0dbe03e5baf012b6bf5ab51b9 (diff) | |
download | podman-b7c00f2cc03499d5d385a7aa7e8cd35d0ab994d7.tar.gz podman-b7c00f2cc03499d5d385a7aa7e8cd35d0ab994d7.tar.bz2 podman-b7c00f2cc03499d5d385a7aa7e8cd35d0ab994d7.zip |
Merge pull request #9647 from mlegenovic/master
Compat API: Fix the response of 'push image' endpoint
Diffstat (limited to 'test/apiv2/12-imagesMore.at')
-rw-r--r-- | test/apiv2/12-imagesMore.at | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/apiv2/12-imagesMore.at b/test/apiv2/12-imagesMore.at index 4f3ddf925..ce3049106 100644 --- a/test/apiv2/12-imagesMore.at +++ b/test/apiv2/12-imagesMore.at @@ -46,6 +46,10 @@ t POST "images/localhost:5000/myrepo/push?tlsVerify=false&tag=mytag" '' 200 # Untag the image t POST "libpod/images/$iid/untag?repo=localhost:5000/myrepo&tag=mytag" '' 201 +# Try to push non-existing image +t POST "images/localhost:5000/idonotexist/push?tlsVerify=false" '' 200 +jq -re 'select(.errorDetail)' <<<"$output" &>/dev/null || echo -e "${red}not ok: error message not found in output${nc}" 1>&2 + t GET libpod/images/$IMAGE/json 200 \ .RepoTags[-1]=$IMAGE |