public class TestZooKeeperACL extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestZooKeeperACL.DummySecurityConfiguration |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static boolean |
secureZKAvailable |
private static HBaseTestingUtility |
TEST_UTIL |
private static org.apache.hadoop.hbase.zookeeper.ZKWatcher |
zkw |
Constructor and Description |
---|
TestZooKeeperACL() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testAdminDrainAllowedOnSecureZK() |
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 |
testIsZooKeeperSecureWithProgrammaticConfig()
Check if Programmatic way of setting zookeeper security settings 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 final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw
private static boolean secureZKAvailable
public TestZooKeeperACL()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testHBaseRootZNodeACL() throws Exception
Exception
public void testHBaseRootRegionServerZNodeACL() throws Exception
Exception
public void testHBaseMasterServerZNodeACL() throws Exception
Exception
public void testHBaseIDZNodeACL() throws Exception
Exception
public void testOutsideHBaseNodeACL() throws Exception
Exception
public void testIsZooKeeperSecure() throws Exception
Exception
public void testIsZooKeeperSecureWithProgrammaticConfig() throws Exception
Exception
public void testAdminDrainAllowedOnSecureZK() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.