MCPcopy
hub / github.com/OpenTSDB/opentsdb / searchAnnotation

Method searchAnnotation

test/tsd/TestSearchRpc.java:131–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 }
130
131 @Test
132 public void searchAnnotation() throws Exception {
133 setupAnswerSearchQuery();
134 final HttpQuery query = NettyMocks.getQuery(tsdb,
135 "/api/search/annotation?query=*");
136 rpc.execute(tsdb, query);
137 assertEquals(HttpResponseStatus.OK, query.response().getStatus());
138 final String result = query.response().getContent().toString(UTF);
139 assertTrue(result.contains("\"results\":[{\"tsuid\""));
140 assertEquals(1, search_query.getResults().size());
141 }
142
143 @Test
144 public void searchEmptyResultSet() throws Exception {

Callers

nothing calls this directly

Calls 10

getQueryMethod · 0.95
responseMethod · 0.80
containsMethod · 0.80
executeMethod · 0.65
getStatusMethod · 0.65
sizeMethod · 0.65
getResultsMethod · 0.65
toStringMethod · 0.45
getContentMethod · 0.45

Tested by

no test coverage detected