REPO-2755 / REPO-2251: fixed GetTaskTests#starterUserGetsTaskWithEmptyTaskId test

This commit is contained in:
cagache
2017-10-10 17:14:04 +03:00
parent fe7d64c68b
commit d24494361d
@@ -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);