summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-05-12 17:00:44 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-05-16 09:59:19 -0400
commitee782fcb70c3d0d8f656406d346a3972f3200c83 (patch)
tree4040e9f884ba33a202dade103b42363a4a73f6e4 /test/apiv2
parentd8e8e628220b890986b11c9646ad593148dc5d3c (diff)
downloadpodman-ee782fcb70c3d0d8f656406d346a3972f3200c83.tar.gz
podman-ee782fcb70c3d0d8f656406d346a3972f3200c83.tar.bz2
podman-ee782fcb70c3d0d8f656406d346a3972f3200c83.zip
Deleting an n use image should return conflict not system error
Fixes: https://github.com/containers/podman/issues/14208 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/10-images.at11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at
index 9526183e3..b5305537d 100644
--- a/test/apiv2/10-images.at
+++ b/test/apiv2/10-images.at
@@ -156,6 +156,17 @@ t GET images/json?filters='{"reference":["test1"]}' 200 length=1
t DELETE libpod/images/test1:latest 200
+# to be used in prune until filter tests
+podman image build -t docker.io/library/test1:latest -<<EOF
+from alpine
+RUN >file4
+EOF
+podman create --name test1 test1 echo hi
+
+t DELETE images/test1:latest 409
+podman rm test1
+t DELETE images/test1:latest 200
+
t GET "images/get?names=alpine" 200 '[POSIX tar archive]'
podman pull busybox