fix(session connections): Create session connection repository

This commit is contained in:
Irena Rindos authored and irenarindos committed 2022-03-15 12:11:31 -04:00
1 parent ff42d46b36
commit 5a2c0db586
20 files changed
+463 -307

No files matched your search

+10
View File
@@ -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()
}