diff --git a/internal/db/schema/migrations/oss/postgres/17/01_domain_types.up.sql b/internal/db/schema/migrations/oss/postgres/18/01_domain_types.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/17/01_domain_types.up.sql rename to internal/db/schema/migrations/oss/postgres/18/01_domain_types.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/17/02_plugin.up.sql b/internal/db/schema/migrations/oss/postgres/18/02_plugin.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/17/02_plugin.up.sql rename to internal/db/schema/migrations/oss/postgres/18/02_plugin.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/17/03_hostplugin.up.sql b/internal/db/schema/migrations/oss/postgres/18/03_hostplugin.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/17/03_hostplugin.up.sql rename to internal/db/schema/migrations/oss/postgres/18/03_hostplugin.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/17/04_host.up.sql b/internal/db/schema/migrations/oss/postgres/18/04_host.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/17/04_host.up.sql rename to internal/db/schema/migrations/oss/postgres/18/04_host.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/17/05_plugin_host.up.sql b/internal/db/schema/migrations/oss/postgres/18/05_plugin_host.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/17/05_plugin_host.up.sql rename to internal/db/schema/migrations/oss/postgres/18/05_plugin_host.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/17/06_preferred_endpoints.up.sql b/internal/db/schema/migrations/oss/postgres/18/06_preferred_endpoints.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/17/06_preferred_endpoints.up.sql rename to internal/db/schema/migrations/oss/postgres/18/06_preferred_endpoints.up.sql diff --git a/internal/db/schema/migrations/oss/postgres/17/07_wh_session_dimensions.up.sql b/internal/db/schema/migrations/oss/postgres/18/07_wh_session_dimensions.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/17/07_wh_session_dimensions.up.sql rename to internal/db/schema/migrations/oss/postgres/18/07_wh_session_dimensions.up.sql diff --git a/internal/servers/controller/handler.go b/internal/servers/controller/handler.go index 43b9b72a29..3baebce123 100644 --- a/internal/servers/controller/handler.go +++ b/internal/servers/controller/handler.go @@ -164,11 +164,13 @@ func handleGrpcGateway(c *Controller, props HandlerProperties) (http.Handler, er } if _, ok := currentServices[services.TargetService_ServiceDesc.ServiceName]; !ok { ts, err := targets.NewService( + ctx, c.kms, c.TargetRepoFn, c.IamRepoFn, c.ServersRepoFn, c.SessionRepoFn, + c.PluginHostRepoFn, c.StaticHostRepoFn, c.VaultCredentialRepoFn) if err != nil { diff --git a/internal/servers/controller/handlers/targets/target_service_test.go b/internal/servers/controller/handlers/targets/target_service_test.go index 58df00e3b6..b8b60321ce 100644 --- a/internal/servers/controller/handlers/targets/target_service_test.go +++ b/internal/servers/controller/handlers/targets/target_service_test.go @@ -2637,7 +2637,6 @@ func TestAuthorizeSession(t *testing.T) { s, err := targets.NewService(ctx, kms, repoFn, iamRepoFn, serversRepoFn, sessionRepoFn, pluginHostRepoFn, staticHostRepoFn, credentialRepoFn) require.NoError(t, err) - tar := tcp.TestTarget(t, conn, proj.GetPublicId(), "test") hc := static.TestCatalogs(t, conn, proj.GetPublicId(), 1)[0] h := static.TestHosts(t, conn, hc.GetPublicId(), 1)[0] shs := static.TestSets(t, conn, hc.GetPublicId(), 1)[0] @@ -2690,6 +2689,7 @@ func TestAuthorizeSession(t *testing.T) { for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { + tar := tcp.TestTarget(t, conn, proj.GetPublicId(), tc.name) apiTar, err := s.AddTargetHostSets(ctx, &pbs.AddTargetHostSetsRequest{ Id: tar.GetPublicId(), Version: tar.GetVersion(),