Joy Onyerikwu | 5b2d33c | 2021-01-22 00:48:49 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation BMC server health, check error logs. |
| 3 | |
| 4 | # Test Parameters: |
| 5 | # OPENBMC_HOST The BMC host name or IP address. |
| 6 | |
Joy Onyerikwu | c3dcec3 | 2021-01-22 10:37:57 -0600 | [diff] [blame] | 7 | Resource ../lib/bmc_redfish_resource.robot |
| 8 | Resource ../lib/openbmc_ffdc.robot |
Joy Onyerikwu | 5b2d33c | 2021-01-22 00:48:49 -0600 | [diff] [blame] | 9 | |
| 10 | Suite Setup Suite Setup Execution |
| 11 | Test Setup Printn |
| 12 | |
| 13 | *** Variables *** |
| 14 | ${QUIET} ${1} |
| 15 | |
| 16 | *** Test Cases *** |
| 17 | |
| 18 | Collect Error Logs |
| 19 | [Documentation] Check error logs with Redfish. |
| 20 | [Tags] check_errors |
| 21 | [Setup] Redfish.Login |
| 22 | [Teardown] Redfish Test Teardown Execution |
| 23 | |
| 24 | ${redfish_event_logs}= Get Event Logs |
| 25 | ${redfish_event_logs}= gen_robot_print.Sprint Vars redfish_event_logs |
| 26 | Set Suite Variable ${redfish_event_logs} |
| 27 | Log To Console \n\nEvent logs:${redfish_event_logs} |
| 28 | ${event_logs_flagged}= Get Event Logs Not Ok |
| 29 | ${event_logs_flagged}= gen_robot_print.Sprint Vars event_logs_flagged |
| 30 | Log To Console \n\nEvent logs flagged:${event_logs_flagged} |
| 31 | |
| 32 | |
| 33 | *** Keywords *** |
| 34 | |
| 35 | Suite Setup Execution |
| 36 | [Documentation] Do test suite setup tasks. |
| 37 | |
| 38 | Set Log Level DEBUG |
| 39 | Log To Console ${OPENBMC_HOST} |
| 40 | |
| 41 | |
| 42 | Redfish Test Teardown Execution |
| 43 | [Documentation] Do the post test teardown for redfish. |
| 44 | |
| 45 | Redfish.Logout |
| 46 | FFDC On Test Case Fail clean_up=${FALSE} |