fix wrong test verification of http response status, should return 403

not 201.

Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
This commit is contained in:
Michael Hirsch
2016-02-04 15:49:45 +01:00
parent f18825ce34
commit 543849db98

View File

@@ -75,7 +75,7 @@ public class RolloutResourceTest extends AbstractIntegrationTest {
mvc.perform(post("/rest/v1/rollouts")
.content(JsonBuilder.rollout("name", "desc", 10, dsA.getId(), "name==test", null))
.contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))
.andDo(MockMvcResultPrinter.print()).andExpect(status().isCreated()).andReturn();
.andDo(MockMvcResultPrinter.print()).andExpect(status().is(403)).andReturn();
}
@Test