summaryrefslogtreecommitdiff
path: root/test/apiv2/20-containers.at
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-15 06:23:00 -0400
committerGitHub <noreply@github.com>2021-09-15 06:23:00 -0400
commit10873c6f494fbc7a43365000f6f9702c21741077 (patch)
tree8eb5e73ac7144c4918d95c31a9b0b68746038b53 /test/apiv2/20-containers.at
parentaff64dda65514064ccbf7fcaf78293e111539eb6 (diff)
parent9b04e17893dbf91326c0f68ce7627d7bb07cf515 (diff)
downloadpodman-10873c6f494fbc7a43365000f6f9702c21741077.tar.gz
podman-10873c6f494fbc7a43365000f6f9702c21741077.tar.bz2
podman-10873c6f494fbc7a43365000f6f9702c21741077.zip
Merge pull request #11578 from jelly/handle_nil_pointer_deref
api: handle nil pointer dereference in api endpoints
Diffstat (limited to 'test/apiv2/20-containers.at')
-rw-r--r--test/apiv2/20-containers.at4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index 8fdecb4bd..afff68c22 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -22,6 +22,10 @@ podman run $IMAGE true
t GET libpod/containers/json 200 length=0
+# bad all input
+t GET libpod/containers/json?all='garb1age' 500 \
+ .cause="schema: error converting value for \"all\""
+
t GET libpod/containers/json?all=true 200 \
length=1 \
.[0].Id~[0-9a-f]\\{64\\} \