Merge branch 'main' into plugin-hostcatalogs
This commit is contained in:
commit
158ab09952
238 files changed
+4307
-2281
No files matched your search
@@ -16,6 +16,7 @@ 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/db"
|
||||
"github.com/hashicorp/boundary/internal/db/schema"
|
||||
"github.com/hashicorp/boundary/internal/host/plugin"
|
||||
"github.com/hashicorp/boundary/internal/iam"
|
||||
@@ -27,7 +28,6 @@ import (
|
||||
wrapping "github.com/hashicorp/go-kms-wrapping"
|
||||
"github.com/hashicorp/go-secure-stdlib/base62"
|
||||
"github.com/hashicorp/go-secure-stdlib/strutil"
|
||||
"github.com/jinzhu/gorm"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -127,7 +127,7 @@ func (tc *TestController) ClusterAddrs() []string {
|
||||
return tc.addrs("cluster")
|
||||
}
|
||||
|
||||
func (tc *TestController) DbConn() *gorm.DB {
|
||||
func (tc *TestController) DbConn() *db.DB {
|
||||
return tc.b.Database
|
||||
}
|
||||
|
||||
@@ -273,8 +273,8 @@ func (tc *TestController) Shutdown() {
|
||||
tc.t.Error(err)
|
||||
}
|
||||
if !tc.opts.DisableDatabaseDestruction {
|
||||
if tc.b.DestroyDevDatabase() != nil {
|
||||
if err := tc.b.DestroyDevDatabase(); err != nil {
|
||||
if tc.b.DestroyDevDatabase(tc.ctx) != nil {
|
||||
if err := tc.b.DestroyDevDatabase(tc.ctx); err != nil {
|
||||
tc.t.Error(err)
|
||||
}
|
||||
}
|
||||
@@ -537,7 +537,7 @@ func NewTestController(t *testing.T, opts *TestControllerOpts) *TestController {
|
||||
if _, err := schema.MigrateStore(ctx, "postgres", tc.b.DatabaseUrl); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := tc.b.ConnectToDatabase("postgres"); err != nil {
|
||||
if err := tc.b.ConnectToDatabase(tc.ctx, "postgres"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !opts.DisableKmsKeyCreation {
|
||||
|
||||
Reference in new issue
Block a user