mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
TAS-1611, for invalid itemId return 404
This commit is contained in:
@@ -69,4 +69,16 @@ public class RemoveTaskItemSanityTests extends RestWorkflowTest
|
||||
tasksApi.deleteTaskItem(taskModel, taskItem);
|
||||
tasksApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.TASKS }, executionType = ExecutionType.SANITY,
|
||||
description = "Try to Delete existing task item using invalid itemId")
|
||||
public void deleteTaskItemUsingInvalidItemId() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(adminUser);
|
||||
document2 = dataContent.usingSite(siteModel).createContent(DocumentType.XML);
|
||||
taskItem = tasksApi.addTaskItem(taskModel, document2);
|
||||
taskItem.setId("incorrectItemId");
|
||||
tasksApi.deleteTaskItem(taskModel, taskItem);
|
||||
tasksApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.NOT_FOUND);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user