logstash/qa/docker/shared_examples
Cas Donoghue c31fcfd9ee
Add helper method to wait for log message to be observed (#17589)
* Add helper method to wait for log message to be observed

There appears to be a race condition in tests whereby log messages are not
observed with a single interogation of the container logs. This commit adds a
helper method to wait for log messages. This should make the tests more
resilient when there is a delay in log messages being captured.

* Use local scop container ref

Due to a copy paste error, the wrong reference to container (instance var)
was being used. When test file that did not define this uses the helper
it failed. The helper should use the ref explicitly passed to the method.
2025-04-29 11:21:10 -07:00
..
container.rb Update container acceptance tests with stdout/stderr changes (#17138) 2025-02-21 10:40:43 -08:00
container_config.rb Rubocop: Enable various EmptyLine cops (#15194) 2023-07-18 16:49:16 -04:00
container_options.rb Add helper method to wait for log message to be observed (#17589) 2025-04-29 11:21:10 -07:00
image_metadata.rb Use UBI as base image (#16599) 2024-11-08 16:25:12 +00:00
xpack.rb Add helper method to wait for log message to be observed (#17589) 2025-04-29 11:21:10 -07:00