aboutsummaryrefslogtreecommitdiff
path: root/test/apiv2/30-volumes.at
diff options
context:
space:
mode:
authorJakub Guzik <jakubmguzik@gmail.com>2021-03-15 18:12:29 +0100
committerJakub Guzik <jakubmguzik@gmail.com>2021-03-15 20:17:05 +0100
commitf4b2d597a80c242e91b30b4709452c44f202956b (patch)
tree9ac4d73005cb703d3cfdb060dc493974dac07e68 /test/apiv2/30-volumes.at
parente7dc59252bd722377938ac3e6b4fd7e077f05293 (diff)
downloadpodman-f4b2d597a80c242e91b30b4709452c44f202956b.tar.gz
podman-f4b2d597a80c242e91b30b4709452c44f202956b.tar.bz2
podman-f4b2d597a80c242e91b30b4709452c44f202956b.zip
Fix for volumes prune in http compat api
Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com>
Diffstat (limited to 'test/apiv2/30-volumes.at')
-rw-r--r--test/apiv2/30-volumes.at4
1 files changed, 4 insertions, 0 deletions
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