AbstractSubmit: Include error message when submit fails
Change-Id: Idf7501017d8457fdd42f7e933a6e906c282426ee
This commit is contained in:
parent
b009b9d9e2
commit
c51d432769
@ -211,7 +211,9 @@ public abstract class AbstractSubmit extends AbstractDaemonTest {
|
|||||||
SubmitInput subm = new SubmitInput();
|
SubmitInput subm = new SubmitInput();
|
||||||
RestResponse r =
|
RestResponse r =
|
||||||
adminSession.post("/changes/" + changeId + "/submit", subm);
|
adminSession.post("/changes/" + changeId + "/submit", subm);
|
||||||
assertThat(r.getStatusCode()).isEqualTo(expectedStatus);
|
assertThat(r.getStatusCode())
|
||||||
|
.named("Status code [" + r.getEntityContent() + "]")
|
||||||
|
.isEqualTo(expectedStatus);
|
||||||
if (expectedStatus == HttpStatus.SC_OK) {
|
if (expectedStatus == HttpStatus.SC_OK) {
|
||||||
checkArgument(msg == null, "msg must be null for successful submits");
|
checkArgument(msg == null, "msg must be null for successful submits");
|
||||||
ChangeInfo change =
|
ChangeInfo change =
|
||||||
|
Loading…
Reference in New Issue
Block a user