George Keishing | 8cca7fb | 2019-05-30 04:23:50 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Inventory of hardware resources under systems. |
| 3 | |
| 4 | Resource ../../../lib/bmc_redfish_resource.robot |
| 5 | Resource ../../../lib/bmc_redfish_utils.robot |
| 6 | Resource ../../../lib/logging_utils.robot |
| 7 | Resource ../../../lib/openbmc_ffdc.robot |
| 8 | |
| 9 | Suite Setup Suite Setup Execution |
| 10 | Suite Teardown Suite Teardown Execution |
| 11 | Test Teardown Test Teardown Execution |
| 12 | |
| 13 | *** Test Cases *** |
| 14 | |
| 15 | Event Log Check After BMC Reboot |
| 16 | [Documentation] Check event log after BMC rebooted. |
| 17 | [Tags] Event_Log_Check_After_BMC_Reboot |
| 18 | |
| 19 | Redfish Purge Event Log |
| 20 | Event Log Should Not Exist |
| 21 | |
| 22 | Redfish OBMC Reboot (off) |
| 23 | |
| 24 | Redfish.Login |
| 25 | Wait Until Keyword Succeeds 1 mins 15 secs Redfish.Get ${EVENT_LOG_URI}Entries |
| 26 | |
| 27 | Event Log Should Not Exist |
| 28 | |
| 29 | |
| 30 | *** Keywords *** |
| 31 | |
| 32 | Suite Teardown Execution |
| 33 | [Documentation] Do the post suite teardown. |
| 34 | |
| 35 | Redfish.Logout |
| 36 | |
| 37 | |
| 38 | Suite Setup Execution |
| 39 | [Documentation] Do test case setup tasks. |
| 40 | |
| 41 | Redfish.Login |
| 42 | |
| 43 | ${status}= Run Keyword And Return Status Logging Test Binary Exist |
| 44 | Run Keyword If ${status} == ${False} Install Tarball |
| 45 | |
| 46 | |
| 47 | Test Teardown Execution |
| 48 | [Documentation] Do the post test teardown. |
| 49 | |
| 50 | FFDC On Test Case Fail |
| 51 | |
| 52 | |
| 53 | Event Log Should Not Exist |
| 54 | [Documentation] Event log entries should not exist. |
| 55 | |
| 56 | ${elogs}= Get Event Logs |
| 57 | Should Be Empty ${elogs} msg=System event log entry is not empty. |