Merge pull request #1218 from Alfresco/feature/APPS-467_AutomateAC

Feature/apps 467 automate ac
This commit is contained in:
Rodica Sutu
2020-09-15 17:36:09 +03:00
committed by GitHub
3 changed files with 24 additions and 1 deletions

View File

@@ -132,6 +132,14 @@ jobs:
- name: "Enterprise UI WORM Tests"
stage: Tests
addons:
firefox: "43.0.1"
artifacts:
paths:
- ./rm-automation/rm-automation-ui/target/surefire-reports
- ./rm-automation/rm-automation-ui/target/reports
- ./rm-automation/rm-automation-ui/target/screenshots
target_paths: $TRAVIS_BUILD_NUMBER
install:
- travis_retry travis_wait 90 mvn -B -U -q clean install ${MVN_SKIP} -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo,:alfresco-governance-services-enterprise-share -am
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-ui -am

View File

@@ -264,5 +264,5 @@ public class RecordProperties extends TestModel
private String store;
@JsonProperty(PROPERTIES_WORM_UNLOCK_DATE)
private String wormUnlockDate;
private Date wormUnlockDate;
}

View File

@@ -116,4 +116,19 @@ public class ActionsExecutionAPI extends RMModelRequest
return getRmRestWrapper().withCoreAPI().usingActions()
.executeAction(ActionsOnRule.WORM_LOCK.getActionValue(), targetNode);
}
/**
* WORM lock a node for a period of days
*
* @param targetNode the node on which the action is executed
* @param retentionPeriod the retention period in days for the WORM lock
* @throws Exception
*/
@SneakyThrows
public JSONObject addWORMLock(RepoTestModel targetNode, int retentionPeriod)
{
return getRmRestWrapper().withCoreAPI().usingActions()
.executeAction(ActionsOnRule.WORM_LOCK.getActionValue(), targetNode,
ImmutableMap.of("retentionPeriod", String.valueOf(retentionPeriod)));
}
}