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

[platform/sfp] Add test cases for SFP error status #3648

Merged
merged 4 commits into from
Jun 30, 2021
Merged

[platform/sfp] Add test cases for SFP error status #3648

merged 4 commits into from
Jun 30, 2021

Conversation

stephenxs
Copy link
Contributor

Description of PR

Summary:
Add test cases for SFP error status

Signed-off-by: Stephen Sun stephens@nvidia.com

Fixes # (issue)

Type of change

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

Back port request

  • 201911

Approach

What is the motivation for this PR?

Add test cases for SFP error status

  • Add test cases for sfputil show error-status
  • Add platform test for SFP.get_error_description()

How did you do it?

How did you verify/test it?

Run regression test.

Any platform specific information?

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

Documentation

stephenxs added 2 commits June 8, 2021 10:48
- Add test cases for sfputil show error-status
- Add platform test for SFP.get_error_description()

Signed-off-by: Stephen Sun <stephens@nvidia.com>
- Remove unused variable
- Simplify the fixture of the command

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs
Copy link
Contributor Author

@jleveque can you review this PR when you have time? thanks.

tests/platform_tests/api/test_sfp.py Outdated Show resolved Hide resolved
Signed-off-by: Stephen Sun <stephens@nvidia.com>
Copy link
Collaborator

@liat-grozovik liat-grozovik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as commented

tests/platform_tests/sfp/test_sfputil.py Show resolved Hide resolved
tests/platform_tests/api/test_sfp.py Show resolved Hide resolved
tests/platform_tests/sfp/test_sfputil.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@liat-grozovik liat-grozovik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as commented

- Skip the test if error status isn't supported
- Skip the test on versions 202012, 201911, 201811
- Add comments

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@liat-grozovik liat-grozovik merged commit 8305c26 into sonic-net:master Jun 30, 2021
@stephenxs stephenxs deleted the sfp-error-status-github branch June 30, 2021 10:19
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
Add test cases for SFP error status
- Add test cases for sfputil show error-status
- Add platform test for SFP.get_error_description()

Signed-off-by: Stephen Sun <stephens@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants