summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/libpod
diff options
context:
space:
mode:
authorSujil02 <sushah@redhat.com>2020-02-14 16:35:08 -0500
committerSujil02 <sushah@redhat.com>2020-02-19 16:05:27 -0500
commit3db43dcce3479b73b023dee1798a69bc78b15fb8 (patch)
treefcac2f31d99a3f8c95dc10a343c3d5e994015c39 /pkg/api/handlers/libpod
parent931eb1b58314d3385ab48601cb2cc3bd0c371196 (diff)
downloadpodman-3db43dcce3479b73b023dee1798a69bc78b15fb8.tar.gz
podman-3db43dcce3479b73b023dee1798a69bc78b15fb8.tar.bz2
podman-3db43dcce3479b73b023dee1798a69bc78b15fb8.zip
Add test to validate the pod bindings api
Include test to validate pod create, start, stop, restart, pause, unpause, list, and inspect api bindings. Also includes bug fixes that resulted in invalid api responses. Signed-off-by: Sujil02 <sushah@redhat.com>
Diffstat (limited to 'pkg/api/handlers/libpod')
-rw-r--r--pkg/api/handlers/libpod/pods.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/pods.go b/pkg/api/handlers/libpod/pods.go
index d043b1204..031983ba7 100644
--- a/pkg/api/handlers/libpod/pods.go
+++ b/pkg/api/handlers/libpod/pods.go
@@ -121,7 +121,7 @@ func Pods(w http.ResponseWriter, r *http.Request) {
return
}
- if _, found := r.URL.Query()["filters"]; found {
+ if len(query.Filters) > 0 {
utils.Error(w, "filters are not implemented yet", http.StatusInternalServerError, define.ErrNotImplemented)
return
}