mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
[ZEPPELIN-2714] Fixed broken unit-test
This commit is contained in:
parent
edf29cc1ed
commit
278a23ee31
1 changed files with 4 additions and 5 deletions
|
|
@ -54,7 +54,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
|
|||
*/
|
||||
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||
public class InterpreterRestApiTest extends AbstractTestRestApi {
|
||||
Gson gson = new Gson();
|
||||
private Gson gson = new Gson();
|
||||
private AuthenticationInfo anonymous;
|
||||
|
||||
@BeforeClass
|
||||
|
|
@ -367,13 +367,12 @@ public class InterpreterRestApiTest extends AbstractTestRestApi {
|
|||
|
||||
@Test
|
||||
public void testGetMetadataInfo() throws IOException {
|
||||
String rawRequest = "{\"name\":\"spark\",\"group\":\"spark\"," +
|
||||
"\"properties\":{\"propname\":\"propvalue\"}," +
|
||||
String jsonRequest = "{\"name\":\"spark\",\"group\":\"spark\"," +
|
||||
"\"properties\":{\"propname\": {\"value\": \"propvalue\", \"name\": \"propname\", \"type\": \"textarea\"}}," +
|
||||
"\"interpreterGroup\":[{\"class\":\"org.apache.zeppelin.markdown.Markdown\",\"name\":\"md\"}]," +
|
||||
"\"dependencies\":[]," +
|
||||
"\"option\": { \"remote\": true, \"session\": false }}";
|
||||
JsonObject jsonRequest = gson.fromJson(rawRequest, JsonElement.class).getAsJsonObject();
|
||||
PostMethod post = httpPost("/interpreter/setting/", jsonRequest.toString());
|
||||
PostMethod post = httpPost("/interpreter/setting/", jsonRequest);
|
||||
InterpreterSetting created = convertResponseToInterpreterSetting(post.getResponseBodyAsString());
|
||||
String settingId = created.getId();
|
||||
Map<String, String> infos = new java.util.HashMap<>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue