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
kubeadm: increase ut coverage for apiclient/idempotency #123118
Conversation
/test pull-kubernetes-unit |
} | ||
} | ||
|
||
func newMockClientForTest(t *testing.T, namepsace string, name string, kind string) *fake.Clientset { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW instead of using such a function it's simpler to use reactors.
https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go#L838-L840
https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go#L936-L937
but the way you are doing it is also OK.
/triage accepted |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: my-git9, neolit123 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 |
b61df54
to
2d4511a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two more minor comments, but LGTM
Signed-off-by: xin.li <xin.li@daocloud.io>
2d4511a
to
deec79a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
LGTM label has been added. Git tree hash: f8aff09c267d6b54d72cc8b22d49d83401f71e1a
|
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
kubeadm: increase ut coverage for apiclient/idempotency
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: