Skip to content

Commit

Permalink
fix TestListClientsTest
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene authored and dborovcanin committed Jul 3, 2024
1 parent 2739eaf commit cd2654c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions things/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,15 +622,6 @@ func TestListClients(t *testing.T) {
ObjectType: "domain",
Object: tc.identifyResponse.DomainId,
}).Return(tc.authorizeResponse1, tc.authorizeErr1)
authorizeCall3 := auth.On("Authorize", context.Background(), &magistrala.AuthorizeReq{
Domain: domainID,
SubjectType: authsvc.UserType,
SubjectKind: authsvc.UsersKind,
Subject: tc.identifyResponse.UserId,
Permission: "view",
ObjectType: "thing",
Object: client.ID,
}).Return(tc.authorizeResponse2, tc.authorizeErr2)
listAllObjectsCall := auth.On("ListAllObjects", mock.Anything, mock.Anything).Return(tc.listObjectsResponse, tc.listObjectsErr)
retrieveAllCall := cRepo.On("SearchClients", mock.Anything, mock.Anything).Return(tc.retrieveAllResponse, tc.retrieveAllErr)
listPermissionsCall := auth.On("ListPermissions", mock.Anything, mock.Anything).Return(tc.listPermissionsResponse, tc.listPermissionsErr)
Expand All @@ -644,7 +635,6 @@ func TestListClients(t *testing.T) {
listAllObjectsCall.Unset()
retrieveAllCall.Unset()
listPermissionsCall.Unset()
authorizeCall3.Unset()
}

cases2 := []struct {
Expand Down

0 comments on commit cd2654c

Please sign in to comment.