X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/231a86fd3f7e30e9f66d71d92ad7c26578637e37..1dee1aad0573bf3a54d536c8dd3693a352cf0cbe:/lib/controller/router/router_test.go diff --git a/lib/controller/router/router_test.go b/lib/controller/router/router_test.go index 4e6b161733..3a7045aa4d 100644 --- a/lib/controller/router/router_test.go +++ b/lib/controller/router/router_test.go @@ -10,11 +10,13 @@ import ( "io" "net/http" "net/http/httptest" + "net/url" "os" "strings" "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" "github.com/julienschmidt/httprouter" @@ -158,7 +160,8 @@ func (s *RouterIntegrationSuite) SetUpTest(c *check.C) { cluster := &arvados.Cluster{} cluster.TLS.Insecure = true arvadostest.SetServiceURL(&cluster.Services.RailsAPI, "https://"+os.Getenv("ARVADOS_TEST_API_HOST")) - s.rtr = New(cluster) + url, _ := url.Parse("https://" + os.Getenv("ARVADOS_TEST_API_HOST")) + s.rtr = New(rpc.NewConn("zzzzz", url, true, rpc.PassthroughTokenProvider)) } func (s *RouterIntegrationSuite) TearDownSuite(c *check.C) {