Wing Lam created AMBARI-23747:
---------------------------------

             Summary: 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


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