()
| 378 | } |
| 379 | |
| 380 | @Test |
| 381 | public void parseQueryTSUIDTypeMulti() throws Exception { |
| 382 | HttpQuery query = NettyMocks.getQuery(tsdb, |
| 383 | "/api/query?start=1h-ago&tsuid=sum:010101,020202"); |
| 384 | TSQuery tsq = (TSQuery) parseQuery.invoke(rpc, tsdb, query, expressions); |
| 385 | assertNotNull(tsq); |
| 386 | assertEquals("1h-ago", tsq.getStart()); |
| 387 | assertNotNull(tsq.getQueries()); |
| 388 | TSSubQuery sub = tsq.getQueries().get(0); |
| 389 | assertNotNull(sub); |
| 390 | assertEquals("sum", sub.getAggregator()); |
| 391 | assertEquals(2, sub.getTsuids().size()); |
| 392 | assertEquals("010101", sub.getTsuids().get(0)); |
| 393 | assertEquals("020202", sub.getTsuids().get(1)); |
| 394 | } |
| 395 | |
| 396 | @Test |
| 397 | public void parseQuery2TSUIDType() throws Exception { |
nothing calls this directly
no test coverage detected