Running integration tests locally e.g. mvn clean verify fails with
I dug the integration test setup code for containers and saw the above regex is found at
info.magnolia.integrationtests.docker.IntegrationTestEnvironment#launchApplicationServer) where org.testcontainers.containers.wait.strategy.LogMessageWaitStrategy is used.
According to logs at magnolia-integration-tests/tests/target/integration-tests.log Magnolia actually starts up after ~220K ms (default timeout is 7 minutes) and this is the last line
That line actually won’t be matched by the regex, however fixing the expression doesn't seem to solve the issue. Apparently integration-tests.log is not what is used by the test container to check for when Magnolia is ready.
Asked on Slack if someone else was experiencing the same and Dai Ha suggested he fixed it locally by using org.testcontainers.containers.wait.strategy.HttpWaitStrategy which indeed does the trick.