summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorMilivoje Legenovic <m.legenovic@gmail.com>2021-03-07 02:38:01 +0100
committerMilivoje Legenovic <m.legenovic@gmail.com>2021-03-07 02:38:01 +0100
commit9fc29f63e0dedea0dbe03e5baf012b6bf5ab51b9 (patch)
tree584a48f0a394ca27890c5bb912de06820456cd70 /test/apiv2
parent4e5cc6a3a61d9d2f1d3b97fc10684ec5617816ab (diff)
downloadpodman-9fc29f63e0dedea0dbe03e5baf012b6bf5ab51b9.tar.gz
podman-9fc29f63e0dedea0dbe03e5baf012b6bf5ab51b9.tar.bz2
podman-9fc29f63e0dedea0dbe03e5baf012b6bf5ab51b9.zip
Correct compat images/{name}/push response
Signed-off-by: Milivoje Legenovic <m.legenovic@gmail.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/12-imagesMore.at4
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