AbstractQueryChangesTest: Add byMessageSubstring test

Bug: Issue 9146
Change-Id: I11d8f4da87a0e27e9117e2c0087cbaff5d185338
This commit is contained in:
David Pursehouse
2018-06-12 14:04:27 +09:00
parent 1c31e2cb7b
commit 92f93d0a34

View File

@@ -650,6 +650,14 @@ public abstract class AbstractQueryChangesTest extends GerritServerTests {
assertQuery("message:Gerrit", change2, change1);
}
@Test
public void byMessageSubstring() throws Exception {
TestRepository<Repo> repo = createProject("repo");
RevCommit commit1 = repo.parseBody(repo.commit().message("https://gerrit.local").create());
Change change1 = insert(repo, newChangeForCommit(repo, commit1));
assertQuery("message:gerrit", change1);
}
@Test
public void byLabel() throws Exception {
accountManager.authenticate(AuthRequest.forUser("anotheruser"));