AbstractQueryChangesTest: Test visibleto predicate with a group
Bug: Issue 10144 Change-Id: I598a509fb51af664519f7a479b63ffdad001b68b
This commit is contained in:
@@ -1709,6 +1709,10 @@ public abstract class AbstractQueryChangesTest extends GerritServerTests {
|
||||
accountManager.authenticate(AuthRequest.forUser("anotheruser")).getAccountId();
|
||||
assertQuery(q + " visibleto:" + user2.get(), change1);
|
||||
|
||||
String g1 = createGroup("group1", "Administrators");
|
||||
gApi.groups().id(g1).addMembers("anotheruser");
|
||||
assertQuery(q + " visibleto:" + g1, change1);
|
||||
|
||||
requestContext.setContext(
|
||||
newRequestContext(
|
||||
accountManager.authenticate(AuthRequest.forUser("anotheruser")).getAccountId()));
|
||||
|
||||
Reference in New Issue
Block a user