Skip to content

Conversation

@moko-poi
Copy link
Contributor

@moko-poi moko-poi commented Oct 4, 2025

Summary

This PR reorders the tests in pkg/cloudprovider/cloudprovider_test.go to improve maintainability and readability as requested in #3.

Changes

CloudProvider public methods are now grouped at the beginning in alphabetical order:

  1. CloudProvider.Create method
  2. CloudProvider.Delete method
  3. CloudProvider.Get method
  4. CloudProvider.GetInstanceTypes method
  5. CloudProvider.List method

Private methods and helper functions follow in alphabetical order:
6. CloudProvider.findInstanceTypesForNodeClass method
7. CloudProvider.machineToNodeClaim method
8. CloudProvider.resolveNodeClassFromNodeClaim method
9. CloudProvider.resolveNodeClassFromNodePool method
10. machineDeploymentToInstanceType function

Test

  • Run make test - all tests pass
  • Verify test content unchanged - only reordering applied
  • Confirm no functional regressions

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 4, 2025
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 4, 2025
@moko-poi moko-poi changed the title Reorder cloudprovider tests alphabetically with interface tests first (#3) Reorder cloudprovider tests alphabetically with interface tests first Oct 4, 2025
@elmiko
Copy link
Collaborator

elmiko commented Oct 7, 2025

thanks for cleanup!

/approve
/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elmiko, moko-poi

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 Oct 7, 2025
@k8s-ci-robot k8s-ci-robot merged commit a28d7b2 into kubernetes-sigs:main Oct 7, 2025
4 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. 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/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.

3 participants