From cd2654c3fdc066be5ad9c26493efeefe697ec946 Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Tue, 2 Jul 2024 23:06:22 +0300 Subject: [PATCH] fix TestListClientsTest Signed-off-by: nyagamunene --- things/service_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/things/service_test.go b/things/service_test.go index 07ae189b32a..721c147e0a0 100644 --- a/things/service_test.go +++ b/things/service_test.go @@ -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) @@ -644,7 +635,6 @@ func TestListClients(t *testing.T) { listAllObjectsCall.Unset() retrieveAllCall.Unset() listPermissionsCall.Unset() - authorizeCall3.Unset() } cases2 := []struct {