Skip to content

Conversation

@albinsun
Copy link
Contributor

@albinsun albinsun commented Apr 7, 2025

Which issue(s) this PR fixes:

Issue #1977

What this PR does / why we need it:

  1. Fix test_1_images.py::TestBackendImages::test_delete_image_recreate
    image

  2. Fix test_1_images.py::TestBackendImages::test_edit_image_in_use which volume size should be greater than the virtual size when Source is VM Image.
    Image

Special notes for your reviewer:

Additional documentation or context

image

@albinsun albinsun marked this pull request as ready for review April 7, 2025 09:24
Copilot AI review requested due to automatic review settings April 7, 2025 09:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

harvester_e2e_tests/integrations/test_1_images.py:303

  • Ensure that the new image_checksum parameter is in the correct position to match the updated function signature of create_image_url. If the function was modified recently, double-check that all corresponding documentation and usage reflect this change.
create_image_url(api_client, image_name, image_url, image_checksum, wait_timeout)

harvester_e2e_tests/integrations/test_1_images.py:363

  • [nitpick] Verify that adding 1 to the result of the integer division of virtualSize by 1024**3 accurately represents the intended volume size, especially when virtualSize is an exact multiple of 1 GB.
image_size_gb = data["status"]["virtualSize"] // 1024**3 + 1

Copy link
Member

@lanfon72 lanfon72 left a comment

Choose a reason for hiding this comment

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

LGTM

@khushboo-rancher
Copy link
Collaborator

@albinsun Could you please fix the DCO, sign off the commit?

@albinsun albinsun force-pushed the fix_broken_testcase branch from d5d38a4 to 5ccff82 Compare April 8, 2025 06:41
@albinsun albinsun merged commit 06062dd into harvester:main Apr 8, 2025
5 checks passed
@albinsun albinsun deleted the fix_broken_testcase branch April 8, 2025 06:43
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.

3 participants