Skip to content

Add chart upgrade test#2731

Open
khushboo-rancher wants to merge 1 commit into
harvester:mainfrom
khushboo-rancher:add_chart_upgrade
Open

Add chart upgrade test#2731
khushboo-rancher wants to merge 1 commit into
harvester:mainfrom
khushboo-rancher:add_chart_upgrade

Conversation

@khushboo-rancher

Copy link
Copy Markdown
Collaborator

Which issue(s) this PR fixes:

Issue # #2721

What this PR does / why we need it:

This PR adds test to verify the upgrade of chart from n-1 to latest.
Added CSI_CHART_VERSION & CP_CHART_VERSION which enable us to test specific version of chart.

Special notes for your reviewer:

Additional documentation or context

Signed-off-by: Khushboo <fnu.khushboo@suse.com>
Copilot AI review requested due to automatic review settings June 23, 2026 22:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds Rancher integration coverage for upgrading Harvester CSI and cloud provider charts (n-1 → latest) on imported RKE2 clusters, including new Rancher library capabilities to perform chart upgrades/uninstalls and to validate chart repo/app state during those operations.

Changes:

  • Add Robot upgrade test cases for CSI + cloud provider charts on imported RKE2 clusters, plus supporting upgrade/restart/cleanup keywords.
  • Extend Rancher client layers (REST/CRD + wrappers) with deployment scaling, chart upgrade/uninstall, and “wait with expected version/branch” verification.
  • Introduce optional CSI_CHART_VERSION / CP_CHART_VERSION variables to pin chart versions for install/upgrade scenarios.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
harvester_robot_tests/tests/regression/test_rancher_integration.robot Adds CSI/cloud provider chart upgrade test cases and updates tags/setup steps.
harvester_robot_tests/libs/rancher/rest.py Implements REST-side deployment scaling, chart upgrade/uninstall, chart deletion wait, and adds optional branch/version verification in waiters.
harvester_robot_tests/libs/rancher/crd.py Implements CRD/kubectl-side deployment scaling, chart upgrade/uninstall, chart deletion wait, and adds optional branch/version verification in waiters.
harvester_robot_tests/libs/rancher/rancher.py Exposes new Rancher operations through the delegating wrapper (REST/CRD).
harvester_robot_tests/libs/rancher/base.py Extends the abstract Rancher interface with the new operations and waiter parameters.
harvester_robot_tests/libs/keywords/rancher_keywords.py Exposes new Rancher operations to Robot keywords, including “upgrade latest if version empty” behavior.
harvester_robot_tests/keywords/variables.resource Adds CSI_CHART_VERSION and CP_CHART_VERSION variables for version pinning.
harvester_robot_tests/keywords/rancher.resource Adds Robot keywords for upgrade/uninstall/scale, upgrade test flows, and expected branch/version verification wiring.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread harvester_robot_tests/libs/rancher/rest.py
Comment thread harvester_robot_tests/libs/rancher/crd.py
@khushboo-rancher khushboo-rancher requested a review from a team June 23, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants