Skip to content

Enhanced test case "show platform ssdhealth" to do validation for values in the output#8457

Closed
ppikh wants to merge 4 commits intosonic-net:masterfrom
ppikh:improved_ssd_test_validation
Closed

Enhanced test case "show platform ssdhealth" to do validation for values in the output#8457
ppikh wants to merge 4 commits intosonic-net:masterfrom
ppikh:improved_ssd_test_validation

Conversation

@ppikh
Copy link
Copy Markdown
Contributor

@ppikh ppikh commented May 30, 2023

Description of PR

Enhanced test case "show platform ssdhealth" to do validation for values in the output

Originally test did just check for keys: "Device Mode", "Health", "Temperature" - now it also checks the values detected(not "N/A"), does check that SSD health is bigger than 50%, and checks that temperature is less than 100C

Added support to get the path to SSD based on platform type.
Added support to define sensors that have "N/A" value per platform.

Summary: Enhanced test case "show platform ssdhealth" to do validation for values in the output
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Enhanced test case "show platform ssdhealth" to do validation for values in the output

How did you do it?

Added validation for values in output

How did you verify/test it?

Executed test on different platforms

Any platform specific information?

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

Documentation

…ues in the output

Originally test did just check for keys: "Device Mode", "Health", "Temperature" - now it also checks the values detected(not "N/A"), does check that SSD health is bigger than 50%, and checks that temperature is less than 100C

Signed-off-by: Petro Pikh <petrop@nvidia.com>
@ppikh ppikh requested a review from prgeor as a code owner May 30, 2023 13:54
AntonHryshchuk
AntonHryshchuk previously approved these changes May 30, 2023
ppikh added 2 commits May 31, 2023 18:35
…ues in the output

Originally test did just check for keys: "Device Mode", "Health", "Temperature" - now it also checks the values detected(not "N/A"), does check that SSD health is bigger than 50%, and checks that temperature is less than 100C

Signed-off-by: Petro Pikh <petrop@nvidia.com>
@liat-grozovik
Copy link
Copy Markdown
Collaborator

@ppikh the description has no reference to Bluefield although there are some changes.
can you please explain what the reason for using BlueField SKU? why do we need to refer to such while for switch we don't?

@ppikh
Copy link
Copy Markdown
Contributor Author

ppikh commented Jun 16, 2023

Hi @liat-grozovik
In the description nothing related to Bluefield - because this test is generic(I've updated description).
In the test I'm not using Bluefeld SKU - I'm using the device platform which is not the same as SKU.
Platform required - because it allows specifying the specific path to SSD per platform(now it's used only for BF, but it can be extended later if will need) also it allows to define sensors that have "N/A" value per platform.

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@prgeor could you please review/approve?

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@prgeor kindly reminder to provide your feedback

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@AharonMalkin
Copy link
Copy Markdown
Contributor

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator

Only PR owner can use /azpw run

@illia-kotvitskyi
Copy link
Copy Markdown
Contributor

@nhe-NV, could you close this PR please?
We will continue tracking this change in #18907

mssonicbld added a commit to mssonicbld/sonic-mgmt.msft that referenced this pull request Aug 19, 2025
…ues in output

This PR duplicates sonic-net/sonic-mgmt#8457
<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should reviewer start? background context?
- List any dependencies that are required for this change.
-->
Enhanced test case "show platform ssdhealth" to do validation for values in the output

Originally test did just check for keys: "Device Mode", "Health", "Temperature" - now it also checks the values detected(not "N/A"), does check that SSD health is bigger than 50%, and checks that temperature is less than 100C

Added support to get the path to SSD based on platform type.
Added support to define sensors that have "N/A" value per platform.

Summary: Enhanced test case "show platform ssdhealth" to do validation for values in the output
Fixes # (issue)

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [ ] New Test case
    - [ ] Skipped for non-supported platforms
- [x] Test case improvement

### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [x] 202505

### Approach
#### What is the motivation for this PR?
Enhanced test case "show platform ssdhealth" to do validation for values in the output

#### How did you do it?
Added validation for values in output

#### How did you verify/test it?
Executed test on different platforms

#### Any platform specific information?

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

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
mssonicbld added a commit to Azure/sonic-mgmt.msft that referenced this pull request Aug 19, 2025
…o validation for values in output (#659)

This PR duplicates sonic-net/sonic-mgmt#8457
<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should reviewer start? background context?
- List any dependencies that are required for this change.
-->
Enhanced test case "show platform ssdhealth" to do validation for values in the output

Originally test did just check for keys: "Device Mode", "Health", "Temperature" - now it also checks the values detected(not "N/A"), does check that SSD health is bigger than 50%, and checks that temperature is less than 100C

Added support to get the path to SSD based on platform type.
Added support to define sensors that have "N/A" value per platform.

Summary: Enhanced test case "show platform ssdhealth" to do validation for values in the output
Fixes # (issue)

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [ ] New Test case
 - [ ] Skipped for non-supported platforms
- [x] Test case improvement

### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [x] 202505

### Approach
#### What is the motivation for this PR?
Enhanced test case "show platform ssdhealth" to do validation for values in the output

#### How did you do it?
Added validation for values in output

#### How did you verify/test it?
Executed test on different platforms

#### Any platform specific information?

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

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
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.

7 participants