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

test: cover clusterclass in e2e tests #424

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

salasberryfin
Copy link
Contributor

@salasberryfin salasberryfin commented Aug 29, 2024

What this PR does / why we need it:

ClusterClass has been supported by CAPRKE2 for a number of releases now but we haven't added a dedicated test to validate this feature. As we add more ClusterClass samples and work on new operations, we need to make sure that we don't face any issues with the current implementation or any regressions.

This PR uses some of the existing features taken from upstream CAPI's test framework (and adapted to RKE2 control planes) and adds extra functionality on top of it to be able to apply custom templates. It may be interesting to create a framework package, similar to the existing one upstream CAPI has for Kubeadm, with some of the helper functions. Currently it is all packed into a single helpers.go file which may grow larger in the future.

Which issue(s) this PR fixes:
Fixes #271

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@salasberryfin salasberryfin added the kind/feature New feature or request label Aug 29, 2024
@salasberryfin salasberryfin requested a review from a team as a code owner August 29, 2024 13:41
@salasberryfin salasberryfin added area/testing Indicates an issue related to test kind/feature New feature or request and removed kind/feature New feature or request labels Aug 29, 2024
@salasberryfin salasberryfin changed the title test: cover clusterclass in e2e tests WIP test: cover clusterclass in e2e tests Aug 29, 2024
@salasberryfin salasberryfin force-pushed the clusterclass-add-to-e2e branch 6 times, most recently from 164f430 to 9de5a73 Compare September 2, 2024 08:32
@salasberryfin salasberryfin changed the title WIP test: cover clusterclass in e2e tests test: cover clusterclass in e2e tests Sep 2, 2024
@salasberryfin salasberryfin force-pushed the clusterclass-add-to-e2e branch 2 times, most recently from 0c2d645 to 086aa82 Compare September 3, 2024 09:47
Copy link
Contributor

@furkatgofurov7 furkatgofurov7 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this, looks good to me

Copy link
Contributor

@Danil-Grigorev Danil-Grigorev left a comment

Choose a reason for hiding this comment

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

Same, thanks for fixing this!

@salasberryfin salasberryfin merged commit 967b2da into rancher:main Sep 4, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Indicates an issue related to test kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement e2e test case for cluster class support
3 participants