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 unit test on pkg/provisioner/ironic/client.go #1606

Conversation

lekaf974
Copy link
Contributor

@lekaf974 lekaf974 commented Mar 7, 2024

What this PR does / why we need it:

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

@metal3-io-bot metal3-io-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 7, 2024
@metal3-io-bot
Copy link
Contributor

Hi @lekaf974. Thanks for your PR.

I'm waiting for a metal3-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@metal3-io-bot metal3-io-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 7, 2024
@lekaf974
Copy link
Contributor Author

lekaf974 commented Mar 7, 2024

Hi, I started to add unit test but not sure that those implemented make sense to you.
Could you have a look and give feedback to see if I am on the good way ?

Thx

@tuminoid
Copy link
Member

tuminoid commented Mar 7, 2024

/ok-to-test

@metal3-io-bot metal3-io-bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 7, 2024
@lekaf974 lekaf974 force-pushed the add-unit-test-pkg-provisioner-ironic-client branch from 800c4c3 to 804e949 Compare March 7, 2024 12:47
@lekaf974 lekaf974 marked this pull request as ready for review March 7, 2024 12:48
@metal3-io-bot metal3-io-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 7, 2024
@lekaf974
Copy link
Contributor Author

lekaf974 commented Mar 7, 2024

Added minimal tests on updateHTTPClient
Like I say let me know if we want more specific tests

@lentzi90
Copy link
Member

lentzi90 commented Mar 8, 2024

/cc @lentzi90
So that I don't forget about it. I will probably not have time to review it the next couple of weeks though.

@lekaf974 lekaf974 force-pushed the add-unit-test-pkg-provisioner-ironic-client branch from 804e949 to bb2bd35 Compare March 19, 2024 00:20
@lekaf974
Copy link
Contributor Author

@dtantsur Updated the unit test, waiting for feedback

@lekaf974 lekaf974 force-pushed the add-unit-test-pkg-provisioner-ironic-client branch 2 times, most recently from c7a05a9 to f0197b7 Compare March 19, 2024 01:46
Signed-off-by: mevrin <matthieu.evrin@gmail.com>
@lekaf974 lekaf974 force-pushed the add-unit-test-pkg-provisioner-ironic-client branch from f0197b7 to a686602 Compare March 19, 2024 01:58
Copy link
Member

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

Thank you!
/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 28, 2024
@lentzi90
Copy link
Member

/test metal3-bmo-e2e-test-pull
/test test-centos-e2e-integration-main

@lentzi90
Copy link
Member

/test-centos-e2e-integration-main

@lekaf974
Copy link
Contributor Author

@lentzi90 anything else needs to be done to merge this one ?

@lentzi90
Copy link
Member

lentzi90 commented May 2, 2024

Oh, looks like we just forgot about this. We need someone to approve it. I will tag some who can.
/cc @kashifest @dtantsur

@lentzi90
Copy link
Member

lentzi90 commented May 2, 2024

/test metal3-centos-e2e-integration-test-main

@tuminoid
Copy link
Member

@kashifest PTAL, this seems ready for approval.

Copy link
Member

@kashifest kashifest 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: kashifest

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 May 24, 2024
@metal3-io-bot metal3-io-bot merged commit 1d092e9 into metal3-io:main May 24, 2024
17 checks passed
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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
6 participants