You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ad...@apache.org on 2018/05/03 11:19:26 UTC
[ambari] branch trunk updated: Clear security context in
AuditEventCreatorTestBase (#1162)
This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new ceb3e25 Clear security context in AuditEventCreatorTestBase (#1162)
ceb3e25 is described below
commit ceb3e2503d8f7c4c852d536760232c8440f9d4c2
Author: liiabutler <li...@yahoo.com>
AuthorDate: Thu May 3 06:19:23 2018 -0500
Clear security context in AuditEventCreatorTestBase (#1162)
---
.../server/audit/request/creator/AuditEventCreatorTestBase.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/audit/request/creator/AuditEventCreatorTestBase.java b/ambari-server/src/test/java/org/apache/ambari/server/audit/request/creator/AuditEventCreatorTestBase.java
index e0eef08..28d56f7 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/audit/request/creator/AuditEventCreatorTestBase.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/audit/request/creator/AuditEventCreatorTestBase.java
@@ -21,6 +21,7 @@ package org.apache.ambari.server.audit.request.creator;
import java.util.Collection;
import java.util.Collections;
+import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
@@ -81,4 +82,8 @@ public class AuditEventCreatorTestBase {
}
});
}
+ @AfterClass
+ public static void afterClass(){
+ SecurityContextHolder.clearContext();
+ }
}
--
To stop receiving notification emails like this one, please contact
adoroszlai@apache.org.