summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-03-16 11:32:32 +0100
committerGitHub <noreply@github.com>2021-03-16 11:32:32 +0100
commit604459b404ed190f51e8b368c619323317078232 (patch)
treeed13d24553df1d1c5340ba27186f1c4a0dbbe392 /test
parent0f954e2371265c1da2a337172c390eaae3a04229 (diff)
parentf4b2d597a80c242e91b30b4709452c44f202956b (diff)
downloadpodman-604459b404ed190f51e8b368c619323317078232.tar.gz
podman-604459b404ed190f51e8b368c619323317078232.tar.bz2
podman-604459b404ed190f51e8b368c619323317078232.zip
Merge pull request #9711 from jmguzik/volume-prune-fix-http-compat
Fix for volumes prune in http compat api when using filters
Diffstat (limited to 'test')
-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