mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
change status value in test case http
This commit is contained in:
parent
f9fcbc8fbd
commit
7bbfcd1c24
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue