add tests for WORM Restrictions

This commit is contained in:
rodicasutu
2020-07-27 10:15:01 +03:00
parent 16177285af
commit 00d1f37a88
3 changed files with 9 additions and 2 deletions

View File

@@ -132,4 +132,7 @@ public class FilePlanComponentFields
public static final String IS_COMPLETED = "isCompleted";
public static final String CONTENT = "content";
public static final String PATH = "path";
/** CONTENT STORE property */
//public static final String PROPERTIES_STORE = "cm:storeName";
public static final String PROPERTIES_STORE = "rm:wormStore";
}

View File

@@ -70,6 +70,7 @@ import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanCo
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_SHELF;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_SOFTWARE;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_STORAGE_LOCATION;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_STORE;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_TITLE;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_VERSIONED_NODEREF;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_VERSION_LABEL;
@@ -257,4 +258,7 @@ public class RecordProperties extends TestModel
@JsonProperty(PROPERTIES_REVIEW_AS_OF)
private Date reviewAsOf;
@JsonProperty (PROPERTIES_STORE)
private String store;
}

View File

@@ -337,8 +337,8 @@ public class RMRolesAndActionsAPI extends BaseAPI
* @param contentName the content name
* @return The HTTP response.
*/
public HttpResponse executeAction(String user, String password, String contentName, RM_ACTIONS action,
int status)
public HttpResponse executeActionAndExpectResponseCode(String user, String password, String contentName, RM_ACTIONS action,
int status)
{
return executeAction(user, password, contentName, action, null, status);
}