Static host set repository methods (#289)
* Implement CreateSet * Implement UpdateSet * Implement LookupSet * Implement ListSets * Implement DeleteSet * Remove unused parameter from test helper function * Update to use new kms structure * Remove unused parameter for test helper function * Fix resource-type string for host set
This commit is contained in:
1 parent
b47cca0329
commit
3a3cdd7219
8 files changed
+1112
-14
No files matched your search
@@ -21,7 +21,7 @@ func TestHostCatalog_ImmutableFields(t *testing.T) {
|
||||
wrapper := db.TestWrapper(t)
|
||||
ts := timestamp.Timestamp{Timestamp: ×tamppb.Timestamp{Seconds: 0, Nanos: 0}}
|
||||
o, prj := iam.TestScopes(t, iam.TestRepo(t, conn, wrapper))
|
||||
new := testCatalog(t, conn, wrapper, prj.PublicId)
|
||||
new := testCatalog(t, conn, prj.PublicId)
|
||||
|
||||
var tests = []struct {
|
||||
name string
|
||||
@@ -86,7 +86,7 @@ func TestStaticHost_ImmutableFields(t *testing.T) {
|
||||
|
||||
ts := timestamp.Timestamp{Timestamp: ×tamppb.Timestamp{Seconds: 0, Nanos: 0}}
|
||||
_, prj := iam.TestScopes(t, iam.TestRepo(t, conn, wrapper))
|
||||
cat := testCatalog(t, conn, wrapper, prj.PublicId)
|
||||
cat := testCatalog(t, conn, prj.PublicId)
|
||||
hosts := TestHosts(t, conn, cat.GetPublicId(), 1)
|
||||
|
||||
new := hosts[0]
|
||||
@@ -161,7 +161,7 @@ func TestStaticHostSet_ImmutableFields(t *testing.T) {
|
||||
|
||||
ts := timestamp.Timestamp{Timestamp: ×tamppb.Timestamp{Seconds: 0, Nanos: 0}}
|
||||
_, prj := iam.TestScopes(t, iam.TestRepo(t, conn, wrapper))
|
||||
cat := testCatalog(t, conn, wrapper, prj.PublicId)
|
||||
cat := testCatalog(t, conn, prj.PublicId)
|
||||
sets := testSets(t, conn, cat.GetPublicId(), 1)
|
||||
|
||||
new := sets[0]
|
||||
@@ -235,7 +235,7 @@ func TestStaticHostSetMember_ImmutableFields(t *testing.T) {
|
||||
wrapper := db.TestWrapper(t)
|
||||
|
||||
_, prj := iam.TestScopes(t, iam.TestRepo(t, conn, wrapper))
|
||||
cat := testCatalog(t, conn, wrapper, prj.PublicId)
|
||||
cat := testCatalog(t, conn, prj.PublicId)
|
||||
sets := testSets(t, conn, cat.GetPublicId(), 1)
|
||||
hosts := TestHosts(t, conn, cat.GetPublicId(), 1)
|
||||
|
||||
|
||||
Reference in new issue
Block a user