public virtual void TestUserHomedirsPermissionsRestricted() { // test that the /users/$user permissions are restricted RMRegistryOperationsService rmRegistryOperations = StartRMRegistryOperations(); // create Alice's dir, so it should have an ACL for Alice string home = rmRegistryOperations.InitUserRegistry(Alice); IList <ACL> acls = rmRegistryOperations.ZkGetACLS(home); ACL aliceACL = null; foreach (ACL acl in acls) { Log.Info(RegistrySecurity.AclToString(acl)); ID id = acl.GetId(); if (id.GetScheme().Equals(ZookeeperConfigOptions.SchemeSasl) && id.GetId().StartsWith (Alice)) { aliceACL = acl; break; } } NUnit.Framework.Assert.IsNotNull(aliceACL); NUnit.Framework.Assert.AreEqual(RegistryAdminService.UserHomedirAclPermissions, aliceACL .GetPerms()); }