MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / validateTS

Method validateTS

test/core/TestTSSubQuery.java:52–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51
52 @Test
53 public void validateTS() {
54 TSSubQuery sub = getMetricForValidate();
55 sub.setMetric(null);
56 ArrayList<String> tsuids = new ArrayList<String>(1);
57 tsuids.add("ABCD");
58 sub.setTsuids(tsuids);
59 sub.validateAndSetQuery();
60 assertNotNull(sub.getTsuids());
61 assertEquals("wildcard(*)", sub.getTags().get("host"));
62 assertEquals("literal_or(lga)", sub.getTags().get("dc"));
63 assertEquals(Aggregators.SUM, sub.aggregator());
64 assertEquals(Aggregators.AVG, sub.downsampler());
65 assertEquals(300000, sub.downsampleInterval());
66 }
67
68 @Test
69 public void validateNoDS() {

Callers

nothing calls this directly

Calls 11

getMetricForValidateMethod · 0.95
setMetricMethod · 0.95
setTsuidsMethod · 0.95
validateAndSetQueryMethod · 0.95
getTsuidsMethod · 0.95
getTagsMethod · 0.95
aggregatorMethod · 0.95
downsamplerMethod · 0.95
downsampleIntervalMethod · 0.95
addMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected