Add REST endpoint for commit included in

+ API and acceptance tests for {Change,Commit}IncludedIn

Change-Id: I5000cc90b8f0457e2b7594e86e9165f1a6cb8aa5
This commit is contained in:
Gustaf Lundh
2016-10-19 23:19:08 +02:00
committed by David Pursehouse
parent 0fd8d6c208
commit 1386d59c01
13 changed files with 340 additions and 49 deletions

View File

@@ -23,6 +23,7 @@ import static com.google.gerrit.reviewdb.client.Patch.MERGE_LIST;
import static com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS;
import static java.util.stream.Collectors.toList;
import static org.eclipse.jgit.lib.Constants.HEAD;
import static org.eclipse.jgit.lib.Constants.R_TAGS;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
@@ -1046,6 +1047,12 @@ public abstract class AbstractDaemonTest {
return getRemoteHead(project, "master");
}
protected void grantTagPermissions() throws Exception {
grant(Permission.CREATE, project, R_TAGS + "*");
grant(Permission.CREATE_TAG, project, R_TAGS + "*");
grant(Permission.CREATE_SIGNED_TAG, project, R_TAGS + "*");
}
protected void assertMailFrom(Message message, String email)
throws Exception {
assertThat(message.headers()).containsKey("Reply-To");