X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e838828374ceed5ef6da260939251e86f72b6f27..d12160e0b194eed8b059a54d92075fa1c6dfcd10:/lib/controller/server_test.go diff --git a/lib/controller/server_test.go b/lib/controller/server_test.go index a398af97b2..edc5fd117d 100644 --- a/lib/controller/server_test.go +++ b/lib/controller/server_test.go @@ -5,6 +5,7 @@ package controller import ( + "context" "net/http" "os" "path/filepath" @@ -36,14 +37,18 @@ func newServerFromIntegrationTestEnv(c *check.C) *httpserver.Server { handler := &Handler{Cluster: &arvados.Cluster{ ClusterID: "zzzzz", PostgreSQL: integrationTestCluster().PostgreSQL, - TLS: arvados.TLS{Insecure: true}, + + EnableBetaController14287: enableBetaController14287, }} + handler.Cluster.TLS.Insecure = true arvadostest.SetServiceURL(&handler.Cluster.Services.RailsAPI, "https://"+os.Getenv("ARVADOS_TEST_API_HOST")) arvadostest.SetServiceURL(&handler.Cluster.Services.Controller, "http://localhost:/") srv := &httpserver.Server{ Server: http.Server{ - Handler: httpserver.AddRequestIDs(httpserver.LogRequests(log, handler)), + Handler: httpserver.HandlerWithContext( + ctxlog.Context(context.Background(), log), + httpserver.AddRequestIDs(httpserver.LogRequests(handler))), }, Addr: ":", }