Class DockerHelper

java.lang.Object
org.alfresco.rest.rm.community.util.DockerHelper

@Service public class DockerHelper extends Object
Helper class for interaction with docker containers
Since:
3.1
Author:
Claudia Agache
  • Constructor Details

    • DockerHelper

      @Autowired public DockerHelper(@Value("${docker.host}") String dockerHost)
  • Method Details

    • getAlfrescoLogs

      public List<String> getAlfrescoLogs()
      Get the alfresco container logs
      Returns:
      list of strings, where every string is log line
    • checkExceptionIsInAlfrescoLogs

      public void checkExceptionIsInAlfrescoLogs(String expectedException) throws Exception
      Helper method to check if the specified exception is thrown in alfresco logs
      Parameters:
      expectedException - the expected exception to be thrown
      Throws:
      Exception