|
|
|
|
@ -16,11 +16,11 @@ import (
|
|
|
|
|
"github.com/hashicorp/boundary/internal/authtoken"
|
|
|
|
|
"github.com/hashicorp/boundary/internal/credential"
|
|
|
|
|
"github.com/hashicorp/boundary/internal/credential/vault"
|
|
|
|
|
cluster "github.com/hashicorp/boundary/internal/daemon/cluster/handlers"
|
|
|
|
|
"github.com/hashicorp/boundary/internal/daemon/controller/auth"
|
|
|
|
|
"github.com/hashicorp/boundary/internal/daemon/controller/handlers"
|
|
|
|
|
"github.com/hashicorp/boundary/internal/daemon/controller/handlers/credentiallibraries"
|
|
|
|
|
"github.com/hashicorp/boundary/internal/daemon/controller/handlers/targets"
|
|
|
|
|
"github.com/hashicorp/boundary/internal/daemon/controller/handlers/workers"
|
|
|
|
|
"github.com/hashicorp/boundary/internal/db"
|
|
|
|
|
pbs "github.com/hashicorp/boundary/internal/gen/controller/api/services"
|
|
|
|
|
authpb "github.com/hashicorp/boundary/internal/gen/controller/auth"
|
|
|
|
|
@ -2787,7 +2787,7 @@ func TestAuthorizeSession(t *testing.T) {
|
|
|
|
|
require.NoError(t, err)
|
|
|
|
|
|
|
|
|
|
// Tell our DB that there is a worker ready to serve the data
|
|
|
|
|
workerService := workers.NewWorkerServiceServer(serversRepoFn, sessionRepoFn, connectionRepoFn, &sync.Map{}, kms)
|
|
|
|
|
workerService := cluster.NewWorkerServiceServer(serversRepoFn, sessionRepoFn, connectionRepoFn, &sync.Map{}, kms)
|
|
|
|
|
_, err = workerService.Status(ctx, &spbs.StatusRequest{
|
|
|
|
|
Worker: &spb.Server{
|
|
|
|
|
PrivateId: "w_1234567890",
|
|
|
|
|
@ -3075,7 +3075,7 @@ func TestAuthorizeSessionTypedCredentials(t *testing.T) {
|
|
|
|
|
require.NoError(t, err)
|
|
|
|
|
|
|
|
|
|
// Tell our DB that there is a worker ready to serve the data
|
|
|
|
|
workerService := workers.NewWorkerServiceServer(serversRepoFn, sessionRepoFn, connectionRepoFn, &sync.Map{}, kms)
|
|
|
|
|
workerService := cluster.NewWorkerServiceServer(serversRepoFn, sessionRepoFn, connectionRepoFn, &sync.Map{}, kms)
|
|
|
|
|
_, err = workerService.Status(ctx, &spbs.StatusRequest{
|
|
|
|
|
Worker: &spb.Server{
|
|
|
|
|
PrivateId: "w_1234567890",
|
|
|
|
|
@ -3206,7 +3206,7 @@ func TestAuthorizeSession_Errors(t *testing.T) {
|
|
|
|
|
store := vault.TestCredentialStore(t, conn, wrapper, proj.GetPublicId(), v.Addr, tok, sec.Auth.Accessor)
|
|
|
|
|
|
|
|
|
|
workerExists := func(tar target.Target) (version uint32) {
|
|
|
|
|
workerService := workers.NewWorkerServiceServer(serversRepoFn, sessionRepoFn, connectionRepoFn, &sync.Map{}, kms)
|
|
|
|
|
workerService := cluster.NewWorkerServiceServer(serversRepoFn, sessionRepoFn, connectionRepoFn, &sync.Map{}, kms)
|
|
|
|
|
_, err := workerService.Status(context.Background(), &spbs.StatusRequest{
|
|
|
|
|
Worker: &spb.Server{
|
|
|
|
|
PrivateId: "w_1234567890",
|
|
|
|
|
|