mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-4576 (Updated the expected status code for the case when someone tries to modify the meta data of a closed record)
This commit is contained in:
@@ -29,8 +29,8 @@ package org.alfresco.rest.rm.community.fileplancomponents;
|
||||
import static org.alfresco.rest.rm.community.utils.FilePlanComponentsUtil.IMAGE_FILE;
|
||||
import static org.alfresco.rest.rm.community.utils.FilePlanComponentsUtil.createElectronicRecordModel;
|
||||
import static org.alfresco.rest.rm.community.utils.FilePlanComponentsUtil.createNonElectronicRecordModel;
|
||||
import static org.springframework.http.HttpStatus.BAD_REQUEST;
|
||||
import static org.springframework.http.HttpStatus.CREATED;
|
||||
import static org.springframework.http.HttpStatus.FORBIDDEN;
|
||||
import static org.springframework.http.HttpStatus.OK;
|
||||
import static org.testng.Assert.assertEquals;
|
||||
|
||||
@@ -236,7 +236,7 @@ public class UpdateRecordsTests extends BaseRMRestTest
|
||||
|
||||
// attempt to update record
|
||||
filePlanComponentsAPI.updateFilePlanComponent(updateRecord, record.getId());
|
||||
assertStatusCode(BAD_REQUEST);
|
||||
assertStatusCode(FORBIDDEN);
|
||||
|
||||
// verify the original record metatada has been retained
|
||||
FilePlanComponent updatedRecord = filePlanComponentsAPI.getFilePlanComponent(record.getId());
|
||||
|
Reference in New Issue
Block a user