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 9 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 <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@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
component: opemapsupervisor

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Increase unit test coverage.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for a changelog for tests, we can skip changelog for those.

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@bacherfl bacherfl changed the title [opampsupervisor] add unit tests [chore] add unit tests for the opampsupervisor Aug 28, 2024
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
# Conflicts:
#	cmd/opampsupervisor/supervisor/supervisor_test.go
@bacherfl bacherfl requested a review from a team as a code owner September 25, 2024 04:51
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.

3 participants