assertEquals("anyone", acls.get(0).getId().getId());
}
finally {
// unregistering all users of ZKUtils (i.e. ZKLocksService) will cause it to disconnect so when we set
// "oozie.zookeeper.secure" to true, it will again connect but using SASL/Kerberos
zkls.destroy();
}
// Verify that the expected paths created above still exist with the "world" ACLs
List<ACL> acls = getClient().getZookeeperClient().getZooKeeper().getACL("/oozie", new Stat());
assertEquals(ZooDefs.Perms.ALL, acls.get(0).getPerms());