-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Fix unit tests for autoregister_controller.go reliable #45864
Fix unit tests for autoregister_controller.go reliable #45864
Conversation
e349d10
to
b6f2b78
Compare
Yeah, that's what we want.
Choosing steps versus complete setup ahead of time is up to you, but using steps they'll need access to the workqeuue. I think I'd suggest having more test cases without steps. The idea is that you would set up all the private variables (indexers, list of APIServices to maintain, etc), then make a single call to the sync function and check the response. It takes a little more set up, but the individual tests are easy to reason about. |
63b1e6e
to
f500c17
Compare
f500c17
to
b00b3b9
Compare
b00b3b9
to
bc7f8f9
Compare
bc7f8f9
to
8fe3db7
Compare
/release-note-none |
@deads2k could you have an early review ? not sure if I covered all scenarios |
Nice job. lgtm |
/lgtm |
@k8s-bot pull-kubernetes-federation-e2e-gce test this |
@k8s-bot kubemark e2e test this |
Automatic merge from submit-queue (batch tested with PRs 45864, 46169) |
@shiywang: The following test(s) failed:
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
Automatic merge from submit-queue remove duplicate, flaky tests These tests were replaced in #45864, but we forgot to remove the originals. This just removes the originals, but all the test cases were covered in that other pull.
Fixes #45538
Still wip, and just have some questions which I left some comments in original issue above