CherryPicked: [cnv-4.22] Remove redundant and duplicated by upstream t2 tests - #5933
Conversation
##### What this PR does / why we need it: Remove tests that validate the same behavior already covered by upstream HCO func-tests (t1), per T2 package evaluation. strict_reconciliation/test_hco_cr_defaults_on_stanza_deletion.py: Remove test_certconfig_defaults_on_stanza_delete (CNV-6377-6393) and test_livemigrationconfig_defaults_on_stanza_delete (CNV-6403-6417). Duplicated by defaults_test.go certConfig (L32-65) and liveMigrationConfig (L102-133): https://github.com/kubevirt/hyperconverged-cluster-operator/blob/main/tests/func-tests/defaults_test.go#L32-L133 Keep test_featuregates_defaults_on_stanza_delete (CNV-6397, CNV-6399). strict_reconciliation/test_operator_defaults.py: Remove entire file — static reads of default values against hardcoded constants, covered by defaults_test.go. launcher_updates/test_default_launcher_updates.py: Remove static default value reads (CNV-6911, CNV-6912), covered by defaults_test.go workloadUpdateStrategy (L194-228): https://github.com/kubevirt/hyperconverged-cluster-operator/blob/main/tests/func-tests/defaults_test.go#L194-L228 product_uninstall/test_remove_kubevirt.py: Remove test_validate_default_uninstall_strategy (CNV-3738), covered by defaults_test.go uninstallStrategy (L216-245): https://github.com/kubevirt/hyperconverged-cluster-operator/blob/main/tests/func-tests/defaults_test.go#L216-L245 Remove dead expected_certconfig_stanza and unused imports from strict_reconciliation/utils.py. assisted by: claude code claude-opus-4-6 ##### 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** - Removed outdated validation coverage for default workload update and uninstall strategies. - Removed strict-reconciliation tests covering operator defaults, certificate settings, feature gates, and live-migration configuration. - Removed unused test fixtures and helper utilities related to deleted scenarios. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Ohad Revah <orevah@redhat.com>
|
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. |
|
@coderabbitai review |
|
📝 WalkthroughWalkthroughThe pull request deletes redundant operator validation tests and their supporting fixtures, constants, and helpers. The removed coverage includes launcher updates, product uninstall behavior, relationship labels, and strict reconciliation defaults. ChangesOperator test cleanup
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
/verified |
|
/approve |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:cnv-4.22 published |
Cherry-pick from
mainbranch, original PR: #5902, PR owner: OhadRevahSummary by CodeRabbit