Repository navigation
fix(warm): restrict ClusterRole tests to vSphere provider only - #574
Conversation
The SCC requirement for forklift-migrator-role is vSphere-specific. On RHV, migration succeeds without SCC binding, causing the negative test (TestClusterroleWarmMtvMigration) to incorrectly fail. Add @pytest.mark.vsphere to both ClusterRole test classes so they are auto-skipped for non-vSphere providers via pytest_collection_modifyitems.
WalkthroughAdded the ChangesTest marker addition
Estimated code review effort: 1 (Trivial) | ~2 minutes Related PRs: None identified. Suggested labels: test, ci Suggested reviewers: None identified. CRITICAL: None — this is a purely additive marker change with zero logic impact, so there's nothing here that can break a build or leak a secret. LOW: Verify the Poem 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
|
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
For more information, please refer to the project documentation or contact the maintainers. |
PR Summary by QodoRestrict ClusterRole warm-migration tests to vSphere provider
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
|
/verified |
|
/lgtm |
|
/approve |
|
New container for ghcr.io/redhatqe/mtv-api-tests:latest published |
Summary
@pytest.mark.vsphereto both ClusterRole test classesforklift-migrator-roleis vSphere-specific — on RHV the migration succeeds without SCC, causing the negative test to incorrectly failpytest_collection_modifyitemshook auto-skips items with thevspherekeyword for non-vSphere providersSummary by CodeRabbit