RM-6796 Added automated tests for Declare and file to a record folder functionality

This commit is contained in:
cagache
2019-04-25 15:05:18 +03:00
parent e8725860eb
commit 86128a66b3
9 changed files with 245 additions and 7 deletions

View File

@@ -100,10 +100,16 @@ public class DeclareDocumentAsRecordTests extends BaseRMRestTest
* And it is now a record
* And it remains a secondary child of the starting location where I can still view it
* <pre>
*
* RM-6779
* Given I declare a record using the v1 API
* When I do not provide a location parameter
* Then the record is declared in the unfiled folder
*
* @throws Exception for malformed JSON API response
*/
@Test(description = "User with correct permissions can declare document as a record")
@AlfrescoTest(jira = "RM-4429")
@AlfrescoTest(jira = "RM-4429, RM-6779")
public void userWithPrivilegesCanDeclareDocumentAsRecord() throws Exception
{
// create document in a folder in a collaboration site

View File

@@ -68,7 +68,7 @@ public class FileRecordsTests extends BaseRMRestTest
{
private UnfiledContainerChild electronicRecord = UnfiledContainerChild.builder()
.name(ELECTRONIC_RECORD_NAME)
.nodeType(CONTENT_TYPE.toString())
.nodeType(CONTENT_TYPE)
.content(RecordContent.builder().mimeType("text/plain").build())
.build();
@@ -78,14 +78,14 @@ public class FileRecordsTests extends BaseRMRestTest
.title("Title")
.build())
.name(NONELECTRONIC_RECORD_NAME)
.nodeType(NON_ELECTRONIC_RECORD_TYPE.toString())
.nodeType(NON_ELECTRONIC_RECORD_TYPE)
.build();
/**
* Invalid containers where electronic and non-electronic records can be filed
*/
@DataProvider (name = "invalidContainersToFile")
public String[][] getFolderContainers() throws Exception
public Object[][] getFolderContainers() throws Exception
{
return new String[][] {
{ FILE_PLAN_ALIAS},