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
This commit is contained in:
mbertozzi 2013-03-15 13:21:53 +00:00
parent 76dbb6f616
commit 551c04f173
1 changed files with 8 additions and 0 deletions

View File

@ -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.