mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
REPO-2755 / REPO-2251: fixed GetTaskTests#starterUserGetsTaskWithEmptyTaskId test
This commit is contained in:
@@ -133,7 +133,10 @@ public class GetTaskTests extends RestTest
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify user who started a task gets the task with empty taskId with Rest API")
|
||||
public void starterUserGetsTaskWithEmptyTaskId() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(userModel).withWorkflowAPI();
|
||||
UserModel userWhoStartsTask = dataUser.createRandomTestUser();
|
||||
taskModel = dataWorkflow.usingUser(userWhoStartsTask).usingSite(siteModel).usingResource(fileModel).createNewTaskAndAssignTo(userWhoStartsTask);
|
||||
|
||||
restClient.authenticateUser(userWhoStartsTask).withWorkflowAPI();
|
||||
RestRequest request = RestRequest.simpleRequest(HttpMethod.GET, "tasks/{taskId}", "");
|
||||
RestTaskModelsCollection tasks = restClient.processModels(RestTaskModelsCollection.class, request);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user