From 9fc29f63e0dedea0dbe03e5baf012b6bf5ab51b9 Mon Sep 17 00:00:00 2001 From: Milivoje Legenovic Date: Sun, 7 Mar 2021 02:38:01 +0100 Subject: Correct compat images/{name}/push response Signed-off-by: Milivoje Legenovic --- test/apiv2/12-imagesMore.at | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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 -- cgit v1.2.3-54-g00ecf