mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-7093 Update item location to include the provenience site
This commit is contained in:
@@ -32,6 +32,7 @@ import static org.alfresco.rest.rm.community.base.TestData.HOLD_DESCRIPTION;
|
||||
import static org.alfresco.rest.rm.community.base.TestData.HOLD_REASON;
|
||||
import static org.alfresco.rest.rm.community.model.audit.AuditEvents.ADD_TO_HOLD;
|
||||
import static org.alfresco.rest.rm.community.util.CommonTestUtils.generateTestPrefix;
|
||||
import static org.alfresco.rest.rm.community.utils.RMSiteUtil.FILE_PLAN_PATH;
|
||||
import static org.alfresco.utility.Utility.buildPath;
|
||||
import static org.alfresco.utility.Utility.removeLastSlash;
|
||||
import static org.alfresco.utility.data.RandomData.getRandomName;
|
||||
@@ -129,14 +130,13 @@ public class AuditAddToHoldTests extends BaseRMRestTest
|
||||
@DataProvider (name = "validNodesForAddToHold")
|
||||
public Object[][] getValidNodesForAddToHold() throws Exception
|
||||
{
|
||||
String documentLibrary = "/documentLibrary";
|
||||
FileModel contentToBeAdded = dataContent.usingAdmin().usingSite(privateSite)
|
||||
.createContent(CMISUtil.DocumentType.TEXT_PLAIN);
|
||||
RecordCategoryChild recordFolderToBeAdded = createRecordFolder(recordCategory.getId(), PREFIX + "recFolderToBeAdded");
|
||||
Record recordToBeAdded = createElectronicRecord(recordFolder.getId(), PREFIX + "record");
|
||||
String recordFolderPath = removeLastSlash(buildPath(documentLibrary, recordCategory.getName(),
|
||||
String recordFolderPath = removeLastSlash(buildPath(FILE_PLAN_PATH, recordCategory.getName(),
|
||||
recordFolderToBeAdded.getName()));
|
||||
String recordPath = removeLastSlash(buildPath(documentLibrary, recordCategory.getName(),
|
||||
String recordPath = removeLastSlash(buildPath(FILE_PLAN_PATH, recordCategory.getName(),
|
||||
recordFolder.getName(), recordToBeAdded.getName()));
|
||||
String contentPath = "/Company Home" + contentToBeAdded.getCmisLocation();
|
||||
|
||||
|
@@ -32,6 +32,7 @@ import static org.alfresco.rest.rm.community.base.TestData.HOLD_DESCRIPTION;
|
||||
import static org.alfresco.rest.rm.community.base.TestData.HOLD_REASON;
|
||||
import static org.alfresco.rest.rm.community.model.audit.AuditEvents.REMOVE_FROM_HOLD;
|
||||
import static org.alfresco.rest.rm.community.util.CommonTestUtils.generateTestPrefix;
|
||||
import static org.alfresco.rest.rm.community.utils.RMSiteUtil.FILE_PLAN_PATH;
|
||||
import static org.alfresco.utility.Utility.buildPath;
|
||||
import static org.alfresco.utility.Utility.removeLastSlash;
|
||||
import static org.alfresco.utility.data.RandomData.getRandomName;
|
||||
@@ -144,10 +145,9 @@ public class AuditRemoveFromHoldTests extends BaseRMRestTest
|
||||
@DataProvider (name = "validNodesForRemoveFromHold")
|
||||
public Object[][] getValidNodesForRemoveFromHold()
|
||||
{
|
||||
String documentLibrary = "/documentLibrary";
|
||||
String recordFolderPath = removeLastSlash(buildPath(documentLibrary, recordCategory.getName(),
|
||||
String recordFolderPath = removeLastSlash(buildPath(FILE_PLAN_PATH, recordCategory.getName(),
|
||||
heldRecordFolder.getName()));
|
||||
String recordPath = removeLastSlash(buildPath(documentLibrary, recordCategory.getName(),
|
||||
String recordPath = removeLastSlash(buildPath(FILE_PLAN_PATH, recordCategory.getName(),
|
||||
recordFolder.getName(), heldRecord.getName()));
|
||||
String contentPath = "/Company Home" + heldContent.getCmisLocation();
|
||||
|
||||
|
@@ -49,6 +49,7 @@ public class RMSiteUtil
|
||||
public static final String RM_ID = "rm";
|
||||
public static final String RM_TITLE = "Records Management";
|
||||
public static final String RM_DESCRIPTION = "Records Management Site";
|
||||
public static final String FILE_PLAN_PATH = "/rm/documentLibrary";
|
||||
|
||||
/**
|
||||
* Creates an RM Site model for the given compliance, title and description
|
||||
|
Reference in New Issue
Block a user