-
Notifications
You must be signed in to change notification settings - Fork 51
[4.20] [Storage]: Use blank dv instead of Cirros in test_fail_to_vmexport_with_unprivileged_client_no_permissions #2742
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
[4.20] [Storage]: Use blank dv instead of Cirros in test_fail_to_vmexport_with_unprivileged_client_no_permissions #2742
Conversation
…h_unprivileged_client_no_permissions (RedHatQE#2665) ##### Short description: Improving test `test_fail_to_vmexport_with_unprivileged_client_no_permissions` to use a blank data source with unprivileged lcient to create a vmexport instance. ##### More details: ##### What this PR does / why we need it: Change the test to use a blank data source instead a cirros one ##### Which issue(s) this PR fixes: ##### Special notes for reviewer: ##### jira-ticket: https://issues.redhat.com/browse/CNV-69121 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Improved VM export tests: added an admin-created data-volume fixture, renamed the unprivileged-created fixture, removed redundant readiness waits, and simplified parameterization to rely on the new fixtures. * **Utilities** * Added a reusable helper to create blank data volumes for tests, consolidating creation and readiness handling to reduce setup duplication. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
Caution Review failedFailed to post review comments WalkthroughThis pull request updates the project to target CNV version 4.20, upgrades Fedora image support from 41/42 to 43, replaces hard-coded test IP addresses with deterministic random generation, removes unstable CNAO network tests, and refactors test fixtures and utilities for improved maintainability and reliability. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Areas requiring extra attention:
Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## cnv-4.20 #2742 +/- ##
===========================================
Coverage ? 93.51%
===========================================
Files ? 16
Lines ? 1358
Branches ? 0
===========================================
Hits ? 1270
Misses ? 88
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
D/S test |
openshift-virtualization-qe-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D/S test tox -e verify-bugs-are-open failed: cnv-tests-tox-executor/19837
|
/retest tox |
openshift-virtualization-qe-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D/S test tox -e verify-bugs-are-open failed: cnv-tests-tox-executor/19845
|
/approve |
|
/lgtm |
|
/approve |
|
/verified |
Test execution plan request detailsAs an expert software testing engineer, analyze all modified files in this PR and create a targeted test execution plan. Analysis Requirements:
Your deliverable: Test Execution Plan
Guidelines:
|
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 110 🏁 Script executed: Length of output: 2817 🏁 Script executed: Length of output: 0 🏁 Script executed: Length of output: 8027 🏁 Script executed: Length of output: 657 🏁 Script executed: Length of output: 110 🏁 Script executed: Length of output: 6968 🏁 Script executed: Length of output: 144 @openshift-virtualization-qe-bot-3, Based on my analysis of PR #2742, this PR makes focused changes to the VM export tests, specifically replacing the use of a Cirros image DataVolume with a blank DataVolume in tests that verify unprivileged client behavior. Test Execution Plan The following tests are directly affected by the fixture and implementation changes:
These two tests should be executed to verify:
🧠 Learnings used |
|
/lgtm |
|
/verified By running locally Cluster info: Name: stg-jose420 |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:cnv-4.20 published |
Short description:
Backport: #2665
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Updates
Refactoring