Search in sources :

Example 11 with Issue

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

the class EntityUpdateTest method testEntityNameContainsCyrillic.

@Issue("1278")
@Test
public void testEntityNameContainsCyrillic() throws Exception {
    Entity entity = new Entity("update_йёentity3");
    entity.addTag("t1", "tv1");
    createOrReplaceEntityCheck(entity);
    Map<String, String> newTags = new HashMap<>();
    newTags.put("t2", "tv2");
    assertUrlencodedPathHandledSuccessfullyOnUpdate(entity, newTags);
}
Also used : Entity(com.axibase.tsd.api.model.entity.Entity) HashMap(java.util.HashMap) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 12 with Issue

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

the class EntityGroupDeleteTest method testNameContainsCyrillic.

@Issue("1278")
@Test
public void testNameContainsCyrillic() throws Exception {
    EntityGroup entityGroup = new EntityGroup("urlencodedeleteйёentitygroup3");
    assertUrlEncodePathHandledCorrectly(entityGroup);
}
Also used : EntityGroup(com.axibase.tsd.api.model.entitygroup.EntityGroup) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 13 with Issue

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

the class EntityGroupEntitiesSetTest method testUnableMofifyEntitiesWhileExpressionNotEmpty.

@Issue("3041")
@Test
public void testUnableMofifyEntitiesWhileExpressionNotEmpty() throws Exception {
    EntityGroup entityGroup = new EntityGroup("setentities-entitygroup-4");
    entityGroup.setExpression(SYNTAX_ALLOWED_ENTITYGROUP_EXPRESSION);
    createOrReplaceEntityGroupCheck(entityGroup);
    Response response = setEntities(entityGroup.getName(), Collections.singletonList("test-entity"));
    assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());
    final String expected = String.format(CANNOT_MODIFY_ENTITY_TPL, entityGroup.getName());
    final String actual = extractErrorMessage(response);
    assertEquals("Error does not match", expected, actual);
}
Also used : Response(javax.ws.rs.core.Response) EntityGroup(com.axibase.tsd.api.model.entitygroup.EntityGroup) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 14 with Issue

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

the class EntityGroupEntitiesSetTest method testNameContainsSlash.

@Issue("1278")
@Test
public void testNameContainsSlash() throws Exception {
    EntityGroup entityGroup = new EntityGroup("urlencodesetentities/entitygroup2");
    assertUrlEncodePathHandledCorrectly(entityGroup);
}
Also used : EntityGroup(com.axibase.tsd.api.model.entitygroup.EntityGroup) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 15 with Issue

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

the class EntityGroupUpdateTest method testCanSetEmptyTags.

@Issue("3301")
// TODO wait for solution about tag matcher
@Test(enabled = false)
public void testCanSetEmptyTags() throws Exception {
    EntityGroup entityGroup = new EntityGroup("update-entitygroup-5");
    entityGroup.addTag("tagName", "tagValue");
    createOrReplaceEntityGroupCheck(entityGroup);
    entityGroup.setTags(null);
    entityGroup.addTag("*", "");
    assertEquals("Fail to execute updateEntityGroup query", OK.getStatusCode(), updateEntityGroup(entityGroup).getStatus());
    entityGroup.setTags(null);
    assertTrue("Specified entityGroup should not have any tag", entityGroupExist(entityGroup));
}
Also used : EntityGroup(com.axibase.tsd.api.model.entitygroup.EntityGroup) 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