| Sridevi Ramesh | 92041a3 | 2020-04-22 02:29:31 -0500 | [diff] [blame] | 1 | *** Settings *** | 
 | 2 |  | 
 | 3 | Documentation    Module to test PLDM oem commands. | 
 | 4 |  | 
 | 5 | Library          ../lib/pldm_utils.py | 
 | 6 | Variables        ../data/pldm_variables.py | 
 | 7 | Resource         ../lib/openbmc_ffdc.robot | 
 | 8 |  | 
 | 9 | Test Setup       Printn | 
 | 10 | Test Teardown    FFDC On Test Case Fail | 
 | 11 |  | 
| Matt Fischer | 6fb70d9 | 2023-10-24 19:06:33 -0600 | [diff] [blame] | 12 | Test Tags       Pldm_OEM | 
| Sridevi Ramesh | 92041a3 | 2020-04-22 02:29:31 -0500 | [diff] [blame] | 13 |  | 
 | 14 | *** Test Cases *** | 
 | 15 |  | 
 | 16 | Verify GetAlertStatus | 
 | 17 |     [Documentation]  Verify get alert status descriptor response message. | 
 | 18 |     [Tags]  Verify_GetAlertStatus | 
 | 19 |  | 
 | 20 |     ${pldm_output}=  Pldmtool  oem-ibm GetAlertStatus -i 0 | 
 | 21 |     Rprint Vars  pldm_output | 
| Sridevi Ramesh | 961050b | 2020-11-12 11:04:30 -0600 | [diff] [blame] | 22 |     Valid Value  pldm_output['rack entry']  ['0xff000030'] | 
 | 23 |     Valid Value  pldm_output['pri cec node']  ['0x00008030'] | 
| Sridevi Ramesh | 92041a3 | 2020-04-22 02:29:31 -0500 | [diff] [blame] | 24 |  | 
| Sridevi Ramesh | 94eca7f | 2025-02-25 04:05:56 -0600 | [diff] [blame] | 25 |  | 
 | 26 | Verify GetFileTable | 
 | 27 |     [Documentation]  Verify GetFileTable response message. | 
 | 28 |     [Tags]  Verify_GetFileTable | 
 | 29 |  | 
 | 30 |     ${pldm_output}=  Pldmtool  oem-ibm GetFileTable | 
 | 31 |  | 
 | 32 |     # Example output | 
 | 33 |     # [{ | 
 | 34 |     #    "FileHandle": "0", | 
 | 35 |     #    "FileNameLength": 7, | 
 | 36 |     #    "FileName": "abcdxxx", | 
 | 37 |     #    "FileSize": 28672, | 
 | 38 |     #    "FileTraits": 1 | 
 | 39 |     # }] | 
 | 40 |  | 
 | 41 |     Should Be Equal  ${pldm_output[0]["FileHandle"]}  0 | 
 | 42 |     ${output_length}=  Get Length  ${pldm_output} | 
 | 43 |     Should Be True  ${output_length}>${1} |