MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / handleTreeQSModify

Method handleTreeQSModify

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

Source from the content-addressed store, hash-verified

226 }
227
228 @Test
229 public void handleTreeQSModify() throws Exception {
230 setupStorage();
231 HttpQuery query = NettyMocks.getQuery(tsdb,
232 "/api/tree?treeid=1&method_override=post&description=HelloWorld");
233 rpc.execute(tsdb, query);
234 assertEquals(HttpResponseStatus.OK, query.response().getStatus());
235 assertTrue(query.response().getContent().toString(MockBase.ASCII())
236 .contains("\"description\":\"HelloWorld\""));
237 assertTrue(query.response().getContent().toString(MockBase.ASCII())
238 .contains("\"name\":\"Test Tree\""));
239 }
240
241 @Test (expected = BadRequestException.class)
242 public void handleTreeQSModifyNotFound() throws Exception {

Callers

nothing calls this directly

Calls 9

setupStorageMethod · 0.95
getQueryMethod · 0.95
ASCIIMethod · 0.95
responseMethod · 0.80
containsMethod · 0.80
executeMethod · 0.65
getStatusMethod · 0.65
toStringMethod · 0.45
getContentMethod · 0.45

Tested by

no test coverage detected