mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
test: annotate failedAddingProcessItemIfInvalidProcessIdIsProvided with @bug
fix: getProcessVariablesUsingInvalidProcessId (created one process before test)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user