PushPermissionsIT: add hint about addPatchSetDenied

Change-Id: I6ccc0a6c518a8f87d103499e6153a98cc331f0c2
This commit is contained in:
Han-Wen Nienhuys
2019-08-13 14:02:18 +02:00
parent 848ed09058
commit 14e3a2829f

View File

@@ -284,6 +284,7 @@ public class PushPermissionsIT extends AbstractDaemonTest {
ObjectId ps1Id = forceFetch(PatchSet.id(id, 1).toRefName());
ObjectId ps2Id = testRepo.amend(ps1Id).add("file", "content").create();
PushResult r = push(ps2Id.name() + ":refs/for/master");
// Admin had ADD_PATCH_SET removed in setup.
assertThat(r)
.onlyRef("refs/for/master")
.isRejected("cannot add patch set to " + id.get() + ".");