blob: 177ac19e37f5afcc0710d619467507c888539773 [file] [log] [blame]
Joy Onyerikwu5b2d33c2021-01-22 00:48:49 -06001*** Settings ***
2Documentation BMC server health, check error logs.
3
4# Test Parameters:
5# OPENBMC_HOST The BMC host name or IP address.
6
Joy Onyerikwuc3dcec32021-01-22 10:37:57 -06007Resource ../lib/bmc_redfish_resource.robot
8Resource ../lib/openbmc_ffdc.robot
Joy Onyerikwu5b2d33c2021-01-22 00:48:49 -06009
10Suite Setup Suite Setup Execution
11Test Setup Printn
12
13*** Variables ***
14${QUIET} ${1}
15
16*** Test Cases ***
17
18Collect 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
35Suite Setup Execution
36 [Documentation] Do test suite setup tasks.
37
38 Set Log Level DEBUG
39 Log To Console ${OPENBMC_HOST}
40
41
42Redfish 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}