use of com.axibase.tsd.api.model.entitygroup.EntityGroup 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);
}
use of com.axibase.tsd.api.model.entitygroup.EntityGroup 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);
}
use of com.axibase.tsd.api.model.entitygroup.EntityGroup 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);
}
use of com.axibase.tsd.api.model.entitygroup.EntityGroup 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));
}
use of com.axibase.tsd.api.model.entitygroup.EntityGroup in project atsd-api-test by axibase.
the class EntityGroupUpdateTest method testNameContainsSlash.
@Issue("1278")
@Test
public void testNameContainsSlash() throws Exception {
EntityGroup entityGroup = new EntityGroup("urlencodeupdate/entitygroup2");
assertUrlEncodePathHandledCorrectly(entityGroup);
}
Aggregations