public class TestZooKeeperACL
extends java.lang.Object
| Constructor and Description |
|---|
TestZooKeeperACL() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testHBaseIDZNodeACL()
When authentication is enabled on Zookeeper, /hbase/hbaseid should be
created with 2 ACLs: one specifies that the hbase user has full access
to the node; the other, that it is world-readable.
|
void |
testHBaseMasterServerZNodeACL()
When authentication is enabled on Zookeeper, /hbase/master should be
created with 2 ACLs: one specifies that the hbase user has full access
to the node; the other, that it is world-readable.
|
void |
testHBaseRootRegionServerZNodeACL()
When authentication is enabled on Zookeeper, /hbase/root-region-server
should be created with 2 ACLs: one specifies that the hbase user has
full access to the node; the other, that it is world-readable.
|
void |
testHBaseRootZNodeACL()
Create a node and check its ACL.
|
void |
testIsZooKeeperSecure()
Check if ZooKeeper JaasConfiguration is valid.
|
void |
testOutsideHBaseNodeACL()
Finally, we check the ACLs of a node outside of the /hbase hierarchy and
verify that its ACL is simply 'hbase:Perms.ALL'.
|
public static void setUpBeforeClass()
throws java.lang.Exception
java.lang.Exceptionpublic static void tearDownAfterClass()
throws java.lang.Exception
java.lang.Exceptionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testHBaseRootZNodeACL()
throws java.lang.Exception
java.lang.Exceptionpublic void testHBaseRootRegionServerZNodeACL()
throws java.lang.Exception
java.lang.Exceptionpublic void testHBaseMasterServerZNodeACL()
throws java.lang.Exception
java.lang.Exceptionpublic void testHBaseIDZNodeACL()
throws java.lang.Exception
java.lang.Exceptionpublic void testOutsideHBaseNodeACL()
throws java.lang.Exception
java.lang.Exceptionpublic void testIsZooKeeperSecure()
throws java.lang.Exception
java.lang.Exception