-
Notifications
You must be signed in to change notification settings - Fork 54
tests, net, udn: Introduce IP specification STD #3612
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
📝 WalkthroughWalkthroughAdds a new test module with four explicit-IP UDN VM tests and extends the upgrade test suite with two disabled VM state-preservation tests for pre- and post-upgrade scenarios. All new tests are scaffolding with docstrings and Polarion markers; some are marked to not collect/run. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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
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. |
|
D/S test |
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.
Actionable comments posted: 3
🤖 Fix all issues with AI agents
In
`@tests/network/user_defined_network/ip_specification/test_ip_specification.py`:
- Around line 31-118: The module is disabled with __test__ = False and the test
functions (e.g., test_vm_is_started_with_successful_connectivity,
test_successful_external_connectivity,
test_seamless_in_cluster_connectivity_is_preserved_over_live_migration,
test_ip_address_is_preserved_over_power_lifecycle,
test_ip_address_is_preserved_over_upgrade) contain only docstrings so enabling
the module will produce failing/empty tests; either implement each test body
according to its docstring (set IP via annotation/cloud-init,
start/restart/migrate as needed, assert VMI.status IP equals the configured IP
and guest OS sees the same IP, and verify TCP/ping connectivity from the
reference VM) or, if not ready, replace each empty body with pytest.skip("TODO:
implement explicit IP verification and connectivity checks") and only remove
__test__ = False after full implementations are added.
- Line 10: Remove the collection-blocking line "__test__ = False" from the
module so pytest can discover the tests; for each of the five test functions in
tests/network/user_defined_network/ip_specification/test_ip_specification.py,
replace the docstring-only bodies with real assertions that implement the
described checks (translate the steps in each docstring into assert statements
and any necessary setup/teardown); add the appropriate pytest markers as
decorators (e.g., `@pytest.mark.ipv4`, `@pytest.mark.single_nic`,
`@pytest.mark.incremental`) above each test function to match the markers listed
in the docstrings and pytest.ini so tests are selectable and run.
- Around line 15-23: Remove or set the module-level __test__ = False to allow
pytest to collect tests (either delete the line or change it to __test__ =
True), and add pytest markers to the test class or its test methods by
decorating TestVMWithExplicitIPAddressSpecification with `@pytest.mark.ipv4`,
`@pytest.mark.single_nic`, and `@pytest.mark.incremental` so the tests can be
selected by the repository's marker-based test runs; ensure the pytest import is
present if not already.
tests/network/user_defined_network/ip_specification/test_ip_specification.py
Show resolved
Hide resolved
tests/network/user_defined_network/ip_specification/test_ip_specification.py
Show resolved
Hide resolved
tests/network/user_defined_network/ip_specification/test_ip_specification.py
Outdated
Show resolved
Hide resolved
tests/network/user_defined_network/ip_specification/test_ip_specification.py
Outdated
Show resolved
Hide resolved
|
D/S test |
|
/retest tox |
|
/retest all |
|
Verification: Result: /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:
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: |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 678 🏁 Script executed: Length of output: 1654 🏁 Script executed: Length of output: 1735 🧠 Learnings used |
|
/approve |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:latest published |
What this PR does / why we need it:
IP addresses specification on a VM
Tests are aimed to cover the ability to define at VM definition its primary UDN IP address.
STP Reference:
https://github.com/RedHatQE/openshift-virtualization-tests-design-docs/blob/main/stps/sig-network/ip-request.md
Which issue(s) this PR fixes:
Special notes for reviewer:
This STD has been written based on guidelines and examples introduced in #2881
jira-ticket:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.