containers = dockerClient.listContainersCmd().withShowAll(true).exec();
+
+ return containers.stream()
+ .filter(container -> container.getImage().contains(imageName))
+ .findFirst();
+ }
+}
diff --git a/rm-automation/rm-automation-community-rest-api/src/main/resources/config.properties b/rm-automation/rm-automation-community-rest-api/src/main/resources/config.properties
index f66389d1f5..5d54d6c02d 100644
--- a/rm-automation/rm-automation-community-rest-api/src/main/resources/config.properties
+++ b/rm-automation/rm-automation-community-rest-api/src/main/resources/config.properties
@@ -1,3 +1,6 @@
alfresco.server=localhost
alfresco.port=8080
-rest.rmPath=alfresco/api/-default-/public/gs/versions/1
\ No newline at end of file
+rest.rmPath=alfresco/api/-default-/public/gs/versions/1
+
+# Docker properties values
+docker.host=tcp://127.0.0.1:2375
\ No newline at end of file
diff --git a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/files/DeclareDocumentAsRecordTests.java b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/files/DeclareDocumentAsRecordTests.java
index 077703bca5..5e08e5fd7f 100644
--- a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/files/DeclareDocumentAsRecordTests.java
+++ b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/files/DeclareDocumentAsRecordTests.java
@@ -100,10 +100,16 @@ public class DeclareDocumentAsRecordTests extends BaseRMRestTest
* And it is now a record
* And it remains a secondary child of the starting location where I can still view it
*
+ *
+ * RM-6779
+ * Given I declare a record using the v1 API
+ * When I do not provide a location parameter
+ * Then the record is declared in the unfiled folder
+ *
* @throws Exception for malformed JSON API response
*/
@Test(description = "User with correct permissions can declare document as a record")
- @AlfrescoTest(jira = "RM-4429")
+ @AlfrescoTest(jira = "RM-4429, RM-6779")
public void userWithPrivilegesCanDeclareDocumentAsRecord() throws Exception
{
// create document in a folder in a collaboration site
diff --git a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/FileRecordsTests.java b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/FileRecordsTests.java
index 2a90dcb5bd..98a7963406 100644
--- a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/FileRecordsTests.java
+++ b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/FileRecordsTests.java
@@ -68,7 +68,7 @@ public class FileRecordsTests extends BaseRMRestTest
{
private UnfiledContainerChild electronicRecord = UnfiledContainerChild.builder()
.name(ELECTRONIC_RECORD_NAME)
- .nodeType(CONTENT_TYPE.toString())
+ .nodeType(CONTENT_TYPE)
.content(RecordContent.builder().mimeType("text/plain").build())
.build();
@@ -78,14 +78,14 @@ public class FileRecordsTests extends BaseRMRestTest
.title("Title")
.build())
.name(NONELECTRONIC_RECORD_NAME)
- .nodeType(NON_ELECTRONIC_RECORD_TYPE.toString())
+ .nodeType(NON_ELECTRONIC_RECORD_TYPE)
.build();
/**
* Invalid containers where electronic and non-electronic records can be filed
*/
@DataProvider (name = "invalidContainersToFile")
- public String[][] getFolderContainers() throws Exception
+ public Object[][] getFolderContainers() throws Exception
{
return new String[][] {
{ FILE_PLAN_ALIAS},