accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject [1/2] git commit: ACCUMULO-2840 turn audit logging back on for the IT
Date Wed, 04 Jun 2014 20:25:09 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master 168811d68 -> a7884bbea


ACCUMULO-2840 turn audit logging back on for the IT


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/66f31280
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/66f31280
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/66f31280

Branch: refs/heads/master
Commit: 66f3128030274b2134798fb61db5638dfef9b7f4
Parents: 60b5a1c
Author: Eric C. Newton <eric.newton@gmail.com>
Authored: Wed Jun 4 16:23:45 2014 -0400
Committer: Eric C. Newton <eric.newton@gmail.com>
Committed: Wed Jun 4 16:23:45 2014 -0400

----------------------------------------------------------------------
 test/src/test/java/org/apache/accumulo/test/AuditMessageIT.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/66f31280/test/src/test/java/org/apache/accumulo/test/AuditMessageIT.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/test/AuditMessageIT.java b/test/src/test/java/org/apache/accumulo/test/AuditMessageIT.java
index 6e01ffb..1730b14 100644
--- a/test/src/test/java/org/apache/accumulo/test/AuditMessageIT.java
+++ b/test/src/test/java/org/apache/accumulo/test/AuditMessageIT.java
@@ -46,6 +46,7 @@ import org.apache.accumulo.core.security.Authorizations;
 import org.apache.accumulo.core.security.SystemPermission;
 import org.apache.accumulo.core.security.TablePermission;
 import org.apache.accumulo.minicluster.impl.MiniAccumuloClusterImpl;
+import org.apache.accumulo.minicluster.impl.MiniAccumuloConfigImpl;
 import org.apache.accumulo.server.security.AuditedSecurityOperation;
 import org.apache.accumulo.test.functional.ConfigurableMacIT;
 import org.apache.commons.io.FileUtils;
@@ -69,6 +70,10 @@ public class AuditMessageIT extends ConfigurableMacIT {
   private static final String NEW_TEST_TABLE_NAME = "oranges";
   private static final String THIRD_TEST_TABLE_NAME = "pears";
   private static final Authorizations auths = new Authorizations("private", "public");
+  
+  public void beforeClusterStart(MiniAccumuloConfigImpl cfg) throws Exception {
+    new File(cfg.getConfDir(), "auditLog.xml").delete();
+  }
 
   // Must be static to survive Junit re-initialising the class every time.
   private static String lastAuditTimestamp;


Mime
View raw message