diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2021-02-26 19:31:29 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2021-02-26 19:42:34 +0100 |
commit | f54ed7269a99b26a6c8d14c1a0f7be8f038d10ba (patch) | |
tree | 3adf4e173d26dbc71f95b10b10242da1c005df2e /test | |
parent | 397aae32b9ae219eda190cde65b18e4361427932 (diff) | |
download | podman-f54ed7269a99b26a6c8d14c1a0f7be8f038d10ba.tar.gz podman-f54ed7269a99b26a6c8d14c1a0f7be8f038d10ba.tar.bz2 podman-f54ed7269a99b26a6c8d14c1a0f7be8f038d10ba.zip |
compat api network ls accept both format options
Docker allows both the old `map[string]map[string]bool`
and the newer `map[string][]string` for the filter param
so we should too.
Fixes #9526
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/35-networks.at | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/apiv2/35-networks.at b/test/apiv2/35-networks.at index 7ce109913..25a292cc5 100644 --- a/test/apiv2/35-networks.at +++ b/test/apiv2/35-networks.at @@ -38,6 +38,9 @@ length=2 # filters={"label":["abc"]} t GET networks?filters=%7B%22label%22%3A%5B%22abc%22%5D%7D 200 \ length=1 +# filters={"label":{"abc":true}} old docker filter type see #9526 +t GET networks?filters=%7B%22label%22%3A%7B%22abc%22%3Atrue%7D%7D 200 \ +length=1 # id filter filters={"id":["a7662f44d65029fd4635c91feea3d720a57cef52e2a9fcc7772b69072cc1ccd1"]} t GET networks?filters=%7B%22id%22%3A%5B%22a7662f44d65029fd4635c91feea3d720a57cef52e2a9fcc7772b69072cc1ccd1%22%5D%7D 200 \ length=1 \ |