diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-01 21:08:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 21:08:50 +0100 |
commit | 73044b28172fd0df23836052a9061dc41f51f39a (patch) | |
tree | 8fc40cef8828c25bd7a6621451f1d46e17958323 /test/apiv2/20-containers.at | |
parent | 8daa014f38f7e7af2b46bef1b1a5870429de0d12 (diff) | |
parent | 9435e5b79b3dacca61118b159b06fa38cb1ac0d8 (diff) | |
download | podman-73044b28172fd0df23836052a9061dc41f51f39a.tar.gz podman-73044b28172fd0df23836052a9061dc41f51f39a.tar.bz2 podman-73044b28172fd0df23836052a9061dc41f51f39a.zip |
Merge pull request #9555 from edsantiago/apiv2_test_readability
APIv2 tests: make more maintainable
Diffstat (limited to 'test/apiv2/20-containers.at')
-rw-r--r-- | test/apiv2/20-containers.at | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at index a99e9a184..641c2adc3 100644 --- a/test/apiv2/20-containers.at +++ b/test/apiv2/20-containers.at @@ -206,9 +206,9 @@ t GET 'containers/json?limit=0&all=1' 200 \ t GET containers/json?limit=2 200 length=2 # Filter with two ids should return both container -t GET "containers/json?filters=%7B%22id%22%3A%5B%22${cid}%22%2C%22${cid_top}%22%5D%7D&all=1" 200 length=2 +t GET containers/json?filters='{"id":["'${cid}'","'${cid_top}'"]}&all=1' 200 length=2 # Filter with two ids and status running should return only 1 container -t GET "containers/json?filters=%7B%22id%22%3A%5B%22${cid}%22%2C%22${cid_top}%22%5D%2C%22status%22%3A%5B%22running%22%5D%7D&all=1" 200 \ +t GET containers/json?filters='{"id":["'${cid}'","'${cid_top}'"],"status":["running"]}&all=1' 200 \ length=1 \ .[0].Id=${cid_top} |