X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/04e09f7a3f02db183f40933b944c1fff00360e09..5bda418761e13724a986a9824bf5af5af17654dd:/lib/controller/router/router_test.go diff --git a/lib/controller/router/router_test.go b/lib/controller/router/router_test.go index 991e907d53..a17bd3bd8b 100644 --- a/lib/controller/router/router_test.go +++ b/lib/controller/router/router_test.go @@ -16,9 +16,9 @@ import ( "testing" "time" - "git.curoverse.com/arvados.git/lib/controller/rpc" - "git.curoverse.com/arvados.git/sdk/go/arvados" - "git.curoverse.com/arvados.git/sdk/go/arvadostest" + "git.arvados.org/arvados.git/lib/controller/rpc" + "git.arvados.org/arvados.git/sdk/go/arvados" + "git.arvados.org/arvados.git/sdk/go/arvadostest" "github.com/gorilla/mux" check "gopkg.in/check.v1" ) @@ -329,6 +329,11 @@ func (s *RouterIntegrationSuite) TestSelectParam(c *check.C) { } } +func (s *RouterIntegrationSuite) TestHEAD(c *check.C) { + _, rr, _ := doRequest(c, s.rtr, arvadostest.ActiveTokenV2, "HEAD", "/arvados/v1/containers/"+arvadostest.QueuedContainerUUID, nil, nil) + c.Check(rr.Code, check.Equals, http.StatusOK) +} + func (s *RouterIntegrationSuite) TestRouteNotFound(c *check.C) { token := arvadostest.ActiveTokenV2 req := (&testReq{ @@ -364,7 +369,7 @@ func (s *RouterIntegrationSuite) TestCORS(c *check.C) { for _, hdr := range []string{"Authorization", "Content-Type"} { c.Check(rr.Result().Header.Get("Access-Control-Allow-Headers"), check.Matches, ".*"+hdr+".*") } - for _, method := range []string{"GET", "HEAD", "PUT", "POST", "DELETE"} { + for _, method := range []string{"GET", "HEAD", "PUT", "POST", "PATCH", "DELETE"} { c.Check(rr.Result().Header.Get("Access-Control-Allow-Methods"), check.Matches, ".*"+method+".*") }