Ability to inject events into sources for unit testing #21223
Labels
domain: unit tests
Anything related to Vector's unit testing feature
type: feature
A value-adding code addition that introduce new functionality.
A note for the community
Use Cases
I would like to ensure a change in multiline patterns will not break known multiline logs.
Attempted Solutions
I've tried writing a test case with input of type
raw
andinsert_at
the source component. However that's not supported:(adding a dummy transform just yields the same error on the input)
Proposal
As seen in my attempt above, one way to test multilines would be to allow source components as
input_at
andextract_from
targets. Not sure it makes sense in any other case beside multiline though.References
No response
Version
vector 0.40.1 (x86_64-unknown-linux-gnu a9392b0 2024-08-26 14:35:19.223750502)
The text was updated successfully, but these errors were encountered: