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:
parent
76dbb6f616
commit
551c04f173
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue