-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[chore] add unit tests for the opampsupervisor #34812
[chore] add unit tests for the opampsupervisor #34812
Conversation
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
# Conflicts: # cmd/opampsupervisor/supervisor/supervisor_test.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on, sorry for the delay in review! It generally looks good to me, just a few small things.
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
No worries, and thanks a lot for the review! I have addressed all comments now (will keep an eye on the CI checks to make sure everything passes) |
# Conflicts: # cmd/opampsupervisor/supervisor/supervisor_test.go
Signed-off-by: Florian Bacher <[email protected]>
# Conflicts: # cmd/opampsupervisor/supervisor/supervisor_test.go
Signed-off-by: Florian Bacher <[email protected]>
Co-authored-by: Evan Bradley <[email protected]>
Description: This PR adds more unit tests to the OpAmpSupervisor. For increasing the coverage further, and to simplify testing in general it might be worth looking into decoupling the supervisor more by introducing interfaces for e.g. the
Commander
and making use of a mocking framework (e.g. https://github.com/uber-go/mock which is already used in other modules within this repo).Link to tracking Issue: #24295
Testing: Added more unit tests to increase coverage