🌱 Add Unit tests for reconcileDelete#11636
🌱 Add Unit tests for reconcileDelete#11636arshadd-b wants to merge 3 commits intokubernetes-sigs:mainfrom
Conversation
|
This PR is currently missing an area label, which is used to identify the modified component when generating release notes. Area labels can be added by org members by writing Please see the labels list for possible areas. DetailsInstructions 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-sigs/prow repository. |
|
Welcome @arshadd-b! |
|
Hi @arshadd-b. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
|
/ok-to-test |
9a4081f to
fc4ae67
Compare
|
Hi @sbueringer
could you please guide me how i can cover these cases as well ? |
|
/retest |
| } | ||
| } | ||
|
|
||
| func TestNodeDeletionWithPreDrainHook(t *testing.T) { |
There was a problem hiding this comment.
why isn't this one a test case of the above?
There was a problem hiding this comment.
In this testCase, need some custom object to be passed here in the client
https://github.com/kubernetes-sigs/cluster-api/pull/11636/files#diff-eca451c4058d015075de4b1e9713d6154e1d50f7d4595df4218d87fb0163bc20R3858
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
fe1a466 to
cb8e89c
Compare
| }, | ||
| } | ||
|
|
||
| cpmachine1 := &clusterv1.Machine{ |
There was a problem hiding this comment.
I might be missing something, is cpmachine1 used in the test?
There was a problem hiding this comment.
yeah, Actually it is used here while creating Fake client
https://github.com/kubernetes-sigs/cluster-api/pull/11636/files#diff-eca451c4058d015075de4b1e9713d6154e1d50f7d4595df4218d87fb0163bc20R3689
|
Hi @enxebre @alexander-demicev I have addressed all the review comments, could you please a look |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
|
@k8s-triage-robot: Closed this PR. DetailsIn response to this:
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-sigs/prow repository. |
|
/reopen |
|
@sbueringer: Reopened this PR. DetailsIn response to this:
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-sigs/prow repository. |
|
/retest |
cb8e89c to
013a575
Compare
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
|
@k8s-triage-robot: Closed this PR. DetailsIn response to this:
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-sigs/prow repository. |
|
/re-open |
22c7eb3 to
9caf4c3
Compare
What this PR does / why we need it:
ThIs improves test coverage of Machine Controller reconcileDelete
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 #11626