summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-03-27 12:36:47 +0000
committerGitHub <noreply@github.com>2021-03-27 12:36:47 +0000
commitec47312eebf11abcf74b5bf06df19ee2fb7b8afd (patch)
tree45b510ce0529d022fad75736b9ef83ae63a902fd /test/apiv2
parent5afcaeeaef8c4e45712ca957e0c224bc997b3797 (diff)
parent85015a5e23fe4944bdd2931311c0e6e223466f57 (diff)
downloadpodman-ec47312eebf11abcf74b5bf06df19ee2fb7b8afd.tar.gz
podman-ec47312eebf11abcf74b5bf06df19ee2fb7b8afd.tar.bz2
podman-ec47312eebf11abcf74b5bf06df19ee2fb7b8afd.zip
Merge pull request #9822 from jmguzik/fix-pods-list-filters-http-api
Fix list pods filter handling in libpod api
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/40-pods.at6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/apiv2/40-pods.at b/test/apiv2/40-pods.at
index f3272c41e..94c72dbaa 100644
--- a/test/apiv2/40-pods.at
+++ b/test/apiv2/40-pods.at
@@ -116,6 +116,12 @@ t GET libpod/pods/foo/top?ps_args=args,pid 200 \
.Titles[0]="COMMAND" \
.Titles[1]="PID" \
+#api list pods sanity checks
+t GET libpod/pods/json?filters='garb1age}' 400 \
+ .cause="invalid character 'g' looking for beginning of value"
+t GET libpod/pods/json?filters='{"label":["testl' 400 \
+ .cause="unexpected end of JSON input"
+
# FIXME: I'm not sure what 'prune' is supposed to do; as of 20200224 it
# just returns 200 (ok) with empty result list.
#t POST libpod/pods/prune 200 # FIXME: 2020-02-24 returns 200 {}