Skip to content
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

Update test_turn_on_off_psu_and_check_psustatus to handle PSUs with multiple PDUs #15981

Conversation

Javier-Tan
Copy link
Contributor

Description of PR

Summary:
Update test_turn_on_off_psu_and_check_psustatus to handle PSUs with multiple PDUs correctly
Related: #15972

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

  • Instead of toggling one outlet/PDU, toggle a set at a time connected to one PSU
  • Move common PSU helpers function to new psu_helpers.py in tests/common/helpers folder
  • Add try / catch block to ensure all PSUs are turned back on after the test

What is the motivation for this PR?

Prevent test from failing when toggling a PDU connected to a PSU that will stay on due to other redundant PDUs that were not toggled.

How did you do it?

Break PDUs into sets based on PSU, make sure to toggle whole sets at once.

How did you verify/test it?

TBC

Any platform specific information?

N/A

Supported testbed topology if it's a new test case?

N/A

Documentation

N/A

…nd_check_psustatus to handle PSUs with multiple PDUs

* Instead of toggling one outlet/PDU, toggle a set at a time connected to one PSU
* Move common PSU helpers function to new psu_helpers.py in tests/common/helpers folder
* Add try / catch block to ensure all PSUs are turned back on after the test

Signed-off-by: Javier Tan [email protected]
* Remove breakpoint used for debugging

Signed-off-by: Javier Tan [email protected]
@Javier-Tan
Copy link
Contributor Author

Merging this PR with #15972 for simplicities sake

@Javier-Tan Javier-Tan closed this Dec 11, 2024
@Javier-Tan Javier-Tan deleted the platform_info_psu_test_multi_pdu_update branch January 2, 2025 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants