Port over changes (#3061) (#3062)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2023-03-07 16:29:34 -05:00
1 parent 4819d17ee8
commit b2bab45c13
20 files changed
+145 -105

No files matched your search

+23
View File
@@ -23,13 +23,16 @@ import (
"github.com/hashicorp/boundary/internal/authtoken"
"github.com/hashicorp/boundary/internal/cmd/base"
"github.com/hashicorp/boundary/internal/cmd/config"
"github.com/hashicorp/boundary/internal/credential/vault"
"github.com/hashicorp/boundary/internal/db"
"github.com/hashicorp/boundary/internal/db/schema"
"github.com/hashicorp/boundary/internal/gen/testing/interceptor"
"github.com/hashicorp/boundary/internal/host/plugin"
"github.com/hashicorp/boundary/internal/iam"
"github.com/hashicorp/boundary/internal/intglobals"
"github.com/hashicorp/boundary/internal/kms"
"github.com/hashicorp/boundary/internal/observability/event"
"github.com/hashicorp/boundary/internal/scheduler"
"github.com/hashicorp/boundary/internal/server"
"github.com/hashicorp/boundary/internal/session"
"github.com/hashicorp/go-hclog"
@@ -134,6 +137,26 @@ func (tc *TestController) ConnectionsRepo() *session.ConnectionRepository {
return repo
}
func (tc *TestController) PluginHostRepo() *plugin.Repository {
repo, err := tc.c.PluginHostRepoFn()
if err != nil {
tc.t.Fatal(err)
}
return repo
}
func (tc *TestController) VaultCredentialRepo() *vault.Repository {
repo, err := tc.c.VaultCredentialRepoFn()
if err != nil {
tc.t.Fatal(err)
}
return repo
}
func (tc *TestController) Scheduler() *scheduler.Scheduler {
return tc.Controller().scheduler
}
func (tc *TestController) Cancel() {
tc.cancel()
}