-
Notifications
You must be signed in to change notification settings - Fork 51
tests, net, kmp: Add client arg #2980
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
Conversation
WalkthroughAdded Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
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. |
azhivovk
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.
VMs require admin_client? Maybe we can use unprivileged_client?
|
#2980 (review) |
|
/build-and-push-container |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-2980 published |
|
/verified Tested locally (quota issue in Jenkins) on bm02-ibm Test Result: |
Test execution plan request detailsCRITICAL: You MUST respond with a review comment on the Files Changed tab, NOT as a regular PR comment. 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:
|
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 1406 🏁 Script executed: Length of output: 4309 @openshift-virtualization-qe-bot-3 Test Execution PlanBased on the analysis of the modified fixtures in Directly Affected TestsThese tests use the modified fixtures (
Comprehensive Validation (Recommended)
Note: The PR author has already validated the entire kubemacpool test suite locally with successful results (10 passed, 1 deselected). 🧠 Learnings used |
As of its next release, openshift-python-wrapper will enforce passing client when working with cluster resources. openshift-virtualization-tests must align with this change. All calls in the code to openshift-python-wrapper resources should be updated to pass client arg. Since the KMP NS is created with an admin_client the VMs must be created with the same client - VMs under a namespace that is not created by a project admin require admin privileges. Signed-off-by: Anat Wax <[email protected]>
0fe60ef to
fd67fcc
Compare
|
Change: rebase on main, resolve conflicts in tests/network/kubemacpool/conftest.py. |
|
/build-and-push-container |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-2980 published |
|
/verified Tested on bm02-ibm Tested locally due to an issue in Jenkins. |
Test execution plan request detailsCRITICAL: You MUST respond with a review comment on the Files Changed tab, NOT as a regular PR comment. 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:
|
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 10839 🏁 Script executed: Length of output: 155 @openshift-virtualization-qe-bot-3 I've analyzed the latest changes in this PR after the rebase on main. The modifications remain functionally the same - the three fixtures now use Test Execution PlanDirectly Affected TestsThe following tests use the modified fixtures and should be executed:
Comprehensive Validation (Recommended)
Verification Status: The PR author (@Anatw) has successfully validated these changes after the rebase on bm02-ibm cluster (4.21.0-ec.3) with all 10 tests passing and 1 deselected. 🧠 Learnings used |
|
/lgtm |
EdDev
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.
/approve
|
Successfully removed PR tag: quay.io/openshift-cnv/openshift-virtualization-tests:pr-2980. |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:latest published |
Short description:
Updated VM fixtures - all calls to openshift-python-wrapper resource should be updated to pass client.
What this PR does / why we need it:
As of its next release, openshift-python-wrapper will enforce passing client when working with cluster resources.
openshift-virtualization-tests must align with this change.
All calls in the code to openshift-python-wrapper resources should be updated to pass client arg.
Since the KMP NS is created with an admin_client the VMs must be created with the same client - VMs under a namespace that is not created by a project admin require admin privileges.
jira-ticket:
https://issues.redhat.com/browse/CNV-72392
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.