zeroflag commented on a change in pull request #537:
URL: https://github.com/apache/knox/pull/537#discussion_r814151484



##########
File path: 
gateway-provider-identity-assertion-common/src/test/java/org/apache/knox/gateway/identityasserter/filter/CommonIdentityAssertionFilterTest.java
##########
@@ -74,6 +76,7 @@ public String mapUserPrincipal(String principalName) {
         return super.combineGroupMappings(mappedGroups, groups);
       }
     };
+    ThreadContext.put(MDC_AUDIT_CONTEXT_KEY, "dummy");

Review comment:
       The test fails with an NPE if there is no AuditContext 
(auditService.getContext() returns null). It is just for making the test work.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@knox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to