Merge branch 'stable-2.10'
* stable-2.10: Update 2.10 release notes Fix faulty behaviour in BLOCK permission Let RefControlTest be responsible for creating own test projects Resource exhausted because of unclosed LDAP connection Conflicts: gerrit-server/src/test/java/com/google/gerrit/server/project/Util.java Change-Id: I5e8a98365ce583cbd62c9289e49af8d5c1e755b1
This commit is contained in:
@@ -370,6 +370,17 @@ public class RefControlTest {
|
||||
assertFalse("u can't vote 2", range.contains(2));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInheritSubmit_AllowInChildDoesntAffectUnblockInParent() {
|
||||
block(parent, SUBMIT, ANONYMOUS_USERS, "refs/heads/*");
|
||||
allow(parent, SUBMIT, REGISTERED_USERS, "refs/heads/*");
|
||||
allow(local, SUBMIT, REGISTERED_USERS, "refs/heads/*");
|
||||
|
||||
ProjectControl u = util.user(local);
|
||||
assertFalse("not blocked from submitting", u.controlForRef(
|
||||
"refs/heads/master").isBlocked(SUBMIT));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnblockNoForce() {
|
||||
block(local, PUSH, ANONYMOUS_USERS, "refs/heads/*");
|
||||
|
||||
Reference in New Issue
Block a user