From f6680cfc1909887db90cccdd07a7b25d6849e57f Mon Sep 17 00:00:00 2001 From: Paul Brodner Date: Thu, 15 Dec 2016 17:22:58 +0200 Subject: [PATCH] fix: add processes creation before get one --- .../processes/DeleteProcessVariableSanityTests.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/e2e-test/java/org/alfresco/rest/workflow/processes/DeleteProcessVariableSanityTests.java b/e2e-test/java/org/alfresco/rest/workflow/processes/DeleteProcessVariableSanityTests.java index 11811c17a..20b71a373 100644 --- a/e2e-test/java/org/alfresco/rest/workflow/processes/DeleteProcessVariableSanityTests.java +++ b/e2e-test/java/org/alfresco/rest/workflow/processes/DeleteProcessVariableSanityTests.java @@ -1,11 +1,15 @@ package org.alfresco.rest.workflow.processes; import org.alfresco.dataprep.CMISUtil.DocumentType; +import org.alfresco.dataprep.CMISUtil.Priority; import org.alfresco.rest.RestTest; import org.alfresco.rest.model.RestErrorModel; import org.alfresco.rest.model.RestProcessModel; import org.alfresco.rest.model.RestProcessVariableModel; -import org.alfresco.utility.model.*; +import org.alfresco.utility.model.FileModel; +import org.alfresco.utility.model.SiteModel; +import org.alfresco.utility.model.TestGroup; +import org.alfresco.utility.model.UserModel; import org.alfresco.utility.testrail.ExecutionType; import org.alfresco.utility.testrail.annotation.TestRail; import org.springframework.http.HttpStatus; @@ -40,6 +44,7 @@ public class DeleteProcessVariableSanityTests extends RestTest public void deleteProcessVariable() throws Exception { variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text"); + restClient.authenticateUser(adminUser).withWorkflowAPI().addProcess("activitiAdhoc", adminUser, false, Priority.Normal); processModel = restClient.authenticateUser(adminUser).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel(); restClient.withWorkflowAPI().usingProcess(processModel).addProcessVariable(variableModel); restClient.assertStatusCodeIs(HttpStatus.CREATED);