()
| 363 | } |
| 364 | |
| 365 | @Test |
| 366 | public void parseQueryTSUIDType() throws Exception { |
| 367 | HttpQuery query = NettyMocks.getQuery(tsdb, |
| 368 | "/api/query?start=1h-ago&tsuid=sum:010101"); |
| 369 | TSQuery tsq = (TSQuery) parseQuery.invoke(rpc, tsdb, query, expressions); |
| 370 | assertNotNull(tsq); |
| 371 | assertEquals("1h-ago", tsq.getStart()); |
| 372 | assertNotNull(tsq.getQueries()); |
| 373 | TSSubQuery sub = tsq.getQueries().get(0); |
| 374 | assertNotNull(sub); |
| 375 | assertEquals("sum", sub.getAggregator()); |
| 376 | assertEquals(1, sub.getTsuids().size()); |
| 377 | assertEquals("010101", sub.getTsuids().get(0)); |
| 378 | } |
| 379 | |
| 380 | @Test |
| 381 | public void parseQueryTSUIDTypeMulti() throws Exception { |
nothing calls this directly
no test coverage detected