From c7b9babf6f993048d79ac1d21beb02ef1e15e1fe Mon Sep 17 00:00:00 2001 From: mionescu Date: Fri, 10 Feb 2017 11:31:06 +0200 Subject: [PATCH] test- updated TC updateProcessVariableTwoUsers --- .../workflow/processes/UpdateProcessVariableTests.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e-test/java/org/alfresco/rest/workflow/processes/UpdateProcessVariableTests.java b/e2e-test/java/org/alfresco/rest/workflow/processes/UpdateProcessVariableTests.java index 4098d7411..51285293d 100644 --- a/e2e-test/java/org/alfresco/rest/workflow/processes/UpdateProcessVariableTests.java +++ b/e2e-test/java/org/alfresco/rest/workflow/processes/UpdateProcessVariableTests.java @@ -59,16 +59,16 @@ public class UpdateProcessVariableTests extends RestTest @Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY }) public void updateProcessVariableTwoUsers() throws Exception { - variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text"); + variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:any"); processModel = restClient.authenticateUser(userWhoStartsProcess).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel(); restClient.withWorkflowAPI().usingProcess(processModel).addProcessVariable(variableModel); restClient.assertStatusCodeIs(HttpStatus.CREATED); - variableModel.setType("d:boolean"); - + + variableModel.setType("d:text"); updatedVariable = restClient.authenticateUser(assignee).withWorkflowAPI().usingProcess(processModel) .updateProcessVariable(variableModel); restClient.assertStatusCodeIs(HttpStatus.OK); - updatedVariable.assertThat().field("type").is("d:boolean"); + updatedVariable.assertThat().field("type").is("d:text"); } @TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, @@ -106,7 +106,7 @@ public class UpdateProcessVariableTests extends RestTest @TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Update existing variable created by the user who started the process using put call with a user that is not involved in the process- value") @Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY }) - public void anyUserCantUpdateProcessVariableValueCreated() throws Exception + public void cantUpdateProcessVariableValueCreatedWithAnyUser() throws Exception { UserModel anotherUser = dataUser.createRandomTestUser(); variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");