blob: eea2128301ffd92fd8709dcfaf79aca0169aff83 [file] [log] [blame]
George Keishing3e840a52017-07-21 08:31:44 -05001*** Settings ***
2Documentation BMC error polling test to check errors every 10 seconds.
3
4Resource ../lib/rest_client.robot
5Resource ../lib/openbmc_ffdc.robot
Sandhya Somashekar839a0c22019-01-31 05:05:43 -06006Resource ../lib/resource.robot
George Keishing3e840a52017-07-21 08:31:44 -05007Resource ../lib/boot_utils.robot
George Keishing56ce5e32019-08-31 13:52:53 -05008Resource ../lib/bmc_redfish_resource.robot
Steven Sombar3839c8c2019-09-09 14:39:45 -05009Resource ../lib/esel_utils.robot
George Keishing3e840a52017-07-21 08:31:44 -050010
George Keishing87dc4422023-10-20 12:56:30 +053011Suite Setup Suite Setup Execution
12Test Teardown Post Test Case Execution
13
Matt Fischer6fb70d92023-10-24 19:06:33 -060014Test Tags BMC_Poll_Errors
George Keishing3e840a52017-07-21 08:31:44 -050015
16*** Variables ***
17
18# Default duration and interval of test to run.
19${POLL_DURATION} 48 hours
20${POLL_INTERVAL} 10 second
21
Steven Sombar3839c8c2019-09-09 14:39:45 -050022# Error log Severities to ignore when checking Error Logs.
George Keishing178d9bf2020-07-09 08:29:29 -050023@{ESEL_IGNORE_LIST}
Steven Sombar3839c8c2019-09-09 14:39:45 -050024... xyz.openbmc_project.Logging.Entry.Level.Informational
25
26
George Keishing3e840a52017-07-21 08:31:44 -050027*** Test Cases ***
28
29Poll BMC For Errors
30 [Documentation] Poll BMC for errors.
31 ... exist.
32 [Tags] Poll_BMC_For_Errors
33
George Keishing56ce5e32019-08-31 13:52:53 -050034 Redfish.Login
George Keishing555c28b2022-07-18 02:15:19 -050035 Repeat Keyword ${POLL_DURATION} Perform GET Request And Check For Errors
36
George Keishing3e840a52017-07-21 08:31:44 -050037
38*** Keywords ***
39
George Keishing555c28b2022-07-18 02:15:19 -050040Perform GET Request And Check For Errors
41 [Documentation] Check if there is any error reported.
George Keishing3e840a52017-07-21 08:31:44 -050042
George Keishing9ffa8de2022-03-14 02:37:52 -050043 Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID}/Sensors
George Keishing3e840a52017-07-21 08:31:44 -050044
George Keishing555c28b2022-07-18 02:15:19 -050045 Event Log Should Not Exist
46 Sleep ${POLL_INTERVAL}
George Keishing3e840a52017-07-21 08:31:44 -050047
48
Steven Sombar0278b132018-01-09 14:41:32 -060049Suite Setup Execution
George Keishing3e840a52017-07-21 08:31:44 -050050 [Documentation] Do test setup initialization.
51
52 Should Not Be Empty
53 ... ${OS_HOST} msg=You must provide hostname or IP of the OS host.
54 Should Not Be Empty
55 ... ${OS_USERNAME} msg=You must provide OS host user name.
56 Should Not Be Empty
57 ... ${OS_PASSWORD} msg=You must provide OS host user password.
58
Steven Sombar3839c8c2019-09-09 14:39:45 -050059 Redfish Power On stack_mode=skip
George Keishing3e840a52017-07-21 08:31:44 -050060
George Keishing555c28b2022-07-18 02:15:19 -050061 Run Keyword And Ignore Error Redfish Purge Event Log
62 Run Keyword And Ignore Error Redfish Delete All BMC Dumps
George Keishing3e840a52017-07-21 08:31:44 -050063
George Keishing56ce5e32019-08-31 13:52:53 -050064
George Keishing3e840a52017-07-21 08:31:44 -050065Post Test Case Execution
66 [Documentation] Do the post test teardown.
67 ... 1. Capture FFDC on test failure.
68
69 FFDC On Test Case Fail
George Keishing56ce5e32019-08-31 13:52:53 -050070 Redfish.Logout