use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class EntityGroupUpdateTest method testNameContainsSlash.
@Issue("1278")
@Test
public void testNameContainsSlash() throws Exception {
EntityGroup entityGroup = new EntityGroup("urlencodeupdate/entitygroup2");
assertUrlEncodePathHandledCorrectly(entityGroup);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class EntityGroupUpdateTest method testNameContainsCyrillic.
@Issue("1278")
@Test
public void testNameContainsCyrillic() throws Exception {
EntityGroup entityGroup = new EntityGroup("urlencodeupdateйёentitygroup3");
assertUrlEncodePathHandledCorrectly(entityGroup);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class MessageQueryStatsTest method testAggregateUnknownRaiseError.
@Issue("2945")
@Test
public void testAggregateUnknownRaiseError() throws Exception {
MessageStatsQuery statsQuery = prepareSimpleMessageStatsQuery(MESSAGE_STATS_ENTITY);
statsQuery.setAggregate(new Aggregate(AggregationType.SUM));
Response response = queryMessageStats(statsQuery);
assertEquals("Query with unknown aggregate type should fail", BAD_REQUEST.getStatusCode(), response.getStatus());
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class MessageQueryStatsTest method testAggregateDetail.
@Issue("2945")
@Test(enabled = false)
public void testAggregateDetail() throws Exception {
MessageStatsQuery statsQuery = prepareSimpleMessageStatsQuery(MESSAGE_STATS_ENTITY);
statsQuery.setAggregate(new Aggregate(AggregationType.DETAIL));
List<Series> messageStatsList = queryMessageStatsReturnSeries(statsQuery);
assertEquals("Response should contain only 1 series", 1, messageStatsList.size());
List<Sample> samples = messageStatsList.get(0).getData();
assertEquals("Response should contain only 1 sample", 1, samples.size());
assertEquals("Message count mismatch", new BigDecimal(DATES.size()), samples.get(0).getValue());
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class MessageSeverityQueryTest method testMinSeverityCaseInsensitive.
@Issue("2917")
@Test(dataProvider = "severities", description = "minSeverity is case insensitive")
public void testMinSeverityCaseInsensitive(Severity severity) throws Exception {
messageQuery.setMinSeverity(properCase(severity.name()));
List<Message> messages = queryMessageResponse(messageQuery).readEntity(new GenericType<List<Message>>() {
});
Integer minimumSeverity = severity.getNumVal();
for (Message m : messages) {
int actualSeverity = valueOf(m.getSeverity()).getNumVal();
String errMessage = String.format("Received severity (%d) should be greater than minSeverity (%d)", actualSeverity, minimumSeverity);
assertTrue(errMessage, actualSeverity >= minimumSeverity);
}
}
Aggregations