()
| 325 | } |
| 326 | |
| 327 | @Test |
| 328 | public void parseQueryMTypeWExplicitAndRate() throws Exception { |
| 329 | HttpQuery query = NettyMocks.getQuery(tsdb, |
| 330 | "/api/query?start=1h-ago&m=sum:explicit_tags:rate:sys.cpu.0{host=web01}"); |
| 331 | TSQuery tsq = (TSQuery) parseQuery.invoke(rpc, tsdb, query, expressions); |
| 332 | TSSubQuery sub = tsq.getQueries().get(0); |
| 333 | assertNotNull(sub.getTags()); |
| 334 | assertEquals("literal_or(web01)", sub.getTags().get("host")); |
| 335 | assertTrue(sub.getRate()); |
| 336 | assertTrue(sub.getExplicitTags()); |
| 337 | } |
| 338 | |
| 339 | @Test |
| 340 | public void parseQueryMTypeWExplicitAndRateAndDS() throws Exception { |
nothing calls this directly
no test coverage detected