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

[chore] add unit tests for the opampsupervisor #34812

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

bacherfl
Copy link
Contributor

@bacherfl bacherfl commented Aug 22, 2024

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

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]>
@bacherfl bacherfl marked this pull request as ready for review August 23, 2024 05:08
@bacherfl bacherfl requested a review from a team August 23, 2024 05:08
Signed-off-by: Florian Bacher <[email protected]>
@bacherfl bacherfl changed the title [opampsupervisor] add unit tests [chore] add unit tests for the opampsupervisor Aug 28, 2024
@bacherfl bacherfl requested a review from a team as a code owner September 25, 2024 04:51
Copy link
Contributor

@BinaryFissionGames BinaryFissionGames left a 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.

cmd/opampsupervisor/supervisor/supervisor_test.go Outdated Show resolved Hide resolved
cmd/opampsupervisor/supervisor/supervisor_test.go Outdated Show resolved Hide resolved
cmd/opampsupervisor/supervisor/supervisor_test.go Outdated Show resolved Hide resolved
cmd/opampsupervisor/supervisor/supervisor_test.go Outdated Show resolved Hide resolved
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
@bacherfl
Copy link
Contributor Author

Thanks for taking this on, sorry for the delay in review! It generally looks good to me, just a few small things.

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
# Conflicts:
#	cmd/opampsupervisor/supervisor/supervisor_test.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants