From 551c04f173f5f481c245959d63f738d29b2d8cca Mon Sep 17 00:00:00 2001 From: mbertozzi Date: Fri, 15 Mar 2013 13:21:53 +0000 Subject: [PATCH] HBASE-8118 TestTablePermission depends on the execution order git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1456946 13f79535-47bb-0310-9956-ffa450edef68 --- .../hbase/security/access/TestTablePermissions.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestTablePermissions.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestTablePermissions.java index 75e80430211..86d874a897a 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestTablePermissions.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestTablePermissions.java @@ -48,6 +48,7 @@ import org.apache.hadoop.hbase.security.User; import org.apache.hadoop.hbase.util.Bytes; import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher; import org.apache.hadoop.io.Text; +import org.junit.After; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; @@ -107,6 +108,13 @@ public class TestTablePermissions { UTIL.shutdownMiniCluster(); } + @After + public void tearDown() throws Exception { + Configuration conf = UTIL.getConfiguration(); + AccessControlLists.removeTablePermissions(conf, TEST_TABLE); + AccessControlLists.removeTablePermissions(conf, TEST_TABLE2); + AccessControlLists.removeTablePermissions(conf, AccessControlLists.ACL_TABLE_NAME); + } /** * Test we can read permissions serialized with Writables.