test: annotate failedAddingProcessItemIfInvalidProcessIdIsProvided with @bug

fix: getProcessVariablesUsingInvalidProcessId (created one process before test)
This commit is contained in:
Paul Brodner
2016-12-14 19:47:06 +02:00
parent 90e71607df
commit a23afd2a83
2 changed files with 3 additions and 0 deletions
@@ -113,6 +113,7 @@ public class AddProcessItemCoreTests extends RestTest
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
description = "Adding process item is falling in case of invalid process id is provided")
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
@Bug(id="AUTOMATION", description="Please fix this issue. It seems it's failing with 400 or 404 error code on 5.2")
public void failedAddingProcessItemIfInvalidProcessIdIsProvided() throws Exception
{
RestProcessModelsCollection processes = restClient.authenticateUser(adminUser).withParams("maxItems=1").withWorkflowAPI().getProcesses();
@@ -2,6 +2,7 @@ package org.alfresco.rest.workflow.processes;
import org.alfresco.dataprep.CMISUtil;
import org.alfresco.dataprep.CMISUtil.DocumentType;
import org.alfresco.dataprep.CMISUtil.Priority;
import org.alfresco.rest.RestTest;
import org.alfresco.rest.exception.JsonToModelConversionException;
import org.alfresco.rest.model.RestErrorModel;
@@ -79,6 +80,7 @@ public class GetProcessVariablesCoreTests extends RestTest
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
public void getProcessVariablesUsingInvalidProcessId() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(userWhoStartsTask).withParams("maxItems=2").withWorkflowAPI().addProcess("activitiAdhoc", assignee, false, Priority.Normal);
RestProcessModelsCollection processes = restClient.authenticateUser(userWhoStartsTask).withParams("maxItems=2").withWorkflowAPI().getProcesses();
processModel = processes.assertThat().entriesListIsNotEmpty().when().getOneRandomEntry().onModel();