Add preferred endpoints logic to API/handler/DB and some CLI bits (#1529)
This commit is contained in:
1 parent
f9c620a5d5
commit
01d4383c1b
46 files changed
+1737
-231
No files matched your search
@@ -8,6 +8,7 @@ import (
|
||||
"github.com/hashicorp/boundary/internal/db/timestamp"
|
||||
"github.com/hashicorp/boundary/internal/host/plugin/store"
|
||||
"github.com/hashicorp/boundary/internal/iam"
|
||||
"github.com/hashicorp/boundary/internal/kms"
|
||||
"github.com/hashicorp/boundary/internal/plugin/host"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -94,12 +95,13 @@ func TestPluginSet_ImmutableFields(t *testing.T) {
|
||||
conn, _ := db.TestSetup(t, "postgres")
|
||||
w := db.New(conn)
|
||||
wrapper := db.TestWrapper(t)
|
||||
kmsCache := kms.TestKms(t, conn, wrapper)
|
||||
|
||||
ts := timestamp.Timestamp{Timestamp: ×tamppb.Timestamp{Seconds: 0, Nanos: 0}}
|
||||
_, prj := iam.TestScopes(t, iam.TestRepo(t, conn, wrapper))
|
||||
plg := host.TestPlugin(t, conn, "test", "prefix")
|
||||
cat := TestCatalog(t, conn, prj.PublicId, plg.GetPublicId())
|
||||
new := TestSet(t, conn, cat.GetPublicId())
|
||||
new := TestSet(t, conn, kmsCache, cat)
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
@@ -125,7 +127,7 @@ func TestPluginSet_ImmutableFields(t *testing.T) {
|
||||
fieldMask: []string{"CreateTime"},
|
||||
},
|
||||
{
|
||||
name: "plugin_host_catalog_id",
|
||||
name: "host_plugin_catalog_id",
|
||||
update: func() *HostSet {
|
||||
c := new.testCloneHostSet()
|
||||
c.CatalogId = "stc_01234567890"
|
||||
|
||||
Reference in new issue
Block a user