magnusbaeck / logstash-filter-verifier

Apache License 2.0
191 stars 27 forks source link

Fix multiple outputs from different pipelines #115

Closed breml closed 3 years ago

breml commented 3 years ago

The goal of the ExpectedOutputs configuration has been to support cases, where an event is processed by multiple outputs. If these outputs are not located in the same pipeline, chances are, that the resulting events is do not look the same in both outputs. Therefore, the old approach with a simple list of outputs does fall short.

With the new approach, an the test case needs to contain an expected event for each output. In order to maintain reproducible, the received events are sorted by __lfv_id and by __lfv_out_passed.

For an example have a look at the "multiple_parallel_outputs" integration test.

breml commented 3 years ago

@magnusbaeck polite reminder.

magnusbaeck commented 3 years ago

Closed via da76c5b09dda2dfa107e889ae80668f9ff741177 and cc27e226b51d6f722d94f987e6787270e6b31f6b.