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 integration test for built image #117

Open
greg-el opened this issue Sep 14, 2022 · 0 comments
Open

Add integration test for built image #117

greg-el opened this issue Sep 14, 2022 · 0 comments

Comments

@greg-el
Copy link
Contributor

greg-el commented Sep 14, 2022

Having integration tests for the built image would be very useful in catching any issues not covered by unit tests.

The 1.3.2 release bumped stream collector to 2.7.1. Stream collector 2.7.0 included an addition of a new required key for the collector config. As this was not updated in the Micro default collector config (src/main/resources/application.conf) the image failed to run, as the parsing of the now-invalid config failed. Although there is now a unit test for an invalid config, a full integration test would catch anything else lurking, not covered by unit tests, as mentioned by @istreeter here.

testcontainers is likely a good way to set integration tests up, which could include sending events to the built Micro image, and checking they exist in /good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant