use of com.axibase.tsd.api.model.entitygroup.EntityGroup in project atsd-api-test by axibase.
the class EntityGroupUpdateTest method testNameContainsCyrillic.
@Issue("1278")
@Test
public void testNameContainsCyrillic() throws Exception {
EntityGroup entityGroup = new EntityGroup("urlencodeupdateйёentitygroup3");
assertUrlEncodePathHandledCorrectly(entityGroup);
}
use of com.axibase.tsd.api.model.entitygroup.EntityGroup in project atsd-api-test by axibase.
the class EntityGroupCreateOrReplaceTest method testNameContainsCyrillic.
@Issue("1278")
@Test
public void testNameContainsCyrillic() throws Exception {
EntityGroup entityGroup = new EntityGroup("urlencodecreateReplaceйёentitygroup3");
assertUrlEncodePathHandledCorrectly(entityGroup);
}
use of com.axibase.tsd.api.model.entitygroup.EntityGroup in project atsd-api-test by axibase.
the class EntityGroupEntitiesAddTest method testNameContainsSlash.
@Issue("1278")
@Test
public void testNameContainsSlash() throws Exception {
EntityGroup entityGroup = new EntityGroup("urlencodeaddentities/entitygroup2");
assertUrlEncodePathHandledCorrectly(entityGroup);
}
use of com.axibase.tsd.api.model.entitygroup.EntityGroup in project atsd-api-test by axibase.
the class EntityGroupEntitiesAddTest method testUnableMofifyEntitiesWhileExpressionNotEmpty.
@Issue("3041")
@Test
public void testUnableMofifyEntitiesWhileExpressionNotEmpty() throws Exception {
EntityGroup entityGroup = new EntityGroup("addentities-entitygroup-4");
entityGroup.setExpression(SYNTAX_ALLOWED_ENTITYGROUP_EXPRESSION);
createOrReplaceEntityGroupCheck(entityGroup);
Response response = addEntities(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);
}
use of com.axibase.tsd.api.model.entitygroup.EntityGroup in project atsd-api-test by axibase.
the class EntityGroupEntitiesGetTest method testNameContainsWhitespace.
@Issue("1278")
@Test
public void testNameContainsWhitespace() throws Exception {
EntityGroup entityGroup = new EntityGroup("urlencodegetentities entitygroup1");
assertUrlEncodePathHandledCorrectly(entityGroup);
}
Aggregations