Search in sources :

Example 6 with Issue

use of io.qameta.allure.Issue in project atsd-api-test by axibase.

the class EntityCommandTest method testAddNewEntityTagsMailformedForNewEntity.

@Issue("3111")
@Test
public void testAddNewEntityTagsMailformedForNewEntity() throws Exception {
    Entity entity = new Entity("ent-for-test-add-tags-mailformed");
    entity.addTag("hello 1", "world");
    PlainCommand command = new EntityCommand(entity);
    CommandSendingResult expectedResult = new CommandSendingResult(1, 0);
    assertEquals(expectedResult, CommandMethod.send(command));
}
Also used : Entity(com.axibase.tsd.api.model.entity.Entity) PlainCommand(com.axibase.tsd.api.model.command.PlainCommand) CommandSendingResult(com.axibase.tsd.api.model.extended.CommandSendingResult) EntityCommand(com.axibase.tsd.api.model.command.EntityCommand) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 7 with Issue

use of io.qameta.allure.Issue in project atsd-api-test by axibase.

the class EntityDeleteTest method testEntityNameContainsSlash.

@Issue("1278")
@Test
public void testEntityNameContainsSlash() throws Exception {
    final Entity entity = new Entity("deleteentity/2");
    createOrReplaceEntityCheck(entity);
    assertEquals("Fail to execute deleteEntity query", OK.getStatusCode(), deleteEntity(entity.getName()).getStatus());
    assertFalse("Entity should be deleted", entityExist(entity));
}
Also used : Entity(com.axibase.tsd.api.model.entity.Entity) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 8 with Issue

use of io.qameta.allure.Issue in project atsd-api-test by axibase.

the class EntityDeleteTest method testEntityNameContainsCyrillic.

@Issue("1278")
@Test
public void testEntityNameContainsCyrillic() throws Exception {
    Entity entity = new Entity("deleteйёentity3");
    createOrReplaceEntityCheck(entity);
    assertEquals("Fail to execute deleteEntity query", OK.getStatusCode(), deleteEntity(entity.getName()).getStatus());
    assertFalse("Entity should be deleted", entityExist(entity));
}
Also used : Entity(com.axibase.tsd.api.model.entity.Entity) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 9 with Issue

use of io.qameta.allure.Issue in project atsd-api-test by axibase.

the class EntityGetTest method testEntityNameContainsSlash.

@Issue("1278")
@Test
public void testEntityNameContainsSlash() throws Exception {
    Entity entity = new Entity("getentity/2");
    createOrReplaceEntityCheck(entity);
    assertEntityExisting(entity);
}
Also used : Entity(com.axibase.tsd.api.model.entity.Entity) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 10 with Issue

use of io.qameta.allure.Issue in project atsd-api-test by axibase.

the class EntityUpdateTest method testEntityNameContainsWhitespace.

@Issue("1278")
@Test
public void testEntityNameContainsWhitespace() throws Exception {
    Entity entity = new Entity("updateentity 1");
    assertEquals("Method should fail if entityName contains whitespace", BAD_REQUEST.getStatusCode(), updateEntity(entity).getStatus());
}
Also used : Entity(com.axibase.tsd.api.model.entity.Entity) 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