X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/233a2b6bd23a3e2054cfc0690f2bc06c0f9f7323..5ee93e408c0e547dfb03b2f3d039a7715126395b:/lib/controller/router/router_test.go diff --git a/lib/controller/router/router_test.go b/lib/controller/router/router_test.go index 6a9fd311ba..b1bc9bce32 100644 --- a/lib/controller/router/router_test.go +++ b/lib/controller/router/router_test.go @@ -225,6 +225,13 @@ func (s *RouterIntegrationSuite) TestContainerList(c *check.C) { c.Check(rr.Code, check.Equals, http.StatusOK) c.Check(jresp["items_available"], check.FitsTypeOf, float64(0)) c.Check(jresp["items_available"].(float64) > 2, check.Equals, true) + c.Check(jresp["items"], check.NotNil) + c.Check(jresp["items"], check.HasLen, 0) + + _, rr, jresp = doRequest(c, s.rtr, token, "GET", `/arvados/v1/containers?filters=[["uuid","in",[]]]`, nil, nil) + c.Check(rr.Code, check.Equals, http.StatusOK) + c.Check(jresp["items_available"], check.Equals, float64(0)) + c.Check(jresp["items"], check.NotNil) c.Check(jresp["items"], check.HasLen, 0) _, rr, jresp = doRequest(c, s.rtr, token, "GET", `/arvados/v1/containers?limit=2&select=["uuid","command"]`, nil, nil)