change status value in test case http

This commit is contained in:
cloverhearts 2017-01-07 01:01:30 -08:00
parent f9fcbc8fbd
commit 7bbfcd1c24

View file

@ -121,7 +121,7 @@ public class InterpreterRestApiTest extends AbstractTestRestApi {
InterpreterSetting created = convertResponseToInterpreterSetting(postResponse);
String newSettingId = created.getId();
// then : call create setting API
assertThat("test create method:", post, isCreated());
assertThat("test create method:", post, isAllowed());
post.releaseConnection();
// when: call read setting API
@ -168,7 +168,7 @@ public class InterpreterRestApiTest extends AbstractTestRestApi {
" }]," +
"\"option\": { \"remote\": true, \"session\": false }}";
PostMethod post = httpPost("/interpreter/setting", reqBody1);
assertThat("test create method:", post, isCreated());
assertThat("test create method:", post, isAllowed());
post.releaseConnection();
String reqBody2 = "{\"name\":\"" + md2Name + "\",\"group\":\"md\",\"properties\":{\"propname\":\"propvalue\"}," +
@ -179,7 +179,7 @@ public class InterpreterRestApiTest extends AbstractTestRestApi {
" }]," +
"\"option\": { \"remote\": true, \"session\": false }}";
post = httpPost("/interpreter/setting", reqBody2);
assertThat("test create method:", post, isCreated());
assertThat("test create method:", post, isAllowed());
post.releaseConnection();
// 1. Call settings API
@ -349,7 +349,7 @@ public class InterpreterRestApiTest extends AbstractTestRestApi {
"\",\"url\":\"https://repo1.maven.org/maven2\",\"snapshot\":\"false\"}";
PostMethod post = httpPost("/interpreter/repository/", jsonRequest);
assertThat("Test create method:", post, isCreated());
assertThat("Test create method:", post, isAllowed());
post.releaseConnection();
// Call delete repository API