| 242 | } |
| 243 | |
| 244 | @Test |
| 245 | public void getTSMetasMultipleResults() throws Exception { |
| 246 | tags.clear(); |
| 247 | query = new TSUIDQuery(tsdb, METRIC_STRING, tags); |
| 248 | final List<TSMeta> tsmetas = query.getTSMetas().joinUninterruptibly(); |
| 249 | assertEquals(2, tsmetas.size()); |
| 250 | assertEquals(METRIC_STRING, tsmetas.get(0).getMetric().getName()); |
| 251 | assertEquals(TAGK_STRING, tsmetas.get(0).getTags().get(0).getName()); |
| 252 | assertEquals(TAGV_STRING, tsmetas.get(0).getTags().get(1).getName()); |
| 253 | assertEquals(METRIC_STRING, tsmetas.get(1).getMetric().getName()); |
| 254 | assertEquals(TAGK_STRING, tsmetas.get(1).getTags().get(0).getName()); |
| 255 | assertEquals(TAGV_B_STRING, tsmetas.get(1).getTags().get(1).getName()); |
| 256 | } |
| 257 | |
| 258 | @Test |
| 259 | public void getTSMetasMultipleTags() throws Exception { |