Search in sources :

Example 16 with EntityGroup

use of com.axibase.tsd.api.model.entitygroup.EntityGroup in project atsd-api-test by axibase.

the class EntityGroupEntitiesDeleteTest method testNameContainsCyrillic.

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

Example 17 with EntityGroup

use of com.axibase.tsd.api.model.entitygroup.EntityGroup in project atsd-api-test by axibase.

the class EntityGroupEntitiesDeleteTest method testUnableMofifyEntitiesWhileExpressionNotEmpty.

@Issue("3041")
@Test
public void testUnableMofifyEntitiesWhileExpressionNotEmpty() throws Exception {
    EntityGroup entityGroup = new EntityGroup("deleteentities-entitygroup-4");
    entityGroup.setExpression(SYNTAX_ALLOWED_ENTITYGROUP_EXPRESSION);
    createOrReplaceEntityGroupCheck(entityGroup);
    Response response = deleteEntities(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(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 18 with EntityGroup

use of com.axibase.tsd.api.model.entitygroup.EntityGroup in project atsd-api-test by axibase.

the class EntityGroupEntitiesDeleteTest method testNameContainsSlash.

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

Example 19 with EntityGroup

use of com.axibase.tsd.api.model.entitygroup.EntityGroup in project atsd-api-test by axibase.

the class EntityGroupEntitiesSetTest method testNameContainsWhitespace.

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

Example 20 with EntityGroup

use of com.axibase.tsd.api.model.entitygroup.EntityGroup in project atsd-api-test by axibase.

the class EntityGroupEntitiesSetTest method testNameContainsCyrillic.

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

Aggregations

EntityGroup (com.axibase.tsd.api.model.entitygroup.EntityGroup)33 Issue (io.qameta.allure.Issue)29 Test (org.testng.annotations.Test)29 Response (javax.ws.rs.core.Response)4 Series (com.axibase.tsd.api.model.series.Series)3 BeforeClass (org.testng.annotations.BeforeClass)3 Entity (com.axibase.tsd.api.model.entity.Entity)1 Metric (com.axibase.tsd.api.model.metric.Metric)1 Property (com.axibase.tsd.api.model.property.Property)1