-
Notifications
You must be signed in to change notification settings - Fork 753
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
Introduce framework for filtering/selecting pluggable components for sonic modular chassis #2794
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jleveque
reviewed
Jan 14, 2021
This pull request introduces 2 alerts when merging 761e55e28a70678481ff92169eadb65900c371d3 into 823fe3d - view on LGTM.com new alerts:
|
retest vsimage please |
wangxin
reviewed
Jan 29, 2021
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.
Can you address the LGTM alerts?
wangxin
approved these changes
Feb 2, 2021
@rawal01 Can you update the PR description to match the latest code of this PR? |
saravanansv
reviewed
Feb 2, 2021
-adding new json file to support fixture in platform tests to skip checks for modules not present in DUT new file: tests/platform_tests/cli/test_show_chassis_module.py -adding new two new test cases for verifying show chassis-module status and show chassis-module midplane status introduced as part of PRs sonic-net/sonic-utilities#1145 and sonic-net/sonic-utilities#1267 tests/platform_tests/conftest.py -adding a fixture that skips checking for modules for DUT
changed method to fetch skip list from new json file to inventory based tests/platform_tests/cli/util.py new utility function to get skip modules list from inventory per dut hostname tests/platform_tests/conftest.py remove fixture to fetch skip module list based on json file tests/platform_tests/test_power_budget_info.py Add new test to test power budget redis command for chassis module
…ogging module directly
… change assert message as per comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduce framework for filtering/selecting pluggable components for sonic modular chassis
tests/platform_tests/cli/test_show_chassis_module.py
show chassis-module status
andshow chassis-module midplane status
that were introduced as part of PRs Configure and show for platform chassis_modules sonic-utilities#1145 and [show] Add subcommand to show midplane status for modular chassis sonic-utilities#1267tests/platform_tests/conftest.py
Description of PR
Summary:
Fixes # (issue)
Type of change
Approach
What is the motivation for this PR?
Add test cases to verify show chassis-module status and show chassis-module midplane-status for VOQ chassis. The cli commands were introduced in following PRs:
How did you do it?
tests/platform_tests/cli/test_show_chassis_module.py
for verifying show chassis-module status and show chassis-module midplane status. Introduced test cases:test_show_chassis_module_status
: verify the output of command show chassis-module statustest_show_chassis_module_midplane_status
: verify the output of command show chassis-module midplane-statustest_power_budget_info.py
for verifying the redis output for power budget policy in supervisor card of chassisBased on inventory file the tests will skip above modules for DUT1. For example,
show chassis module
will allow empty as status for LINE-CARD0 and LINE-CARD2 while all other will be expected to be ONLINE.How did you verify/test it?
Ran sample tests against Nokia chassis with t2 topology using the skip fixture
Any platform specific information?
Supported testbed topology if it's a new test case?
t2
Documentation