diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-19 07:01:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-19 07:01:03 -0700 |
commit | 61e3b152fcc591a85f2bd4872911a0997cca75c0 (patch) | |
tree | a2087a689b42f403c21713c0ead68064ca31b0dc /test/apiv2/35-networks.at | |
parent | 2c967c376a377d2bad3ecdd0397b3f558a85bafe (diff) | |
parent | aa2d6e6e6c7434058c4b1a46d4354391ed4d96d0 (diff) | |
download | podman-61e3b152fcc591a85f2bd4872911a0997cca75c0.tar.gz podman-61e3b152fcc591a85f2bd4872911a0997cca75c0.tar.bz2 podman-61e3b152fcc591a85f2bd4872911a0997cca75c0.zip |
Merge pull request #9758 from jmguzik/volumes-networks-http-fix
Fix volumes and networks list/prune filters in http api
Diffstat (limited to 'test/apiv2/35-networks.at')
-rw-r--r-- | test/apiv2/35-networks.at | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/test/apiv2/35-networks.at b/test/apiv2/35-networks.at index 6c3a34ece..21840a42d 100644 --- a/test/apiv2/35-networks.at +++ b/test/apiv2/35-networks.at @@ -80,9 +80,29 @@ t POST networks/create Name=net3\ IPAM='{"Config":[]}' 201 # network delete docker t DELETE networks/net3 204 -# Prune networks compat api - bad filter input +#compat api list networks sanity checks +t GET networks?filters='garb1age}' 500 \ + .cause="invalid character 'g' looking for beginning of value" +t GET networks?filters='{"label":["testl' 500 \ + .cause="unexpected end of JSON input" + +#libpod api list networks sanity checks +t GET libpod/networks/json?filters='garb1age}' 500 \ + .cause="invalid character 'g' looking for beginning of value" +t GET libpod/networks/json?filters='{"label":["testl' 500 \ + .cause="unexpected end of JSON input" + +# Prune networks compat api t POST networks/prune?filters='garb1age}' 500 \ .cause="invalid character 'g' looking for beginning of value" +t POST networks/prune?filters='{"label":["tes' 500 \ + .cause="unexpected end of JSON input" + +# Prune networks libpod api +t POST libpod/networks/prune?filters='garb1age}' 500 \ + .cause="invalid character 'g' looking for beginning of value" +t POST libpod/networks/prune?filters='{"label":["tes' 500 \ + .cause="unexpected end of JSON input" # prune networks using filter - compat api t POST networks/prune?filters='{"label":["xyz"]}' 200 |