Skip to content
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

Allow sources as unit test inputs and sinks as outputs #11983

Open
lukesteensen opened this issue Mar 25, 2022 · 0 comments
Open

Allow sources as unit test inputs and sinks as outputs #11983

lukesteensen opened this issue Mar 25, 2022 · 0 comments
Labels
domain: unit tests Anything related to Vector's unit testing feature type: enhancement A value-adding code change that enhances its existing functionality.

Comments

@lukesteensen
Copy link
Member

Currently our unit test system deals only with transforms. This makes sense, as that's all we're able to actually test, but it does lead to some non-optimal configs in some cases. If a user has a source that fans out to multiple transform, it's likely that they want to provide test input as if it is coming from that source. This is currently not possible, so some users stick a dummy transform behind the source as a placeholder and target for those unit tests. This is an annoying thing for then to have to do, and hurts the performance of their config in the real world. A similar situation exists for sinks and unit test outputs.

While we can still only test transforms, we should add the ability for users to specify a source as the target for test input and a sink for test output. Internally, they can be simple aliases for the connected transform inputs/outputs.

@lukesteensen lukesteensen added type: enhancement A value-adding code change that enhances its existing functionality. domain: unit tests Anything related to Vector's unit testing feature labels Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: unit tests Anything related to Vector's unit testing feature type: enhancement A value-adding code change that enhances its existing functionality.
Projects
None yet
Development

No branches or pull requests

1 participant