use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class MessageSeverityQueryTest method testUnknownSeverityRaiseError.
@Issue("2917")
@Test(dataProvider = "unknownSeverities", description = "unknown severity name or code raise error")
public void testUnknownSeverityRaiseError(Object o) throws Exception {
messageQuery.setSeverity(String.valueOf(o));
String response = queryMessageResponse(messageQuery).readEntity(String.class);
JSONObject error = new JSONObject(response);
assertTrue("Error if not raised", error.has("error"));
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class BackslashNoEscapeTest method testText.
@Issue("2854")
@Test
public void testText() throws Exception {
Message message = new Message("message-command-test-e9", "message-command-test-t9");
message.setMessage("mess\\age9");
message.setDate(getCurrentDate());
PlainCommand command = new MessageCommand(message);
CommandMethod.send(command);
assertMessageExisting("Inserted message can not be received", message);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class BackslashNoEscapeTest method testEntity.
@Issue("2854")
@Test
public void testEntity() throws Exception {
Message message = new Message("message-command-test\\-e7", "message-command-test-t7");
message.setMessage("message7");
message.setDate(getCurrentDate());
PlainCommand command = new MessageCommand(message);
CommandMethod.send(command);
assertMessageExisting("Inserted message can not be received", message);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class DoubleBackslashNoEscapeTest method testEntity.
@Issue("2854")
@Test
public void testEntity() throws Exception {
Message message = new Message("message-command-test\\\\-e10", "message-command-test-t10");
message.setMessage("message10");
message.setDate(getCurrentDate());
PlainCommand command = new MessageCommand(message);
CommandMethod.send(command);
assertMessageExisting("Inserted message can not be received", message);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class DoubleBackslashNoEscapeTest method testText.
@Issue("2854")
@Test
public void testText() throws Exception {
Message message = new Message("message-command-test-e12", "message-command-test-t12");
message.setMessage("mess\\\\age12");
message.setDate(getCurrentDate());
PlainCommand command = new MessageCommand(message);
CommandMethod.send(command);
assertMessageExisting("Inserted message can not be received", message);
}
Aggregations