AbstractQueryChangesTest: Add byMessageSubstring test
Bug: Issue 9146 Change-Id: I11d8f4da87a0e27e9117e2c0087cbaff5d185338
This commit is contained in:
@@ -650,6 +650,14 @@ public abstract class AbstractQueryChangesTest extends GerritServerTests {
|
|||||||
assertQuery("message:Gerrit", change2, change1);
|
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
|
@Test
|
||||||
public void byLabel() throws Exception {
|
public void byLabel() throws Exception {
|
||||||
accountManager.authenticate(AuthRequest.forUser("anotheruser"));
|
accountManager.authenticate(AuthRequest.forUser("anotheruser"));
|
||||||
|
|||||||
Reference in New Issue
Block a user