Remove unnecessary use of "group.config" file name in GroupsIT
The tests don't care which file is modified. It's only important to which branch the commits are pushed as we block all commits (no matter which content) to the group branches in the All-Users repository (but not to similarly named branches in other repositories). Change-Id: I4f4fbe48e9b99f2c29ccd2fa1d65d0a793a0d92d
This commit is contained in:
@@ -73,7 +73,6 @@ import com.google.gerrit.reviewdb.client.RefNames;
|
||||
import com.google.gerrit.server.account.GroupIncludeCache;
|
||||
import com.google.gerrit.server.group.InternalGroup;
|
||||
import com.google.gerrit.server.group.SystemGroupBackend;
|
||||
import com.google.gerrit.server.group.db.GroupConfig;
|
||||
import com.google.gerrit.server.group.db.Groups;
|
||||
import com.google.gerrit.server.group.db.GroupsConsistencyChecker;
|
||||
import com.google.gerrit.server.index.group.GroupIndexer;
|
||||
@@ -986,13 +985,7 @@ public class GroupsIT extends AbstractDaemonTest {
|
||||
repo.reset("groupRef");
|
||||
PushOneCommit.Result r =
|
||||
pushFactory
|
||||
.create(
|
||||
db,
|
||||
admin.getIdent(),
|
||||
repo,
|
||||
"Update group config",
|
||||
GroupConfig.GROUP_CONFIG_FILE,
|
||||
"some content")
|
||||
.create(db, admin.getIdent(), repo, "Update group", "arbitraryFile.txt", "some content")
|
||||
.to(groupRefName);
|
||||
if (expectedErrorOnUpdate != null) {
|
||||
r.assertErrorStatus(expectedErrorOnUpdate);
|
||||
@@ -1008,13 +1001,7 @@ public class GroupsIT extends AbstractDaemonTest {
|
||||
TestRepository<InMemoryRepository> repo = cloneProject(project);
|
||||
PushOneCommit.Result r =
|
||||
pushFactory
|
||||
.create(
|
||||
db,
|
||||
admin.getIdent(),
|
||||
repo,
|
||||
"Update group config",
|
||||
GroupConfig.GROUP_CONFIG_FILE,
|
||||
"some content")
|
||||
.create(db, admin.getIdent(), repo, "Update group", "arbitraryFile.txt", "some content")
|
||||
.setParents(ImmutableList.of())
|
||||
.to(RefNames.REFS_GROUPS + name("bar"));
|
||||
if (expectedErrorOnCreate != null) {
|
||||
|
||||
Reference in New Issue
Block a user