()
| 626 | } |
| 627 | |
| 628 | @Test |
| 629 | public void noIntersectionsFound() throws Exception { |
| 630 | threeDifE(); |
| 631 | |
| 632 | String json = JSON.serializeToString(getDefaultQueryBuilder()); |
| 633 | final QueryRpc rpc = new QueryRpc(); |
| 634 | final HttpQuery query = NettyMocks.postQuery(tsdb, |
| 635 | "/api/query/exp", json); |
| 636 | query.getQueryBaseRoute(); // to the correct serializer |
| 637 | NettyMocks.mockChannelFuture(query); |
| 638 | |
| 639 | rpc.execute(tsdb, query); |
| 640 | final String response = |
| 641 | query.response().getContent().toString(Charset.forName("UTF-8")); |
| 642 | assertTrue(response.contains("\"code\":400")); |
| 643 | assertTrue(response.contains("\"message\":\"No intersections found")); |
| 644 | } |
| 645 | |
| 646 | @Test |
| 647 | public void noIntersectionsFoundNestedExpression() throws Exception { |
nothing calls this directly
no test coverage detected