diff --git a/internal/dinosaur/pkg/services/dinosaurservice_moq.go b/internal/dinosaur/pkg/services/dinosaurservice_moq.go index 7384a289f8..83c8b02d58 100644 --- a/internal/dinosaur/pkg/services/dinosaurservice_moq.go +++ b/internal/dinosaur/pkg/services/dinosaurservice_moq.go @@ -61,15 +61,9 @@ var _ DinosaurService = &DinosaurServiceMock{} // HasAvailableCapacityInRegionFunc: func(dinosaurRequest *dbapi.CentralRequest) (bool, *serviceError.ServiceError) { // panic("mock out the HasAvailableCapacityInRegion method") // }, -// IsQuotaEntitlementActiveFunc: func(centralRequest *dbapi.CentralRequest) (bool, error) { -// panic("mock out the IsQuotaEntitlementActive method") -// }, // ListFunc: func(ctx context.Context, listArgs *services.ListArguments) (dbapi.CentralList, *api.PagingMeta, *serviceError.ServiceError) { // panic("mock out the List method") // }, -// ListAllFunc: func() (dbapi.CentralList, *serviceError.ServiceError) { -// panic("mock out the ListAll method") -// }, // ListByClusterIDFunc: func(clusterID string) ([]*dbapi.CentralRequest, *serviceError.ServiceError) { // panic("mock out the ListByClusterID method") // }, @@ -149,15 +143,9 @@ type DinosaurServiceMock struct { // HasAvailableCapacityInRegionFunc mocks the HasAvailableCapacityInRegion method. HasAvailableCapacityInRegionFunc func(dinosaurRequest *dbapi.CentralRequest) (bool, *serviceError.ServiceError) - // IsQuotaEntitlementActiveFunc mocks the IsQuotaEntitlementActive method. - IsQuotaEntitlementActiveFunc func(centralRequest *dbapi.CentralRequest) (bool, error) - // ListFunc mocks the List method. ListFunc func(ctx context.Context, listArgs *services.ListArguments) (dbapi.CentralList, *api.PagingMeta, *serviceError.ServiceError) - // ListAllFunc mocks the ListAll method. - ListAllFunc func() (dbapi.CentralList, *serviceError.ServiceError) - // ListByClusterIDFunc mocks the ListByClusterID method. ListByClusterIDFunc func(clusterID string) ([]*dbapi.CentralRequest, *serviceError.ServiceError) @@ -260,11 +248,6 @@ type DinosaurServiceMock struct { // DinosaurRequest is the dinosaurRequest argument value. DinosaurRequest *dbapi.CentralRequest } - // IsQuotaEntitlementActive holds details about calls to the IsQuotaEntitlementActive method. - IsQuotaEntitlementActive []struct { - // CentralRequest is the centralRequest argument value. - CentralRequest *dbapi.CentralRequest - } // List holds details about calls to the List method. List []struct { // Ctx is the ctx argument value. @@ -272,9 +255,6 @@ type DinosaurServiceMock struct { // ListArgs is the listArgs argument value. ListArgs *services.ListArguments } - // ListAll holds details about calls to the ListAll method. - ListAll []struct { - } // ListByClusterID holds details about calls to the ListByClusterID method. ListByClusterID []struct { // ClusterID is the clusterID argument value. @@ -354,9 +334,7 @@ type DinosaurServiceMock struct { lockGetByID sync.RWMutex lockGetCNAMERecordStatus sync.RWMutex lockHasAvailableCapacityInRegion sync.RWMutex - lockIsQuotaEntitlementActive sync.RWMutex lockList sync.RWMutex - lockListAll sync.RWMutex lockListByClusterID sync.RWMutex lockListByStatus sync.RWMutex lockListCentralsWithoutAuthConfig sync.RWMutex @@ -762,38 +740,6 @@ func (mock *DinosaurServiceMock) HasAvailableCapacityInRegionCalls() []struct { return calls } -// IsQuotaEntitlementActive calls IsQuotaEntitlementActiveFunc. -func (mock *DinosaurServiceMock) IsQuotaEntitlementActive(centralRequest *dbapi.CentralRequest) (bool, error) { - if mock.IsQuotaEntitlementActiveFunc == nil { - panic("DinosaurServiceMock.IsQuotaEntitlementActiveFunc: method is nil but DinosaurService.IsQuotaEntitlementActive was just called") - } - callInfo := struct { - CentralRequest *dbapi.CentralRequest - }{ - CentralRequest: centralRequest, - } - mock.lockIsQuotaEntitlementActive.Lock() - mock.calls.IsQuotaEntitlementActive = append(mock.calls.IsQuotaEntitlementActive, callInfo) - mock.lockIsQuotaEntitlementActive.Unlock() - return mock.IsQuotaEntitlementActiveFunc(centralRequest) -} - -// IsQuotaEntitlementActiveCalls gets all the calls that were made to IsQuotaEntitlementActive. -// Check the length with: -// -// len(mockedDinosaurService.IsQuotaEntitlementActiveCalls()) -func (mock *DinosaurServiceMock) IsQuotaEntitlementActiveCalls() []struct { - CentralRequest *dbapi.CentralRequest -} { - var calls []struct { - CentralRequest *dbapi.CentralRequest - } - mock.lockIsQuotaEntitlementActive.RLock() - calls = mock.calls.IsQuotaEntitlementActive - mock.lockIsQuotaEntitlementActive.RUnlock() - return calls -} - // List calls ListFunc. func (mock *DinosaurServiceMock) List(ctx context.Context, listArgs *services.ListArguments) (dbapi.CentralList, *api.PagingMeta, *serviceError.ServiceError) { if mock.ListFunc == nil { @@ -830,33 +776,6 @@ func (mock *DinosaurServiceMock) ListCalls() []struct { return calls } -// ListAll calls ListAllFunc. -func (mock *DinosaurServiceMock) ListAll() (dbapi.CentralList, *serviceError.ServiceError) { - if mock.ListAllFunc == nil { - panic("DinosaurServiceMock.ListAllFunc: method is nil but DinosaurService.ListAll was just called") - } - callInfo := struct { - }{} - mock.lockListAll.Lock() - mock.calls.ListAll = append(mock.calls.ListAll, callInfo) - mock.lockListAll.Unlock() - return mock.ListAllFunc() -} - -// ListAllCalls gets all the calls that were made to ListAll. -// Check the length with: -// -// len(mockedDinosaurService.ListAllCalls()) -func (mock *DinosaurServiceMock) ListAllCalls() []struct { -} { - var calls []struct { - } - mock.lockListAll.RLock() - calls = mock.calls.ListAll - mock.lockListAll.RUnlock() - return calls -} - // ListByClusterID calls ListByClusterIDFunc. func (mock *DinosaurServiceMock) ListByClusterID(clusterID string) ([]*dbapi.CentralRequest, *serviceError.ServiceError) { if mock.ListByClusterIDFunc == nil {