Verify change and commit messages in cherry-pick test
Change-Id: I87d4954c523c02024d0895b946ef9489ccb3e84f
This commit is contained in:

committed by
Edwin Kempin

parent
e43ab40ec2
commit
e6c82b7ba7
@@ -136,13 +136,18 @@ public class RevisionIT extends AbstractDaemonTest {
|
|||||||
.name(project.get())
|
.name(project.get())
|
||||||
.branch(in.destination)
|
.branch(in.destination)
|
||||||
.create(new BranchInput());
|
.create(new BranchInput());
|
||||||
ChangeApi cApi = gApi.changes()
|
ChangeApi orig = gApi.changes()
|
||||||
.id(r.getChangeId())
|
.id("p~master~" + r.getChangeId());
|
||||||
.revision(r.getCommit().name())
|
|
||||||
|
assertEquals(1, orig.get().messages.size());
|
||||||
|
ChangeApi cherry = orig.revision(r.getCommit().name())
|
||||||
.cherryPick(in);
|
.cherryPick(in);
|
||||||
cApi.current()
|
assertEquals(2, orig.get().messages.size());
|
||||||
|
|
||||||
|
assertTrue(cherry.get().subject.contains(in.message));
|
||||||
|
cherry.current()
|
||||||
.review(ReviewInput.approve());
|
.review(ReviewInput.approve());
|
||||||
cApi.current()
|
cherry.current()
|
||||||
.submit();
|
.submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user