George Keishing | cdfea1d | 2022-08-05 10:42:39 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Test suite to verify BIOS POST code log entries. |
| 3 | |
| 4 | Resource ../../../lib/resource.robot |
| 5 | Resource ../../../lib/bmc_redfish_resource.robot |
| 6 | Resource ../../../lib/openbmc_ffdc.robot |
| 7 | Resource ../../../lib/logging_utils.robot |
| 8 | |
| 9 | Suite Setup Suite Setup Execution |
| 10 | Test Setup Test Setup Execution |
| 11 | Test Teardown Test Teardown Execution |
| 12 | Suite Teardown Suite Teardown Execution |
| 13 | |
| 14 | *** Test Cases *** |
| 15 | |
| 16 | Test PostCodes When Host Boots |
| 17 | [Documentation] Boot the system and verify PostCodes from host are logged. |
| 18 | [Tags] Test_PostCodes_When_Host_Boots |
| 19 | |
| 20 | Redfish Power On |
| 21 | ${post_code_list}= Redfish Get PostCodes |
| 22 | Rprint Vars post_code_list |
| 23 | |
| 24 | ${post_codes}= Redfish.Get Properties |
| 25 | ... /redfish/v1/Systems/system/LogServices/PostCodes/Entries |
| 26 | Log To Console BIOS POST Codes count: ${post_codes['Members@odata.count']} |
| 27 | Should Be True ${post_codes['Members@odata.count']} >= 1 msg=No BIOS POST Codes populated. |
| 28 | |
| 29 | |
| 30 | *** Keywords *** |
| 31 | |
| 32 | Test Setup Execution |
| 33 | [Documentation] Do test setup operation. |
| 34 | |
| 35 | Redfish.Login |
| 36 | Redfish Clear PostCodes |
| 37 | |
| 38 | |
| 39 | Test Teardown Execution |
| 40 | [Documentation] Do test teardown operation. |
| 41 | |
| 42 | FFDC On Test Case Fail |
| 43 | |
| 44 | |
| 45 | Suite Setup Execution |
| 46 | [Documentation] Do suite setup operation. |
| 47 | |
| 48 | Redfish.Login |
| 49 | Redfish Power Off stack_mode=skip |
| 50 | |
| 51 | Run Keyword And Ignore Error Redfish Delete All BMC Dumps |
| 52 | Run Keyword And Ignore Error Redfish Purge Event Log |
| 53 | Run Keyword And Ignore Error Delete All Redfish Sessions |
| 54 | |
| 55 | |
| 56 | Suite Teardown Execution |
| 57 | [Documentation] Do suite teardown operation. |
| 58 | |
| 59 | Run Keyword And Ignore Error Redfish Delete All BMC Dumps |
| 60 | Run Keyword And Ignore Error Redfish Purge Event Log |
| 61 | Run Keyword And Ignore Error Delete All Redfish Sessions |