1*** Settings *** 2Documentation Test suite to verify BIOS POST code log entries. 3 4Resource ../../../lib/resource.robot 5Resource ../../../lib/bmc_redfish_resource.robot 6Resource ../../../lib/openbmc_ffdc.robot 7Resource ../../../lib/logging_utils.robot 8 9Suite Setup Suite Setup Execution 10Test Setup Test Setup Execution 11Test Teardown Test Teardown Execution 12Suite Teardown Suite Teardown Execution 13 14*** Test Cases *** 15 16Test 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 32Test Setup Execution 33 [Documentation] Do test setup operation. 34 35 Redfish.Login 36 Redfish Clear PostCodes 37 38 39Test Teardown Execution 40 [Documentation] Do test teardown operation. 41 42 FFDC On Test Case Fail 43 44 45Suite 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 56Suite 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 62