Class DockerHelper


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

      • DockerHelper

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

      • 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