Add create, list, lookup functions for plugin based host catalogs (#1515)
Create the repository for plugin host catalogs. A large TODO is left in the code to interface with the plugin system once ready.
This commit is contained in:
1 parent
1249f9668f
commit
4f09f1d74f
15 files changed
+665
-50
No files matched your search
@@ -17,8 +17,8 @@ func TestHostSet_Create(t *testing.T) {
|
||||
wrapper := db.TestWrapper(t)
|
||||
_, prj := iam.TestScopes(t, iam.TestRepo(t, conn, wrapper))
|
||||
plg := host.TestPlugin(t, conn, "test", "prefix")
|
||||
cat := TestCatalog(t, conn, plg.GetPublicId(), prj.PublicId)
|
||||
cat2 := TestCatalog(t, conn, plg.GetPublicId(), prj.PublicId)
|
||||
cat := TestCatalog(t, conn, prj.PublicId, plg.GetPublicId())
|
||||
cat2 := TestCatalog(t, conn, prj.PublicId, plg.GetPublicId())
|
||||
|
||||
type args struct {
|
||||
catalogId string
|
||||
@@ -145,7 +145,7 @@ func TestHostSet_Create(t *testing.T) {
|
||||
assert.Emptyf(t, got.PublicId, "PublicId set")
|
||||
assert.Equal(t, tt.want, got)
|
||||
|
||||
id, err := newHostSetId(plg.GetIdPrefix())
|
||||
id, err := newHostSetId(ctx, plg.GetIdPrefix())
|
||||
assert.NoError(t, err)
|
||||
|
||||
tt.want.PublicId = id
|
||||
|
||||
Reference in new issue
Block a user