fix(session connections): Create session connection repository
This commit is contained in:
1 parent
ff42d46b36
commit
5a2c0db586
20 files changed
+463
-307
No files matched your search
@@ -10,6 +10,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/boundary/internal/session"
|
||||
|
||||
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
|
||||
"github.com/hashicorp/boundary/api"
|
||||
"github.com/hashicorp/boundary/api/authmethods"
|
||||
@@ -116,6 +118,14 @@ func (tc *TestController) ServersRepo() *servers.Repository {
|
||||
return repo
|
||||
}
|
||||
|
||||
func (tc *TestController) ConnectionsRepo() *session.ConnectionRepository {
|
||||
repo, err := tc.c.ConnectionRepoFn()
|
||||
if err != nil {
|
||||
tc.t.Fatal(err)
|
||||
}
|
||||
return repo
|
||||
}
|
||||
|
||||
func (tc *TestController) Cancel() {
|
||||
tc.cancel()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user