Separate accounts/host catalogs/host sets into their own packages (#311)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-08-27 20:43:33 -04:00
1 parent 936c970635
commit 17ecb6f2ce
64 files changed
+2298 -2265

No files matched your search

+3 -3
View File
@@ -28,7 +28,7 @@ func TestProjects_List(t *testing.T) {
org := iam.TestOrg(t, tc.IamRepo())
client.SetScopeId(org.GetPublicId())
scps := scopes.NewScopesClient(client)
scps := scopes.NewClient(client)
pl, apiErr, err := scps.List(tc.Context(), org.GetPublicId())
require.NoError(err)
@@ -77,7 +77,7 @@ func TestProjects_Crud(t *testing.T) {
org, _ := iam.TestScopes(t, tc.IamRepo())
client.SetScopeId(org.GetPublicId())
scps := scopes.NewScopesClient(client)
scps := scopes.NewClient(client)
checkProject := func(step string, s *scopes.Scope, apiErr *api.Error, err error, wantedName string, wantedVersion uint32) {
require.NoError(err, step)
@@ -130,7 +130,7 @@ func TestProject_Errors(t *testing.T) {
org, _ := iam.TestScopes(t, tc.IamRepo())
client.SetScopeId(org.GetPublicId())
scps := scopes.NewScopesClient(client)
scps := scopes.NewClient(client)
createdProj, apiErr, err := scps.Create(tc.Context(), org.GetPublicId())
require.NoError(err)