-
Notifications
You must be signed in to change notification settings - Fork 727
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
[platform_tests]Fix psu test for mgmttstor #5968
Conversation
@@ -239,6 +239,9 @@ def test_turn_on_off_psu_and_check_psustatus(duthosts, enum_rand_one_per_hwsku_h | |||
logging.info("Start testing turn off/on PSUs") | |||
all_outlet_status = pdu_ctrl.get_outlet_status() | |||
pytest_require(all_outlet_status and len(all_outlet_status) >= 2, 'Skip the test, cannot get at least 2 outlet status: {}'.format(all_outlet_status)) | |||
if tbinfo["topo"]["properties"]["configuration_properties"]["common"]["dut_type"] == "MgmtTsToR": | |||
all_outlet_status = all_outlet_status[0:2] | |||
logging.Info("DUT is MgmtTsToR, only the first 2 outlets are visible from DUT.") |
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.
Let's assume last 2 outlets are belong to Console Switch (not visible from DUT)
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.
Let's assume last 2 outlets are belong to Console Switch (not visible from DUT)
9a229b0
to
019fce7
Compare
MgmtTsToR has 4 power outlets but only 2 is visible from the DUT. The other 2 outlets are reserved for C0 device. Signed-off-by: Xichen Lin <xichenlin@microsoft.com>
Signed-off-by: Xichen Lin <xichenlin@microsoft.com>
019fce7
to
8120cef
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
tbinfo is used in the PR sonic-net#5968, but the fixture is not added in the test case function.
* Fix psu test for mgmttstor MgmtTsToR has 4 power outlets but only 2 is visible from the DUT. The other 2 outlets are reserved for C0 device. Assume last 2 outlets are for C0 on MgmtTsToR Signed-off-by: Xichen Lin <xichenlin@microsoft.com>
MgmtTsToR has 4 power outlets but only 2 is visible from the DUT. The
other 2 outlets are reserved for C0 device.
Signed-off-by: Xichen Lin xichenlin@microsoft.com
Description of PR
MgmtTsToR has 4 power outlets but only 2 is visible from the DUT. The other 2 outlets are reserved for C0 device. Before the fix, tests fail because the other 2 PSUs were turned off and DUT did not observe any change. We will exclude the other 2 outlets for MgmtTsToR devices.
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Same as summary.
How did you do it?
How did you verify/test it?
Run manual tests.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation