You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "kirby zhou (Jira)" <ji...@apache.org> on 2022/03/02 09:04:00 UTC

[jira] [Commented] (RANGER-2095) Add unit tests for new read only admin-auditor/kms-auditor roles functionality

    [ https://issues.apache.org/jira/browse/RANGER-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499991#comment-17499991 ] 

kirby zhou commented on RANGER-2095:
------------------------------------

Even the 2 class member is invalid usage of @Mock.

currentUserSession and vXResponse is not member of RangerBizUtil, and can not be injected.

 
{code:java}
@Mock
UserSessionBase currentUserSession;
@Mock
VXResponse vXResponse; {code}

> Add unit tests for new read only admin-auditor/kms-auditor roles functionality
> ------------------------------------------------------------------------------
>
>                 Key: RANGER-2095
>                 URL: https://issues.apache.org/jira/browse/RANGER-2095
>             Project: Ranger
>          Issue Type: Improvement
>          Components: Ranger
>            Reporter: Bhavik Patel
>            Assignee: Bhavik Patel
>            Priority: Critical
>             Fix For: 1.1.0
>
>         Attachments: RANGER-2095-master.patch
>
>
> Add unit tests for new read only admin-auditor/kms-auditor roles functionality



--
This message was sent by Atlassian Jira
(v8.20.1#820001)