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 | |
Sridevi Ramesh | b9694fa | 2025-09-21 08:02:20 -0500 | [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 | |
Sridevi Ramesh | b9694fa | 2025-09-21 08:02:20 -0500 | [diff] [blame^] | 13 | Test Tags Check_Error_Logs |
| 14 | |
Joy Onyerikwu | 5b2d33c | 2021-01-22 00:48:49 -0600 | [diff] [blame] | 15 | *** Variables *** |
| 16 | ${QUIET} ${1} |
| 17 | |
| 18 | *** Test Cases *** |
| 19 | |
| 20 | Collect Error Logs |
| 21 | [Documentation] Check error logs with Redfish. |
George Keishing | 4203fad | 2022-01-31 12:22:33 -0600 | [diff] [blame] | 22 | [Tags] Collect_Error_Logs |
Joy Onyerikwu | 5b2d33c | 2021-01-22 00:48:49 -0600 | [diff] [blame] | 23 | [Setup] Redfish.Login |
| 24 | [Teardown] Redfish Test Teardown Execution |
| 25 | |
| 26 | ${redfish_event_logs}= Get Event Logs |
| 27 | ${redfish_event_logs}= gen_robot_print.Sprint Vars redfish_event_logs |
| 28 | Set Suite Variable ${redfish_event_logs} |
| 29 | Log To Console \n\nEvent logs:${redfish_event_logs} |
| 30 | ${event_logs_flagged}= Get Event Logs Not Ok |
| 31 | ${event_logs_flagged}= gen_robot_print.Sprint Vars event_logs_flagged |
| 32 | Log To Console \n\nEvent logs flagged:${event_logs_flagged} |
| 33 | |
| 34 | |
| 35 | *** Keywords *** |
| 36 | |
| 37 | Suite Setup Execution |
| 38 | [Documentation] Do test suite setup tasks. |
| 39 | |
| 40 | Set Log Level DEBUG |
| 41 | Log To Console ${OPENBMC_HOST} |
| 42 | |
| 43 | |
| 44 | Redfish Test Teardown Execution |
| 45 | [Documentation] Do the post test teardown for redfish. |
| 46 | |
| 47 | Redfish.Logout |
George Keishing | 9f33d45 | 2023-10-17 15:43:23 +0530 | [diff] [blame] | 48 | FFDC On Test Case Fail |