mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Check if a node has been automatically cut off by the job before executing the Cut off action on it.
Try to fix: [ERROR] SearchByDeclassificationReviewTest.setupSearchByDeclassificationReviewTest:120->lambda$setupSearchByDeclassificationReviewTest$1:121 POST request to http://35.180.136.204:8080/alfresco/service/api/rma/actions/ExecutionQueue was not successful. expected:<200> but was:<500>
This commit is contained in:
@@ -53,4 +53,7 @@ public class FilePlanComponentAspects
|
|||||||
|
|
||||||
// recordSearch aspect
|
// recordSearch aspect
|
||||||
public static final String RECORD_SEARCH_ASPECT = "rma:recordSearch";
|
public static final String RECORD_SEARCH_ASPECT = "rma:recordSearch";
|
||||||
|
|
||||||
|
// retention schedule cut off aspect
|
||||||
|
public static final String CUT_OFF_ASPECT = "rma:cutOff";
|
||||||
}
|
}
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.rest.rm.community.recordcategories;
|
package org.alfresco.rest.rm.community.recordcategories;
|
||||||
|
|
||||||
|
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentAspects.CUT_OFF_ASPECT;
|
||||||
import static org.alfresco.utility.data.RandomData.getRandomName;
|
import static org.alfresco.utility.data.RandomData.getRandomName;
|
||||||
import static org.alfresco.utility.report.log.Step.STEP;
|
import static org.alfresco.utility.report.log.Step.STEP;
|
||||||
import static org.testng.Assert.assertTrue;
|
import static org.testng.Assert.assertTrue;
|
||||||
@@ -45,8 +46,6 @@ import org.testng.annotations.Test;
|
|||||||
|
|
||||||
public class AutomaticDispositionTest extends BaseRMRestTest
|
public class AutomaticDispositionTest extends BaseRMRestTest
|
||||||
{
|
{
|
||||||
private static final String CUT_OFF_ASPECT = "rma:cutOff";
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DispositionScheduleService dispositionScheduleService;
|
private DispositionScheduleService dispositionScheduleService;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user