-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log consumer for DockerComposeContainer #605
Comments
Ability to use some wait strategies would be great, too |
Hi @kshepitko, I have a PR out that addresses exactly this issue. #600 Edit: well, it allows you to wait for log messages on docker-compose. |
Thanks for update, @barrycommins ! There's an impressive refactoring you performed there! Thank you for this. @kiview Do you think there's still a value in defining the log consumers for DockerCompose-managed containers? If not, I'll close this issue. |
@kshepitko I think it's still a valuable feature request, if only to give compose the same expected feature set as the regular containers. |
@kiview I'm happy to implement it, if you'd like. |
@barrycommins Thx, this would be awesome! |
* Added withLogConsumer() method to DockerComposeContainer Fixes #605 * Added try-finally block to DockerComposeLogConsumerTest
Hi folks!
It's possible to define a log consumer for a
GenericContainer
, butDockerComposeContainer
has a very limited API. The latter allows you to tail the included containers' output, but doesn't provide the means to monitor the output.That's it, it just redirects the containers' output to the standard output. But what if I need to monitor outout? For instance, my Spring Boot application has Vaadin UI, and it actually fully loads a few seconds later after Spring has announced that app has started and the port is opened now. If I open browser right away via
BrowserWebDriverContainer
, Vaadin pages do not work properly. So I'd like to wait for appropriate message from Vaadin to start my test.I think it would be beneficial to allow to define a custom consumer here, or the ability to wait for a certain message to appear in the log (like it's done in
GenericContainer
).What do you think?
The text was updated successfully, but these errors were encountered: