From 4a981c490be01547c17fb0b1fc4d1c3bfbf3551e Mon Sep 17 00:00:00 2001 From: Carlo Lobrano Date: Fri, 17 Jun 2022 09:54:22 +0200 Subject: 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 --- test/apiv2/35-networks.at | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/apiv2') 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 \ "[]" -- cgit v1.2.3-54-g00ecf