From 04e09f7a3f02db183f40933b944c1fff00360e09 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Fri, 29 Nov 2019 23:08:23 -0500 Subject: [PATCH] Test X-Http-Method-Override. No issue # Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- lib/controller/router/router_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/controller/router/router_test.go b/lib/controller/router/router_test.go index b1bc9bce32..991e907d53 100644 --- a/lib/controller/router/router_test.go +++ b/lib/controller/router/router_test.go @@ -104,6 +104,14 @@ func (s *RouterSuite) TestOptions(c *check.C) { shouldCall: "CollectionList", withOptions: arvados.ListOptions{Limit: 123, Offset: 456, IncludeTrash: true, IncludeOldVersions: true}, }, + { + method: "POST", + path: "/arvados/v1/collections?limit=123", + body: `{"offset":456,"include_trash":true,"include_old_versions":true}`, + header: http.Header{"X-Http-Method-Override": {"GET"}, "Content-Type": {"application/json"}}, + shouldCall: "CollectionList", + withOptions: arvados.ListOptions{Limit: 123, Offset: 456, IncludeTrash: true, IncludeOldVersions: true}, + }, { method: "POST", path: "/arvados/v1/collections?limit=123", -- 2.39.5