use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class EntityCommandTest method testAddNewEntityTagsMailformedForNewEntity.
@Issue("3111")
@Test
public void testAddNewEntityTagsMailformedForNewEntity() throws Exception {
Entity entity = new Entity("ent-for-test-add-tags-mailformed");
entity.addTag("hello 1", "world");
PlainCommand command = new EntityCommand(entity);
CommandSendingResult expectedResult = new CommandSendingResult(1, 0);
assertEquals(expectedResult, CommandMethod.send(command));
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class EntityDeleteTest method testEntityNameContainsSlash.
@Issue("1278")
@Test
public void testEntityNameContainsSlash() throws Exception {
final Entity entity = new Entity("deleteentity/2");
createOrReplaceEntityCheck(entity);
assertEquals("Fail to execute deleteEntity query", OK.getStatusCode(), deleteEntity(entity.getName()).getStatus());
assertFalse("Entity should be deleted", entityExist(entity));
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class EntityDeleteTest method testEntityNameContainsCyrillic.
@Issue("1278")
@Test
public void testEntityNameContainsCyrillic() throws Exception {
Entity entity = new Entity("deleteйёentity3");
createOrReplaceEntityCheck(entity);
assertEquals("Fail to execute deleteEntity query", OK.getStatusCode(), deleteEntity(entity.getName()).getStatus());
assertFalse("Entity should be deleted", entityExist(entity));
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class EntityGetTest method testEntityNameContainsSlash.
@Issue("1278")
@Test
public void testEntityNameContainsSlash() throws Exception {
Entity entity = new Entity("getentity/2");
createOrReplaceEntityCheck(entity);
assertEntityExisting(entity);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class EntityUpdateTest method testEntityNameContainsWhitespace.
@Issue("1278")
@Test
public void testEntityNameContainsWhitespace() throws Exception {
Entity entity = new Entity("updateentity 1");
assertEquals("Method should fail if entityName contains whitespace", BAD_REQUEST.getStatusCode(), updateEntity(entity).getStatus());
}
Aggregations