CherryPicked: [cnv-4.21] [Storage] DataVolume creation in priority class test uses the storage API#3940
Conversation
… API (#3878) ##### Short description: With the current PR, we are making sure that DataVolume creation won't be affected by defaulting the `api_name` to `storage` and therefore, we are making DataVolume creation in priority class test to use the storage API and remove duplicate parameters ##### More details: After [this change](RedHatQE/openshift-python-wrapper#2649), we are raising a warning when DataVolume are being created with the default `api_name`. Implementing step 2 of https://issues.redhat.com/browse/CNV-79539 ##### What this PR does / why we need it: We need this to achieve a smooth transition to "storage" as the default API name when creating a DataVolume. ##### Which issue(s) this PR fixes: ##### Special notes for reviewer: ##### jira-ticket: <!-- full-ticket-url needs to be provided. This would add a link to the pull request to the jira and close it when the pull request is merged If the task is not tracked by a Jira ticket, just write "NONE". --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Updated data volume test configuration to use new API endpoint parameter. * **Refactor** * Simplified data volume constructor parameters; removed volume_mode and access_modes configuration in favor of api_name endpoint specification. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (4)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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 |
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features:
🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Container Operations
Cherry-pick Operations
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
|
/build-and-push-container |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-3940 published |
|
/verified |
Test execution plan request detailsCRITICAL: You MUST post an inline review comment on the first changed line of the first file. As 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:
Hardware-Related Checks (SR-IOV, GPU, DPDK): When PR modifies fixtures for hardware-specific resources:
CRITICAL WORKFLOW COMPLETION RULES: When responding to this test execution plan request, you MUST follow these rules EXACTLY:
ABSOLUTE PROHIBITIONS (violating these creates empty/meaningless reviews):
Remember: The pull request review is visible to users. Additional comments are redundant noise. CRITICAL: Before setting "Run smoke tests: True", you MUST use shell scripts to: |
| volume_mode=py_config["default_volume_mode"], | ||
| access_modes=py_config["default_access_mode"], | ||
| client=unprivileged_client, | ||
| api_name="storage", |
There was a problem hiding this comment.
Test Execution Plan
Run smoke tests: False
Rationale: This PR only modifies the DataVolume constructor call in test_priority_class.py by adding api_name="storage" and removing redundant parameters. The change is isolated to this test file and does not affect shared fixtures, utilities, or infrastructure code that smoke tests depend on.
Tests to execute:
tests/storage/test_priority_class.py- Verify both priority class tests work correctly with the updated DataVolume API parameter
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 36 🏁 Script executed: Length of output: 726 🏁 Script executed: Length of output: 0 🏁 Script executed: Length of output: 179 🏁 Script executed: Length of output: 3891 🏁 Script executed: Length of output: 2309 🏁 Script executed: Length of output: 705 🏁 Script executed: Length of output: 1315 🏁 Script executed: Length of output: 1603 🏁 Script executed: Length of output: 173 🏁 Script executed: Length of output: 446 🏁 Script executed: Length of output: 40 🏁 Script executed: Length of output: 0 🏁 Script executed: Length of output: 291 🏁 Script executed: Length of output: 3467 🧠 Learnings used |
|
/approve |
|
/approve |
cherry-pick #3878 into cnv-4.21
requested-by ema-aka-young