accumulo-commits mailing list archives

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


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/168811d6
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/168811d6
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/168811d6

Branch: refs/heads/master
Commit: 168811d68ba2a21cd37b91bfc491651d4f1de529
Parents: 2cad992
Author: Eric C. Newton <eric.newton@gmail.com>
Authored: Wed Jun 4 16:17:58 2014 -0400
Committer: Eric C. Newton <eric.newton@gmail.com>
Committed: Wed Jun 4 16:17:58 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/168811d6/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 ef13f64..38869a3 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