mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
updates according to the latest changes
This commit is contained in:
@@ -71,7 +71,7 @@ import org.testng.annotations.Test;
|
|||||||
* @since 3.4
|
* @since 3.4
|
||||||
*/
|
*/
|
||||||
@AlfrescoTest (jira = "APPS-35")
|
@AlfrescoTest (jira = "APPS-35")
|
||||||
public class DeclareAndFileVersionAsRecordTests extends BaseRMRestTest
|
public class FileVersionAsRecordTests extends BaseRMRestTest
|
||||||
{
|
{
|
||||||
private final static String DESTINATION_PATH_NOT_FOUND_EXC = "Unable to execute declare-version-record action, " +
|
private final static String DESTINATION_PATH_NOT_FOUND_EXC = "Unable to execute declare-version-record action, " +
|
||||||
"because the destination path could not be found.";
|
"because the destination path could not be found.";
|
||||||
@@ -79,9 +79,9 @@ public class DeclareAndFileVersionAsRecordTests extends BaseRMRestTest
|
|||||||
"because the destination path is invalid.";
|
"because the destination path is invalid.";
|
||||||
private final static String DESTINATION_PATH_NOT_RECORD_FOLDER_EXC = "Unable to execute declare-version-record " +
|
private final static String DESTINATION_PATH_NOT_RECORD_FOLDER_EXC = "Unable to execute declare-version-record " +
|
||||||
"action, because the destination path is not a record folder.";
|
"action, because the destination path is not a record folder.";
|
||||||
private final static String CLOSED_RECORD_FOLDER_EXC = "You can't add new items to a closed record folder.";
|
private final static String ACCESS_DENIED_EXC = "Access Denied. You do not have the appropriate " +
|
||||||
private final static String FROZEN_RECORD_FOLDER_EXC = "You can't add new items to a frozen record folder.";
|
"permissions to perform this operation.";
|
||||||
private final static String HOLD_NAME = getRandomName("holdName");
|
private final static String HOLD_NAME = getRandomName("holdName");
|
||||||
|
|
||||||
private UserModel userFillingPermission, userReadOnlyPermission;
|
private UserModel userFillingPermission, userReadOnlyPermission;
|
||||||
private SiteModel publicSite;
|
private SiteModel publicSite;
|
||||||
@@ -188,10 +188,10 @@ public class DeclareAndFileVersionAsRecordTests extends BaseRMRestTest
|
|||||||
{ recordCategory.getName(), DESTINATION_PATH_NOT_RECORD_FOLDER_EXC },
|
{ recordCategory.getName(), DESTINATION_PATH_NOT_RECORD_FOLDER_EXC },
|
||||||
// a closed record folder
|
// a closed record folder
|
||||||
{ Utility.buildPath(recordCategory.getName(), closedRecordFolder.getName()),
|
{ Utility.buildPath(recordCategory.getName(), closedRecordFolder.getName()),
|
||||||
CLOSED_RECORD_FOLDER_EXC },
|
ACCESS_DENIED_EXC },
|
||||||
// a frozen record folder
|
// a frozen record folder
|
||||||
{ Utility.buildPath(recordCategory.getName(), heldRecordFolder.getName()),
|
{ Utility.buildPath(recordCategory.getName(), heldRecordFolder.getName()),
|
||||||
FROZEN_RECORD_FOLDER_EXC },
|
ACCESS_DENIED_EXC },
|
||||||
// an arbitrary unfiled records folder
|
// an arbitrary unfiled records folder
|
||||||
{ "Unfiled Records/" + unfiledContainerFolder.getName(), INVALID_DESTINATION_PATH_EXC },
|
{ "Unfiled Records/" + unfiledContainerFolder.getName(), INVALID_DESTINATION_PATH_EXC },
|
||||||
// a collaboration site folder
|
// a collaboration site folder
|
Reference in New Issue
Block a user