mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
fix getOneRandomEntry
This commit is contained in:
@@ -19,7 +19,7 @@ import org.springframework.http.HttpStatus;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.SANITY, TestGroup.SANITY })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.COMMENTS, TestGroup.SANITY })
|
||||
public class AddCommentSanityTests extends RestTest
|
||||
{
|
||||
@Autowired
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 10/10/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.SANITY, TestGroup.SANITY })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.COMMENTS, TestGroup.SANITY })
|
||||
public class AddCommentsSanityTests extends RestTest
|
||||
{
|
||||
@Autowired RestCommentsApi commentsAPI;
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.BeforeMethod;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.SANITY, TestGroup.SANITY })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.COMMENTS, TestGroup.SANITY })
|
||||
public class DeleteCommentsSanityTests extends RestTest
|
||||
{
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import org.springframework.http.HttpStatus;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.SANITY, TestGroup.SANITY })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.COMMENTS, TestGroup.SANITY })
|
||||
public class GetCommentsSanityTests extends RestTest
|
||||
{
|
||||
@Autowired
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.springframework.http.HttpStatus;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.SANITY, TestGroup.SANITY })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.COMMENTS, TestGroup.SANITY })
|
||||
public class UpdateCommentsSanityTests extends RestTest
|
||||
{
|
||||
@Autowired
|
||||
|
||||
+3
-3
@@ -54,7 +54,7 @@ public class UpdateProcessVariableSanityTests extends RestWorkflowTest
|
||||
{
|
||||
restClient.authenticateUser(adminUser);
|
||||
RestProcessVariableModel variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
processModel = processesApi.getProcesses().getOneEntry();
|
||||
processModel = processesApi.getProcesses().getOneRandomEntry();
|
||||
processesApi.updateProcessVariable(processModel, variableModel);
|
||||
processesApi.getProcessesVariables(processModel).assertProcessVariableExists(variableModel);
|
||||
processesApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK);
|
||||
@@ -66,7 +66,7 @@ public class UpdateProcessVariableSanityTests extends RestWorkflowTest
|
||||
{
|
||||
restClient.authenticateUser(adminUser);
|
||||
RestProcessVariableModel variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
processModel = processesApi.getProcesses().getOneEntry();
|
||||
processModel = processesApi.getProcesses().getOneRandomEntry();
|
||||
processesApi.addProcessVariable(processModel, variableModel);
|
||||
variableModel.setValue("newValue");
|
||||
processesApi.updateProcessVariable(processModel, variableModel).assertProcessVariableHasValue("newValue");
|
||||
@@ -79,7 +79,7 @@ public class UpdateProcessVariableSanityTests extends RestWorkflowTest
|
||||
{
|
||||
restClient.authenticateUser(adminUser);
|
||||
RestProcessVariableModel variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
processModel = processesApi.getProcesses().getOneEntry();
|
||||
processModel = processesApi.getProcesses().getOneRandomEntry();
|
||||
processModel.onModel().setId("abc");
|
||||
processesApi.updateProcessVariable(processModel, variableModel);
|
||||
processesApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.NOT_FOUND);
|
||||
|
||||
Reference in New Issue
Block a user