From f4b2d597a80c242e91b30b4709452c44f202956b Mon Sep 17 00:00:00 2001 From: Jakub Guzik Date: Mon, 15 Mar 2021 18:12:29 +0100 Subject: Fix for volumes prune in http compat api Signed-off-by: Jakub Guzik --- test/apiv2/30-volumes.at | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/apiv2/30-volumes.at b/test/apiv2/30-volumes.at index c27c638bb..1a40b3cdf 100644 --- a/test/apiv2/30-volumes.at +++ b/test/apiv2/30-volumes.at @@ -86,6 +86,10 @@ t DELETE libpod/volumes/foo1 404 \ .message~.* \ .response=404 +# Prune volumes - bad filter input +t POST volumes/prune?filters='garb1age}' 500 \ + .cause="invalid character 'g' looking for beginning of value" + ## Prune volumes with label matching 'testlabel1=testonly' t POST libpod/volumes/prune?filters='{"label":["testlabel1=testonly"]}' 200 t GET libpod/volumes/json?filters='{"label":["testlabel1=testonly"]}' 200 length=0 -- cgit v1.2.3-54-g00ecf