use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class SeriesQueryAggregateGroupOrderRateTest method testRateLimit.
@Issue("4729")
@Test(description = "test query result with rate limit")
public void testRateLimit() {
SeriesQuery query = new SeriesQuery("*", TEST_METRIC, "2017-01-01T00:00:00Z", "2017-01-01T00:00:20Z");
query.setRate(new Rate(new Period(10, TimeUnit.SECOND)));
query.setLimit(1);
query.setDirection("ASC");
List<Series> result = querySeriesAsList(query);
Series expectedSeries1 = createSeries(TEST_ENTITY1, Sample.ofDateDecimal("2017-01-01T00:00:03.000Z", new BigDecimal("10.0")));
Series expectedSeries2 = createSeries(TEST_ENTITY2, Sample.ofDateDecimal("2017-01-01T00:00:02.000Z", new BigDecimal("10.0")));
assertEquals(result, Arrays.asList(expectedSeries1, expectedSeries2), "Incorrect query result with group limit");
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class AuthenticationTest method seriesQueryTest.
@Issue("2870")
@Test
public void seriesQueryTest() throws Exception {
List<SeriesQuery> seriesQueryList = Collections.singletonList(new SeriesQuery());
Response response = SeriesMethod.executeQueryRaw(seriesQueryList, UNKNOWN_USER, UNKNOWN_USER_PASSWORD);
assertEquals(Response.Status.UNAUTHORIZED.getStatusCode(), response.getStatus());
String errorMessage = extractErrorMessage(response);
assertEquals("Wrong error message", USER_NOT_FOUND, errorMessage);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class AuthenticationTest method seriesUrlQueryTest.
@Issue("2870")
@Test
public void seriesUrlQueryTest() throws Exception {
Response response = SeriesMethod.urlQuerySeries("entity", "metric", OutputFormat.JSON, new HashMap<String, String>(), UNKNOWN_USER, UNKNOWN_USER_PASSWORD);
assertEquals(Response.Status.UNAUTHORIZED.getStatusCode(), response.getStatus());
String errorMessage = extractErrorMessage(response);
assertEquals("Wrong error message", USER_NOT_FOUND, errorMessage);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class AuthenticationTest method seriesInsertTest.
@Issue("2870")
@Test
public void seriesInsertTest() throws Exception {
List<Series> seriesQueryList = Collections.singletonList(new Series());
Response response = SeriesMethod.insertSeries(seriesQueryList, UNKNOWN_USER, UNKNOWN_USER_PASSWORD);
assertEquals(Response.Status.UNAUTHORIZED.getStatusCode(), response.getStatus());
String errorMessage = extractErrorMessage(response);
assertEquals("Wrong error message", USER_NOT_FOUND, errorMessage);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class AuthenticationTest method seriesCSVInsertTest.
@Issue("2870")
@Test
public void seriesCSVInsertTest() throws Exception {
Response response = CSVInsertMethod.csvInsert("entity", "some csv", new HashMap<String, String>(), UNKNOWN_USER, UNKNOWN_USER_PASSWORD);
assertEquals(Response.Status.UNAUTHORIZED.getStatusCode(), response.getStatus());
String errorMessage = extractErrorMessage(response);
assertEquals("Wrong error message", USER_NOT_FOUND, errorMessage);
}
Aggregations