Search in sources :

Example 21 with Issue

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"));
}
Also used : JSONObject(org.json.JSONObject) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 22 with Issue

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);
}
Also used : Message(com.axibase.tsd.api.model.message.Message) PlainCommand(com.axibase.tsd.api.model.command.PlainCommand) MessageCommand(com.axibase.tsd.api.model.command.MessageCommand) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 23 with Issue

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);
}
Also used : Message(com.axibase.tsd.api.model.message.Message) PlainCommand(com.axibase.tsd.api.model.command.PlainCommand) MessageCommand(com.axibase.tsd.api.model.command.MessageCommand) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 24 with Issue

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);
}
Also used : Message(com.axibase.tsd.api.model.message.Message) PlainCommand(com.axibase.tsd.api.model.command.PlainCommand) MessageCommand(com.axibase.tsd.api.model.command.MessageCommand) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 25 with Issue

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);
}
Also used : Message(com.axibase.tsd.api.model.message.Message) PlainCommand(com.axibase.tsd.api.model.command.PlainCommand) MessageCommand(com.axibase.tsd.api.model.command.MessageCommand) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Aggregations

Issue (io.qameta.allure.Issue)858 Test (org.testng.annotations.Test)857 SqlTest (com.axibase.tsd.api.method.sql.SqlTest)377 StringTable (com.axibase.tsd.api.model.sql.StringTable)270 Response (javax.ws.rs.core.Response)234 List (java.util.List)166 SeriesQuery (com.axibase.tsd.api.model.series.query.SeriesQuery)145 Series (com.axibase.tsd.api.model.series.Series)88 Property (com.axibase.tsd.api.model.property.Property)84 BigDecimal (java.math.BigDecimal)53 Metric (com.axibase.tsd.api.model.metric.Metric)50 Period (com.axibase.tsd.api.model.Period)47 PropertyQuery (com.axibase.tsd.api.model.property.PropertyQuery)44 Entity (com.axibase.tsd.api.model.entity.Entity)43 ArrayList (java.util.ArrayList)37 Message (com.axibase.tsd.api.model.message.Message)32 PlainCommand (com.axibase.tsd.api.model.command.PlainCommand)31 HashMap (java.util.HashMap)30 EntityGroup (com.axibase.tsd.api.model.entitygroup.EntityGroup)29 Aggregate (com.axibase.tsd.api.model.series.query.transformation.aggregate.Aggregate)29