diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-07 18:55:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 18:55:23 -0400 |
commit | 9ba2e78cdcc28c15d72a76f6200a74e7ad6562b1 (patch) | |
tree | b75ec2d72a516d2469dec5de8634fa0e0c9ad442 /test/apiv2/30-volumes.at | |
parent | 8c0df1c44a496d30b6e122c4ebc1dae9b5059607 (diff) | |
parent | 84907324fa02b8ede502a47b522fc717e782a909 (diff) | |
download | podman-9ba2e78cdcc28c15d72a76f6200a74e7ad6562b1.tar.gz podman-9ba2e78cdcc28c15d72a76f6200a74e7ad6562b1.tar.bz2 podman-9ba2e78cdcc28c15d72a76f6200a74e7ad6562b1.zip |
Merge pull request #9958 from jmguzik/limit-prune-filters-for-volumes
Volumes prune endpoint should use only prune filters
Diffstat (limited to 'test/apiv2/30-volumes.at')
-rw-r--r-- | test/apiv2/30-volumes.at | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/apiv2/30-volumes.at b/test/apiv2/30-volumes.at index 18ff31100..623e691e3 100644 --- a/test/apiv2/30-volumes.at +++ b/test/apiv2/30-volumes.at @@ -123,4 +123,20 @@ t POST libpod/volumes/prune 200 #After prune volumes, there should be no volume existing t GET libpod/volumes/json 200 length=0 +# libpod api: do not use list filters for prune +t POST libpod/volumes/prune?filters='{"name":["anyname"]}' 500 \ + .cause="\"name\" is an invalid volume filter" +t POST libpod/volumes/prune?filters='{"driver":["anydriver"]}' 500 \ + .cause="\"driver\" is an invalid volume filter" +t POST libpod/volumes/prune?filters='{"scope":["anyscope"]}' 500 \ + .cause="\"scope\" is an invalid volume filter" + +# compat api: do not use list filters for prune +t POST volumes/prune?filters='{"name":["anyname"]}' 500 \ + .cause="\"name\" is an invalid volume filter" +t POST volumes/prune?filters='{"driver":["anydriver"]}' 500 \ + .cause="\"driver\" is an invalid volume filter" +t POST volumes/prune?filters='{"scope":["anyscope"]}' 500 \ + .cause="\"scope\" is an invalid volume filter" + # vim: filetype=sh |