MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / handleTreePOSTCreate

Method handleTreePOSTCreate

test/tsd/TestTreeRpc.java:218–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216 }
217
218 @Test
219 public void handleTreePOSTCreate() throws Exception {
220 setupStorage();
221 HttpQuery query = NettyMocks.postQuery(tsdb,
222 "/api/tree", "{\"name\":\"New Tree\"}");
223 rpc.execute(tsdb, query);
224 assertEquals(HttpResponseStatus.OK, query.response().getStatus());
225 assertEquals(1, storage.numColumns(TREE_TABLE, new byte[] { 0, 3 }));
226 }
227
228 @Test
229 public void handleTreeQSModify() throws Exception {

Callers

nothing calls this directly

Calls 6

setupStorageMethod · 0.95
postQueryMethod · 0.95
responseMethod · 0.80
numColumnsMethod · 0.80
executeMethod · 0.65
getStatusMethod · 0.65

Tested by

no test coverage detected