mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge pull request #1316 from Alfresco/feature/REPO-5439v2
REPO-5439: Enable dynamic model changes propagation in cluster
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -646,7 +646,7 @@
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-mock</artifactId>
|
||||
<version>${camel.mock.version}</version>
|
||||
|
@@ -77,6 +77,7 @@ public abstract class BaseAPI
|
||||
|
||||
/** exception key in JSON response body */
|
||||
private static final String EXCEPTION_KEY = "exception";
|
||||
private static final String MESSAGE_KEY = "message";
|
||||
public static final String NODE_PREFIX = "workspace/SpacesStore/";
|
||||
protected static final String UPDATE_METADATA_API = "{0}node/{1}/formprocessor";
|
||||
protected static final String ACTIONS_API = "{0}actionQueue";
|
||||
@@ -582,6 +583,12 @@ public abstract class BaseAPI
|
||||
break;
|
||||
|
||||
case HttpStatus.SC_INTERNAL_SERVER_ERROR:
|
||||
if (responseBody != null && responseBody.has(EXCEPTION_KEY))
|
||||
{
|
||||
LOGGER.error("Request failed with error message: {}", responseBody.getString(MESSAGE_KEY));
|
||||
returnValues = responseBody;
|
||||
}
|
||||
break;
|
||||
case HttpStatus.SC_BAD_REQUEST:
|
||||
case HttpStatus.SC_UNPROCESSABLE_ENTITY:
|
||||
if (responseBody != null && responseBody.has(EXCEPTION_KEY))
|
||||
|
@@ -48,6 +48,7 @@ import static org.alfresco.rest.rm.community.utils.FilePlanComponentsUtil.create
|
||||
import static org.alfresco.rest.rm.community.utils.RMSiteUtil.createStandardRMSiteModel;
|
||||
import static org.alfresco.utility.data.RandomData.getRandomAlphanumeric;
|
||||
import static org.springframework.http.HttpStatus.CREATED;
|
||||
import static org.springframework.http.HttpStatus.NO_CONTENT;
|
||||
import static org.springframework.http.HttpStatus.OK;
|
||||
import static org.testng.Assert.assertFalse;
|
||||
import static org.testng.Assert.assertTrue;
|
||||
@@ -194,6 +195,7 @@ public class BaseRMRestTest extends RestTest
|
||||
if (rmSiteAPI.existsRMSite())
|
||||
{
|
||||
rmSiteAPI.deleteRMSite();
|
||||
assertStatusCode(NO_CONTENT);
|
||||
}
|
||||
|
||||
rmSiteAPI.createRMSite(rmSiteModel);
|
||||
|
@@ -269,5 +269,4 @@
|
||||
<value>true</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
@@ -969,7 +969,7 @@ public class DispositionServiceImplTest extends BaseRMTestCase
|
||||
public DispositionActionDefinition run() throws Exception
|
||||
{
|
||||
DispositionActionDefinition actionDefinition = testRM386DispositionSchedule.getDispositionActionDefinitionByName("cutoff");
|
||||
assertNotNull(actionDefinition);
|
||||
assertNotNull( "Expected an action definition", actionDefinition);
|
||||
|
||||
Map<QName, Serializable> adParams = new HashMap<>(3);
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -xe
|
||||
WAIT_INTERVAL=1
|
||||
COUNTER=0
|
||||
TIMEOUT=300
|
||||
|
@@ -70,6 +70,24 @@ jobs:
|
||||
- bash scripts/getLogs.sh
|
||||
- bash scripts/cleanup.sh
|
||||
|
||||
- name: "Enterprise Rest API Cluster Tests"
|
||||
stage: Tests
|
||||
addons:
|
||||
artifacts:
|
||||
paths:
|
||||
- ./rm-automation/rm-automation-enterprise-rest-api/target/reports/rm-automation-enterprise-rest-api.log
|
||||
- ./rm-automation/rm-automation-enterprise-rest-api/target/surefire-reports
|
||||
target_paths: $TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
|
||||
install:
|
||||
- travis_retry travis_wait 90 mvn -B -U -q clean install ${MVN_SKIP} -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo -am
|
||||
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-enterprise-rest-api -am
|
||||
before_script:
|
||||
- bash scripts/start-compose.sh "${ENTERPRISE_REPO_PATH}/docker-compose-cluster.yml"
|
||||
- bash scripts/waitForAlfrescoToStart.sh
|
||||
script: mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -DsuiteXmlFile=clusterTestSuite.xml -Dskip.automationtests=false
|
||||
after_failure:
|
||||
- docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000
|
||||
- docker ps -a | grep '_alfresco2_1' | awk '{print $1}' | xargs docker logs | tail -5000
|
||||
|
||||
- &community_shared_UI_configuration
|
||||
name: "Community Smoke UI Tests for Records"
|
||||
|
Reference in New Issue
Block a user