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>
This commit is contained in:
Sujil02
2020-02-14 16:35:08 -05:00
parent 931eb1b583
commit 3db43dcce3
5 changed files with 231 additions and 15 deletions

View File

@ -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
}