use of org.apache.zeppelin.lens.LensInterpreter in project zeppelin by apache.
the class LensInterpreterTest method test.
@Test
public void test() {
Properties prop = new Properties();
prop.setProperty(LENS_SERVER_URL, "http://127.0.0.1:9999/lensapi");
prop.setProperty(LENS_CLIENT_DBNAME, "default");
prop.setProperty(LENS_PERSIST_RESULTSET, "false");
prop.setProperty(LENS_SESSION_CLUSTER_USER, "default");
prop.setProperty(ZEPPELIN_MAX_ROWS, "1000");
prop.setProperty(ZEPPELIN_LENS_RUN_CONCURRENT_SESSION, "true");
prop.setProperty(ZEPPELIN_LENS_CONCURRENT_SESSIONS, "10");
LensInterpreter t = new MockLensInterpreter(prop);
t.open();
//simple help test
InterpreterResult result = t.interpret("help", null);
assertEquals(result.message().get(0).getType(), InterpreterResult.Type.TEXT);
//assertEquals("unable to find 'query execute' in help message",
// result.message().contains("query execute"), result.message());
t.close();
}
Aggregations