Enhanced test case "show platform ssdhealth" to do validation for values in the output#8457
Enhanced test case "show platform ssdhealth" to do validation for values in the output#8457ppikh wants to merge 4 commits intosonic-net:masterfrom
Conversation
…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>
…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>
…kh/sonic-mgmt into improved_ssd_test_validation
|
@ppikh the description has no reference to Bluefield although there are some changes. |
|
Hi @liat-grozovik |
|
@prgeor could you please review/approve? |
|
@prgeor kindly reminder to provide your feedback |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
Only PR owner can use /azpw run |
…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? -->
…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? -->
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
Back port request
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