From 2a2bc883e8f69b9bda1758249dfb5f6f5ea456d9 Mon Sep 17 00:00:00 2001 From: Claudia Agache Date: Mon, 31 Aug 2020 17:31:01 +0300 Subject: [PATCH] added class to interact with Amazon S3 --- .travis.yml | 2 +- .../org/alfresco/rest/core/RMRestProperties.java | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4714b39982..fd914e96ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -107,7 +107,7 @@ jobs: - bash scripts/create-worm-bucket.sh - bash scripts/start-compose.sh "${ENTERPRISE_SHARE_PATH}/docker-compose-worm-support-rest.yml" - bash scripts/waitForAlfrescoToStart.sh - script: mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -DsuiteXmlFile=wormTestSuite.xml -Dskip.automationtests=false + script: mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -DsuiteXmlFile=wormTestSuite.xml -Dskip.automationtests=false -Ds3.accessKey=${AWS_ACCESS_KEY_ID} -Ds3.secretKey=${AWS_SECRET_ACCESS_KEY} -Ds3.bucketName=${S3_BUCKET2_NAME} -Ds3.bucketRegion=${S3_BUCKET_REGION} after_script: bash scripts/cleanup.sh after_failure: docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000 diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/RMRestProperties.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/RMRestProperties.java index b5ffec459a..29deb88610 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/RMRestProperties.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/RMRestProperties.java @@ -59,4 +59,16 @@ public class RMRestProperties extends RestProperties @Value ("${docker.host}") private String dockerHost; + + @Value ("${s3.accessKey}") + private String s3AccessKey; + + @Value ("${s3.secretKey}") + private String s3SecretKey; + + @Value ("${s3.bucketName}") + private String s3BucketName; + + @Value ("${s3.bucketRegion}") + private String s3BucketRegion; }