feat: add flags for remotes, replications, and functions to auth create (#325)

This commit is contained in:
Daniel Moran
2021-11-10 11:33:01 -05:00
committed by GitHub
parent 1eadcf12e1
commit 99791bafd3
14 changed files with 144 additions and 78 deletions

View File

@ -15,7 +15,7 @@ type Client struct {
api.AuthorizationsApi
api.UsersApi
api.OrganizationsApi
api.ResourceListApi
api.ResourcesApi
}
const (

View File

@ -395,7 +395,7 @@ func TestClient_RemoveMembers(t *testing.T) {
req := api.ApiDeleteOrgsIDMembersIDRequest{ApiService: orgApi}.OrgID(id1.String()).UserID(id2.String())
orgApi.EXPECT().
DeleteOrgsIDMembersID(gomock.Any(), gomock.Eq(id2.String()), gomock.Eq(id1.String()), ).Return(req)
DeleteOrgsIDMembersID(gomock.Any(), gomock.Eq(id2.String()), gomock.Eq(id1.String())).Return(req)
orgApi.EXPECT().DeleteOrgsIDMembersIDExecute(gomock.Eq(req)).Return(nil)
},
expectedOut: "user \"2222222222222222\" has been removed from org \"1111111111111111\"",