ProjectIT: Add tests for ref-updated events on project creation

When a new project is created its refs/meta/config branch is created
with the project's initial config. This should result in a ref-updated
event being emitted.

These tests don't create the project with an initial empty commit,
so there should therefore be no corresponding ref-updated event for
the refs/heads/master branch.

Change-Id: I5fadc4b8221637807aaa3275783cbb1228c6bbc9
This commit is contained in:
David Pursehouse
2016-07-01 11:19:59 +09:00
parent e3757f9428
commit 349e4026be
2 changed files with 19 additions and 0 deletions

View File

@@ -867,6 +867,11 @@ public abstract class AbstractDaemonTest {
}
}
protected RevCommit getRemoteHead(String project, String branch)
throws Exception {
return getRemoteHead(new Project.NameKey(project), branch);
}
protected RevCommit getRemoteHead() throws Exception {
return getRemoteHead(project, "master");
}