Search in sources :

Example 31 with EntityGroup

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

the class EntityGroupEntitiesGetTest method testNameContainsCyrillic.

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

Example 32 with EntityGroup

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

the class EntityGroupGetTest method testNameContainsWhitespace.

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

Example 33 with EntityGroup

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

the class SeriesQueryEntityExpressionTest method createTestData.

@BeforeClass
public static void createTestData() throws Exception {
    // Create metric
    MetricMethod.createOrReplaceMetricCheck(METRIC);
    // Create series
    for (Series series : SERIES_LIST) {
        SeriesMethod.insertSeriesCheck(Collections.singletonList(series));
    }
    // Create properties
    for (Property property : PROPERTIES) {
        PropertyMethod.insertPropertyCheck(property);
    }
    // Create entity group
    EntityGroup group = new EntityGroup(ENTITY_GROUP_NAME);
    EntityGroupMethod.createOrReplaceEntityGroupCheck(group);
    EntityGroupMethod.addEntities(ENTITY_GROUP_NAME, false, new ArrayList<>(ENTITIES_IN_GROUP));
}
Also used : Series(com.axibase.tsd.api.model.series.Series) EntityGroup(com.axibase.tsd.api.model.entitygroup.EntityGroup) Property(com.axibase.tsd.api.model.property.Property) BeforeClass(org.testng.annotations.BeforeClass)

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