CherryPicked: [cnv-4.22] [Storage] Refactor golden_image tests to use Fedora DataSource - #5977
Conversation
This PR removes the remaining artifactory usage from the golden images.
The artifactory usage was indirect in utilities/storage.py -> `def
data_volume where it constructed url =
f"{get_test_artifact_server_url()}{image}" if source == "http" else None
`
New fixture golden_image_dv_from_fedora_datasource_scope_module uses
source_ref (DataSource) instead of url (artifactory).
Unused golden_image_data_volume_scope_module was removed.
Based on
#5160
<!-- 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
-->
* **Tests**
* Updated golden image permission and listing coverage to use a shared
Fedora-based image data source.
* Removed obsolete RHEL-specific test configuration.
* Retained validation that regular users cannot delete or clone
restricted data volumes and can list permitted volumes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Signed-off-by: Emanuele Prella <eprella@redhat.com>
|
@ema-aka-young — AI automatically resolved merge conflicts for this cherry-pick. Please review the changes carefully and verify correctness before merging. |
|
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
Branch Management
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
AI Features
Security Checks
💡 Tips
📌 Additional InformationCustom Commands:
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-5977 published |
|
Verification failed for PR #5977. Execution details |
|
Failed verification because I used the wrong verification command |
|
/build-and-push-container |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-5977 published |
|
/approve |
|
/verified All tests passed for PR #5977. Execution details |
Cherry-pick from
mainbranch, original PR: #5922, PR owner: ema-aka-young