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

Add initial plugin output test #149

Merged
merged 2 commits into from
Sep 17, 2022
Merged

Conversation

atc0005
Copy link
Owner

@atc0005 atc0005 commented Sep 17, 2022

I hesitate to call this a true End to End (e2e) test, but this initial test configures an ExitState value as client code in the wild currently does and then asserts that the output matches the contents of a carefully crafted testdata file.

NOTE:

This test adds a dependency on the popular github.com/google/go-cmp testing package.

Because future tests are planned which will also use this package, adding the dependency (only for tests) is deemed to be worth the "cost" of adding an external dependency (again, just for tests).

I hesitate to call this a true End to End (e2e) test, but this
initial test configures an ExitState value as client code in the
wild currently does and then asserts that the output matches
the contents of a carefully crafted testdata file.

NOTE:

This test adds a dependency on the popular
github.com/google/go-cmp testing package. Because future tests
are planned which will also use this package, adding the
dependency (only for tests) is deemed to be worth the "cost" of
adding an external dependency (again, just for tests).
@atc0005 atc0005 added enhancement New feature or request dependencies output/plugin plugin output intended for monitoring system ingest tests labels Sep 17, 2022
@atc0005 atc0005 added this to the Next Release milestone Sep 17, 2022
@atc0005 atc0005 self-assigned this Sep 17, 2022
@atc0005 atc0005 merged commit 51cb2bf into master Sep 17, 2022
@atc0005 atc0005 deleted the add-initial-plugin-output-test branch September 17, 2022 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies enhancement New feature or request output/plugin plugin output intended for monitoring system ingest tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant