[ 
https://issues.apache.org/jira/browse/AMBARI-23747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wing Lam updated AMBARI-23747:
------------------------------
    External issue URL:   (was: https://github.com/apache/ambari/pull/1162)

> Clearing security context in AuditEventCreatorTestBase helps pass many tests
> ----------------------------------------------------------------------------
>
>                 Key: AMBARI-23747
>                 URL: https://issues.apache.org/jira/browse/AMBARI-23747
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Wing Lam
>            Priority: Minor
>
> Test classes that extend AuditEventCreatorTestBase (i.e. 
> ViewPrivilegeEventCreatorTest) invoke a beforeclass that sets up a security 
> context for these tests. The uncleared security context affected numerous 
> following tests that used method isAuthorized from the AuthorizationHelper 
> class. 
>  
> This can be fixed by clearing the security context, as shown in the pull 
> request.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to