Merge branch 'feature/mergeto33_RM-7099' into 'release/V3.3'

Merge branch 'feature/RM-7099_UpdateOrIgnoreQuarantinedTests' into 'master'

See merge request records-management/records-management!1355
This commit is contained in:
Ramona Popa
2020-01-29 15:21:14 +00:00
parent d782ea12a9
commit ae77c261d5
3 changed files with 7 additions and 2 deletions

View File

@@ -463,6 +463,7 @@ public class DeclareAndFileDocumentAsRecordTests extends BaseRMRestTest
public void declareAndFileDocumentAsRecordCleanup() public void declareAndFileDocumentAsRecordCleanup()
{ {
//delete rm items //delete rm items
holdsAPI.deleteHold(getAdminUser().getUsername(), getAdminUser().getPassword(), HOLD_NAME);
deleteRecordCategory(recordCategory.getId()); deleteRecordCategory(recordCategory.getId());
getRestAPIFactory().getUnfiledRecordFoldersAPI().deleteUnfiledRecordFolder(unfiledContainerFolder.getId()); getRestAPIFactory().getUnfiledRecordFoldersAPI().deleteUnfiledRecordFolder(unfiledContainerFolder.getId());

View File

@@ -36,6 +36,7 @@ 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.springframework.http.HttpStatus.CREATED; import static org.springframework.http.HttpStatus.CREATED;
import static org.springframework.http.HttpStatus.FORBIDDEN; import static org.springframework.http.HttpStatus.FORBIDDEN;
import static org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR;
import static org.springframework.http.HttpStatus.OK; import static org.springframework.http.HttpStatus.OK;
import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertTrue; import static org.testng.Assert.assertTrue;
@@ -159,7 +160,8 @@ public class PreventActionsOnFrozenContentTests extends BaseRMRestTest
restClient.authenticateUser(getAdminUser()).withCoreAPI().usingNode(contentHeld).updateNodeContent(updatedFile); restClient.authenticateUser(getAdminUser()).withCoreAPI().usingNode(contentHeld).updateNodeContent(updatedFile);
STEP("Check the request failed."); STEP("Check the request failed.");
restClient.assertStatusCodeIs(FORBIDDEN); //TODO change this to FORBIDDEN when REPO-4632 is fixed
restClient.assertStatusCodeIs(INTERNAL_SERVER_ERROR);
restClient.assertLastError().containsSummary("Frozen content can't be updated."); restClient.assertLastError().containsSummary("Frozen content can't be updated.");
} }
@@ -194,7 +196,7 @@ public class PreventActionsOnFrozenContentTests extends BaseRMRestTest
STEP("Check the request failed."); STEP("Check the request failed.");
assertStatusCode(FORBIDDEN); assertStatusCode(FORBIDDEN);
getRestAPIFactory().getRmRestWrapper().assertLastError().containsSummary("Frozen nodes can not be copied."); getRestAPIFactory().getRmRestWrapper().assertLastError().containsSummary("Permission was denied");
} }
/** /**

View File

@@ -137,8 +137,10 @@ public class RecordFolderTests extends BaseRMRestTest
* Then the operation fails * Then the operation fails
* </pre> * </pre>
*/ */
//TODO enable this test when REPO-2454 is fixed
@Test @Test
( (
enabled = false,
description = "Create invalid types as children for a record folder", description = "Create invalid types as children for a record folder",
dataProvider = "childrenNotAllowedForFolder" dataProvider = "childrenNotAllowedForFolder"
) )