mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
fix the test createFilePlanSpecialContainerWhenExists()
This commit is contained in:
@@ -234,13 +234,13 @@ public class FilePlanTests extends BaseRestTest
|
|||||||
@Bug(id="RM-4296")
|
@Bug(id="RM-4296")
|
||||||
public void createFilePlanSpecialContainerWhenExists(FilePlanComponentAlias filePlanAlias, FilePlanComponentType rmType) throws Exception
|
public void createFilePlanSpecialContainerWhenExists(FilePlanComponentAlias filePlanAlias, FilePlanComponentType rmType) throws Exception
|
||||||
{
|
{
|
||||||
String rmSiteId = rmSiteAPI.getSite().getGuid();
|
|
||||||
|
|
||||||
// Create RM Site if doesn't exist
|
// Create RM Site if doesn't exist
|
||||||
createRMSiteIfNotExists();
|
createRMSiteIfNotExists();
|
||||||
|
|
||||||
// Authenticate with admin user
|
// Authenticate with admin user
|
||||||
filePlanComponentAPI.usingRestWrapper().authenticateUser(dataUser.getAdminUser());
|
rmSiteAPI.usingRestWrapper().authenticateUser(dataUser.getAdminUser());
|
||||||
|
// Get the RM site ID
|
||||||
|
String rmSiteId = rmSiteAPI.getSite().getGuid();
|
||||||
|
|
||||||
String name = filePlanAlias + getRandomAlphanumeric();
|
String name = filePlanAlias + getRandomAlphanumeric();
|
||||||
|
|
||||||
@@ -250,6 +250,8 @@ public class FilePlanTests extends BaseRestTest
|
|||||||
.add(NODE_TYPE, rmType.toString())
|
.add(NODE_TYPE, rmType.toString())
|
||||||
.getJson();
|
.getJson();
|
||||||
|
|
||||||
|
// Authenticate with admin user
|
||||||
|
filePlanComponentAPI.usingRestWrapper().authenticateUser(dataUser.getAdminUser());
|
||||||
// Create the special containers into RM site - parent folder
|
// Create the special containers into RM site - parent folder
|
||||||
filePlanComponentAPI.createFilePlanComponent(componentProperties, rmSiteId);
|
filePlanComponentAPI.createFilePlanComponent(componentProperties, rmSiteId);
|
||||||
filePlanComponentAPI.usingRestWrapper().assertStatusCodeIs(FORBIDDEN);
|
filePlanComponentAPI.usingRestWrapper().assertStatusCodeIs(FORBIDDEN);
|
||||||
|
Reference in New Issue
Block a user