Search in sources :

Example 6 with CuratorService

use of org.apache.hadoop.registry.client.impl.zk.CuratorService in project hadoop by apache.

the class TestSecureRegistry method testInsecureClientToZK.

@Test
public void testInsecureClientToZK() throws Throwable {
    startSecureZK();
    userZookeeperToCreateRoot();
    RegistrySecurity.clearZKSaslClientProperties();
    CuratorService curatorService = startCuratorServiceInstance("insecure client", false);
    curatorService.zkList("/");
    curatorService.zkMkPath("", CreateMode.PERSISTENT, false, RegistrySecurity.WorldReadWriteACL);
}
Also used : CuratorService(org.apache.hadoop.registry.client.impl.zk.CuratorService) Test(org.junit.Test)

Aggregations

CuratorService (org.apache.hadoop.registry.client.impl.zk.CuratorService)6 Test (org.junit.Test)3 LoginContext (javax.security.auth.login.LoginContext)2 Configuration (org.apache.hadoop.conf.Configuration)2 AbstractZKRegistryTest (org.apache.hadoop.registry.AbstractZKRegistryTest)1 ZKPathDumper (org.apache.hadoop.registry.client.impl.zk.ZKPathDumper)1