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

🌱 Improve test coverage #2013

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Conversation

lentzi90
Copy link
Member

What this PR does / why we need it:

This improves test coverage by adding a few unit tests.
I did a half-hearted attempt to test the preprovisioning image controllers Reconcile function but it got too complicated. That is still something that could be improved in the future.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1574 (it ticks the remaining two boxes)

This improves test coverage by adding a few unit tests.

Signed-off-by: Lennart Jern <lennart.jern@est.tech>
@metal3-io-bot metal3-io-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 25, 2024
@lentzi90
Copy link
Member Author

/retest

1 similar comment
@lentzi90
Copy link
Member Author

/retest

@lentzi90
Copy link
Member Author

lentzi90 commented Nov 4, 2024

/cc @Rozzii

@metal3-io-bot metal3-io-bot requested a review from Rozzii November 4, 2024 08:04
Copy link
Member

@Rozzii Rozzii left a comment

Choose a reason for hiding this comment

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

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Rozzii

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 6, 2024
@mquhuy
Copy link
Member

mquhuy commented Nov 6, 2024

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 6, 2024
@metal3-io-bot metal3-io-bot merged commit 76884f0 into metal3-io:main Nov 6, 2024
15 checks passed
@metal3-io-bot metal3-io-bot deleted the lentzi90/unit-tests branch November 6, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit test coverage improvement in BMO
4 participants