You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Wing Lam (JIRA)" <ji...@apache.org> on 2018/05/02 23:08:00 UTC

[jira] [Created] (AMBARI-23747) Clearing security context in AuditEventCreatorTestBase helps pass many tests

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)