aboutsummaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorCarlo Lobrano <c.lobrano@gmail.com>2022-06-17 09:54:22 +0200
committerCarlo Lobrano <c.lobrano@gmail.com>2022-06-21 17:50:55 +0200
commit4a981c490be01547c17fb0b1fc4d1c3bfbf3551e (patch)
tree30f5c0a94a89d8a361272dd9243602e34890d927 /test/apiv2
parent78ecdad5f8f16dbb6146f2741a3d7ead1ce837bc (diff)
downloadpodman-4a981c490be01547c17fb0b1fc4d1c3bfbf3551e.tar.gz
podman-4a981c490be01547c17fb0b1fc4d1c3bfbf3551e.tar.bz2
podman-4a981c490be01547c17fb0b1fc4d1c3bfbf3551e.zip
allow filter networks by dangling status
add the ability to filter networks by their dangling status via: `network ls --filter dangling=true/false` Fixes: #14595 Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/35-networks.at4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/apiv2/35-networks.at b/test/apiv2/35-networks.at
index 4aad4563d..fcff26521 100644
--- a/test/apiv2/35-networks.at
+++ b/test/apiv2/35-networks.at
@@ -78,8 +78,8 @@ t GET networks?filters="{\"id\":[\"$network1_id\"]}" 200 \
.[0].Name=network1 \
.[0].Id=$network1_id
# invalid filter
-t GET networks?filters='{"dangling":["1"]}' 500 \
- .cause='invalid filter "dangling"'
+t GET networks?filters='{"dangling":["true","0"]}' 500 \
+ .cause="got more than one value for filter key \"dangling\""
# (#9293 with no networks the endpoint should return empty array instead of null)
t GET networks?filters='{"name":["doesnotexists"]}' 200 \
"[]"