Search in sources :

Example 6 with MethodParameters

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);
}
Also used : MetricSeriesTags(com.axibase.tsd.api.model.series.metric.MetricSeriesTags) MethodParameters(com.axibase.tsd.api.method.MethodParameters) CustomParameters(com.axibase.tsd.api.method.CustomParameters) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 7 with MethodParameters

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);
}
Also used : MetricSeriesTags(com.axibase.tsd.api.model.series.metric.MetricSeriesTags) MethodParameters(com.axibase.tsd.api.method.MethodParameters) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Aggregations

MethodParameters (com.axibase.tsd.api.method.MethodParameters)7 MetricSeriesTags (com.axibase.tsd.api.model.series.metric.MetricSeriesTags)7 Issue (io.qameta.allure.Issue)7 Test (org.testng.annotations.Test)7 CustomParameters (com.axibase.tsd.api.method.CustomParameters)6