From 8107e82e0fba96dec3712ee6e0a5e5011456d088 Mon Sep 17 00:00:00 2001 From: cturlica Date: Wed, 27 Jan 2021 10:47:09 +0200 Subject: [PATCH] REPO-5439: Re-enable changes disabled in ACS-936 - refactor test framework - added cluster tests --- .../rm-automation-community-rest-api/pom.xml | 2 +- travis/.travis.tests-stage.yml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/rm-automation/rm-automation-community-rest-api/pom.xml b/rm-automation/rm-automation-community-rest-api/pom.xml index 202a565fe6..b559c7682d 100644 --- a/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/rm-automation/rm-automation-community-rest-api/pom.xml @@ -15,7 +15,7 @@ false alfresco-governance-services-community-share alfresco-governance-services-community-repo - 1.50 + 1.51 3.0.41 2.0.0 2.7.9.1 diff --git a/travis/.travis.tests-stage.yml b/travis/.travis.tests-stage.yml index af9ff3931f..693954d4a4 100644 --- a/travis/.travis.tests-stage.yml +++ b/travis/.travis.tests-stage.yml @@ -40,6 +40,17 @@ jobs: - ./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 + - name: "Enterprise Rest API Cluster Tests" + stage: Tests + 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-enterprise-rest-api -am + before_script: + - bash scripts/start-compose.sh "${ENTERPRISE_SHARE_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 + - name: "Enterprise Rest API WORM Tests" stage: Tests install: