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

Enhancements platform api tests and change in psustatus_json to use enum_supervisor_dut_hostname #3756

Merged
merged 2 commits into from Feb 15, 2022

Conversation

rawal01
Copy link
Contributor

@rawal01 rawal01 commented Jul 9, 2021

Description of PR

Summary:
change in test_chassis to include '-' in regex for serial number as in case of some Nokia platform.
Include a method to skip led test for psu which do no support and test master led to include only supported colors based on
platform.json.
In test_show_platform.py fix psu test to use enum_supervisor_dut_hostname to be consistant with other tests
Fixes # (issue)

Type of change

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

Back port request

  • 201911

Approach

What is the motivation for this PR?

Enhancement to skip test_led for psu if not supported by platform, change to use consistent dut enumerator in test_platform_psustatus_json test

How did you do it?

tests/platform_tests/api/test_chassis.py : modify regex for serial number to include '-'

tests/platform_tests/api/test_psu.py : enhance test_led to skip test if psu does not support led based on information from platform.json
tests/platform_tests/cli/test_show_platform.py : change show_platform_psu_status to use enum_supervisor_dut_hostname instead of rand_one_dut_hostname

How did you verify/test it?

Tested on voq chassis and pizza box

Any platform specific information?

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

Documentation

@anshuv-mfst
Copy link

Hi @lguohan - could you please assign this PR for review (PSU related)

@anshuv-mfst anshuv-mfst removed the request for review from jleveque July 21, 2021 16:43
@anshuv-mfst anshuv-mfst requested a review from a team August 11, 2021 16:57
ysmanman
ysmanman previously approved these changes Sep 15, 2021
harish-kalyanaraman pushed a commit to harish-kalyanaraman/sonic-mgmt that referenced this pull request Nov 18, 2021
…num_supervisor_dut_hostname (sonic-net#3756 - rawal01:platform-tests-change)

 tests/platform_tests/api/test_chassis.py : modify regex for serial number to include '-'
 tests/platform_tests/api/test_psu.py :  enhance test_led to skip test if psu does not support led based on information from platform.json
 tests/platform_tests/cli/test_show_platform.py : change show_platform_psu_status to use enum_supervisor_dut_hostname instead of rand_one_dut_hostname
…umber to include '-'

 tests/platform_tests/api/test_psu.py :  enhance test_led to skip test if psu does not support led based on information from platform.json
 tests/platform_tests/cli/test_show_platform.py : change show_platform_psu_status to use enum_supervisor_dut_hostname instead of rand_one_dut_hostname
@sanmalho-git
Copy link
Contributor

@judyjoseph @ysmanman We have rebased this PR to the latest github and addressed the review comments. Could you please re-review.

@judyjoseph
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@judyjoseph judyjoseph merged commit 4afbb8c into sonic-net:master Feb 15, 2022
mannytaheri pushed a commit to mannytaheri/sonic-mgmt that referenced this pull request Mar 2, 2022
…num_supervisor_dut_hostname (sonic-net#3756)

* tests/platform_tests/api/test_chassis.py : modify regex for serial number to include '-'
 tests/platform_tests/api/test_psu.py :  enhance test_led to skip test if psu does not support led based on information from platform.json
 tests/platform_tests/cli/test_show_platform.py : change show_platform_psu_status to use enum_supervisor_dut_hostname instead of rand_one_dut_hostname

* Addressing review comments
mannytaheri pushed a commit to mannytaheri/sonic-mgmt that referenced this pull request Mar 9, 2022
…num_supervisor_dut_hostname (sonic-net#3756 - rawal01:platform-tests-change)

 tests/platform_tests/api/test_chassis.py : modify regex for serial number to include '-'
 tests/platform_tests/api/test_psu.py :  enhance test_led to skip test if psu does not support led based on information from platform.json
 tests/platform_tests/cli/test_show_platform.py : change show_platform_psu_status to use enum_supervisor_dut_hostname instead of rand_one_dut_hostname
 - Review comments and rebase of PR#3756 (sonic-net#3756 - rawal01:platform-tests-change)
 - Allow dashes in the serial number in the syseeprom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants