2026-01-27 13:25:45: merge [main:e5e723811e7a9dc57a6ff5d1c067c07c23a97210];
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s
This commit is contained in:
1 parent
6a3abf67a2
commit
602a2a1ac4
24 files changed
+222
-114
No files matched your search
@@ -78,7 +78,7 @@ func (s *HappyPathTestSuite) TestGrpcProxy() {
|
||||
logger, err := log.New(log.WithLevel(log.DebugLevel))
|
||||
require.NoError(err)
|
||||
|
||||
routes := routes.NewRoutes()
|
||||
routes := routes.NewRoutes(logger)
|
||||
err = routes.ReceiveRoutes(s.T().Context(), cluster.RoutingConfig{{
|
||||
Endpoints: []cluster.EndpointDescriptor{{
|
||||
Path: "endpoint",
|
||||
@@ -128,7 +128,7 @@ func (s *HappyPathTestSuite) TestHttpProxy() {
|
||||
rr := lb.NewRoundRobin([]string{targetUrl.Host})
|
||||
targetClients := map[string]*lb.RoundRobin{"target": rr}
|
||||
|
||||
routes := routes.NewRoutes()
|
||||
routes := routes.NewRoutes(test.Logger())
|
||||
err = routes.ReceiveRoutes(s.T().Context(), cluster.RoutingConfig{{
|
||||
Endpoints: []cluster.EndpointDescriptor{{
|
||||
Path: "/endpoint",
|
||||
@@ -184,7 +184,7 @@ func (s *HappyPathTestSuite) TestWsProxy() { // nolint: funlen
|
||||
rr := lb.NewRoundRobin([]string{targetUrl.Host})
|
||||
targetClients := map[string]*lb.RoundRobin{"target": rr}
|
||||
|
||||
routes := routes.NewRoutes()
|
||||
routes := routes.NewRoutes(test.Logger())
|
||||
err = routes.ReceiveRoutes(s.T().Context(), cluster.RoutingConfig{{
|
||||
Endpoints: []cluster.EndpointDescriptor{{
|
||||
Path: "/service",
|
||||
@@ -251,7 +251,7 @@ func (s *HappyPathTestSuite) TestAdminAuthorization() {
|
||||
targetClients := map[string]*client.Client{"target": targetCli}
|
||||
logger, err := log.New(log.WithLevel(log.DebugLevel))
|
||||
require.NoError(err)
|
||||
routes := routes.NewRoutes()
|
||||
routes := routes.NewRoutes(logger)
|
||||
locator := assembly.NewLocator(logger, targetClients, nil, routes, systemCli, adminCli, nil)
|
||||
|
||||
locations := []conf.Location{{
|
||||
|
||||
@@ -84,7 +84,7 @@ func main() {
|
||||
})
|
||||
targetClients := map[string]*client.Client{"target": targetCli}
|
||||
logger, _ = log.New(log.WithLevel(log.DebugLevel))
|
||||
locator := assembly.NewLocator(logger, targetClients, nil, routes.NewRoutes(), systemCli, adminCli, nil)
|
||||
locator := assembly.NewLocator(logger, targetClients, nil, routes.NewRoutes(logger), systemCli, adminCli, nil)
|
||||
locations := []conf.Location{{
|
||||
SkipAuth: false,
|
||||
PathPrefix: "/api",
|
||||
|
||||
Reference in new issue
Block a user