use of com.axibase.tsd.api.method.MethodParameters in project atsd-api-test by axibase.
the class MetricSeriesTagsTest method testMetricSeriesTagsNoSecondTagPattern.
@Issue("4715")
@Test(description = "Test {metric}/series/tags with tags.name as simple name and wildcard")
public void testMetricSeriesTagsNoSecondTagPattern() throws Exception {
MetricSeriesTags expectedTags = new MetricSeriesTags();
MethodParameters parameters = new CustomParameters().addParameter("tags.t1", "x1").addParameter("tags.t2", "*");
MetricSeriesTags responseTags = queryMetricSeriesTags(METRIC_NAME, parameters).readEntity(MetricSeriesTags.class);
assertEquals("Wrong result for {metric}/series/tags with tags.name as simple name and wildcard", expectedTags, responseTags);
}
use of com.axibase.tsd.api.method.MethodParameters in project atsd-api-test by axibase.
the class MetricSeriesTagsTest method testMetricSeriesTagsTagParam.
@Issue("4715")
@Test(description = "Test {metric}/series/tags with single tags parameter")
public void testMetricSeriesTagsTagParam() throws Exception {
MetricSeriesTags expectedTags = new MetricSeriesTags().addTags("t1", "p1", "p2", "v1", "v2", "x1");
MethodParameters parameters = new MetricListParameters().addTag("t1");
MetricSeriesTags responseTags = queryMetricSeriesTags(METRIC_NAME, parameters).readEntity(MetricSeriesTags.class);
assertEquals("Wrong result for {metric}/series/tags with single tags parameter", expectedTags, expectedTags);
}
Aggregations