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 tests for reconcile_state, cluster_controller, & conditions #9380

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

willie-yao
Copy link
Contributor

@willie-yao willie-yao commented Sep 6, 2023

What this PR does / why we need it:
This PR adds tests for the new ClusterClass MachinePool implementation for the following files:

  • internal/controllers/topology/cluster/reconcile_state_test.go
  • internal/controllers/topology/cluster/cluster_controller_test.go
  • internal/controllers/topology/cluster/conditions_test.go

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 part of #5991

/area testing

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 6, 2023
@k8s-ci-robot k8s-ci-robot added do-not-merge/needs-area PR is missing an area label size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 6, 2023
@willie-yao
Copy link
Contributor Author

/area testing

@k8s-ci-robot k8s-ci-robot added area/testing Issues or PRs related to testing and removed do-not-merge/needs-area PR is missing an area label labels Sep 6, 2023
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 7, 2023
@willie-yao willie-yao force-pushed the cc-mp-unit-tests-2 branch 13 times, most recently from 34bced2 to 60d9728 Compare September 11, 2023 22:38
@willie-yao
Copy link
Contributor Author

/retest

@willie-yao willie-yao force-pushed the cc-mp-unit-tests-2 branch 2 times, most recently from b0cebed to a95dcd0 Compare September 11, 2023 23:24
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Sep 11, 2023
@willie-yao willie-yao changed the title 🌱 WIP: Add unit tests for reconcile_state, cluster_controller, & conditions 🌱 Add unit tests for reconcile_state, cluster_controller, & conditions Sep 11, 2023
@willie-yao willie-yao force-pushed the cc-mp-unit-tests-2 branch 2 times, most recently from dfdb378 to 1995bf2 Compare September 14, 2023 00:29
Copy link
Member

@chrischdi chrischdi left a comment

Choose a reason for hiding this comment

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

This should help to fix this test

@willie-yao willie-yao force-pushed the cc-mp-unit-tests-2 branch 2 times, most recently from cdf0877 to 12cd28d Compare September 14, 2023 21:34
Copy link
Member

@chrischdi chrischdi left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 18, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 61f6cf78bcc0bbae17a61e4192cd7c59215e34d6

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 21, 2023
@chrischdi
Copy link
Member

/lgtm

for squashing-verification 😂

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 21, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: d18e2a5b7bf32e8a7a2fd53235a0a97f2de97c1c

@chrischdi
Copy link
Member

/lgtm

pending squash

@sbueringer
Copy link
Member

@willie-yao Thank you very much!!

Really appreciate it, a lot of annoying work :)

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 21, 2023
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 21, 2023
@chrischdi
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 21, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 85bf39df5c08e1893a73c82f774e67fc0fe71151

@k8s-ci-robot k8s-ci-robot merged commit b3b9928 into kubernetes-sigs:main Sep 21, 2023
19 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.6 milestone Sep 21, 2023
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. area/testing Issues or PRs related to testing cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants