George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation BMC error polling test to check errors every 10 seconds. |
| 3 | |
| 4 | Resource ../lib/rest_client.robot |
| 5 | Resource ../lib/openbmc_ffdc.robot |
Sandhya Somashekar | 839a0c2 | 2019-01-31 05:05:43 -0600 | [diff] [blame] | 6 | Resource ../lib/resource.robot |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 7 | Resource ../lib/boot_utils.robot |
George Keishing | 56ce5e3 | 2019-08-31 13:52:53 -0500 | [diff] [blame] | 8 | Resource ../lib/boot_utils.robot |
| 9 | Resource ../lib/bmc_redfish_resource.robot |
Steven Sombar | 3839c8c | 2019-09-09 14:39:45 -0500 | [diff] [blame] | 10 | Resource ../lib/esel_utils.robot |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 11 | |
George Keishing | 87dc442 | 2023-10-20 12:56:30 +0530 | [diff] [blame] | 12 | Suite Setup Suite Setup Execution |
| 13 | Test Teardown Post Test Case Execution |
| 14 | |
| 15 | Force Tags BMC_Poll_Errors |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 16 | |
| 17 | *** Variables *** |
| 18 | |
| 19 | # Default duration and interval of test to run. |
| 20 | ${POLL_DURATION} 48 hours |
| 21 | ${POLL_INTERVAL} 10 second |
| 22 | |
Steven Sombar | 3839c8c | 2019-09-09 14:39:45 -0500 | [diff] [blame] | 23 | # Error log Severities to ignore when checking Error Logs. |
George Keishing | 178d9bf | 2020-07-09 08:29:29 -0500 | [diff] [blame] | 24 | @{ESEL_IGNORE_LIST} |
Steven Sombar | 3839c8c | 2019-09-09 14:39:45 -0500 | [diff] [blame] | 25 | ... xyz.openbmc_project.Logging.Entry.Level.Informational |
| 26 | |
| 27 | |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 28 | *** Test Cases *** |
| 29 | |
| 30 | Poll BMC For Errors |
| 31 | [Documentation] Poll BMC for errors. |
| 32 | ... exist. |
| 33 | [Tags] Poll_BMC_For_Errors |
| 34 | |
George Keishing | 56ce5e3 | 2019-08-31 13:52:53 -0500 | [diff] [blame] | 35 | Redfish.Login |
George Keishing | 555c28b | 2022-07-18 02:15:19 -0500 | [diff] [blame] | 36 | Repeat Keyword ${POLL_DURATION} Perform GET Request And Check For Errors |
| 37 | |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 38 | |
| 39 | *** Keywords *** |
| 40 | |
George Keishing | 555c28b | 2022-07-18 02:15:19 -0500 | [diff] [blame] | 41 | Perform GET Request And Check For Errors |
| 42 | [Documentation] Check if there is any error reported. |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 43 | |
George Keishing | 9ffa8de | 2022-03-14 02:37:52 -0500 | [diff] [blame] | 44 | Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID}/Sensors |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 45 | |
George Keishing | 555c28b | 2022-07-18 02:15:19 -0500 | [diff] [blame] | 46 | Event Log Should Not Exist |
| 47 | Sleep ${POLL_INTERVAL} |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 48 | |
| 49 | |
Steven Sombar | 0278b13 | 2018-01-09 14:41:32 -0600 | [diff] [blame] | 50 | Suite Setup Execution |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 51 | [Documentation] Do test setup initialization. |
| 52 | |
| 53 | Should Not Be Empty |
| 54 | ... ${OS_HOST} msg=You must provide hostname or IP of the OS host. |
| 55 | Should Not Be Empty |
| 56 | ... ${OS_USERNAME} msg=You must provide OS host user name. |
| 57 | Should Not Be Empty |
| 58 | ... ${OS_PASSWORD} msg=You must provide OS host user password. |
| 59 | |
Steven Sombar | 3839c8c | 2019-09-09 14:39:45 -0500 | [diff] [blame] | 60 | Redfish Power On stack_mode=skip |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 61 | |
George Keishing | 555c28b | 2022-07-18 02:15:19 -0500 | [diff] [blame] | 62 | Run Keyword And Ignore Error Redfish Purge Event Log |
| 63 | Run Keyword And Ignore Error Redfish Delete All BMC Dumps |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 64 | |
George Keishing | 56ce5e3 | 2019-08-31 13:52:53 -0500 | [diff] [blame] | 65 | |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 66 | Post Test Case Execution |
| 67 | [Documentation] Do the post test teardown. |
| 68 | ... 1. Capture FFDC on test failure. |
| 69 | |
| 70 | FFDC On Test Case Fail |
George Keishing | 56ce5e3 | 2019-08-31 13:52:53 -0500 | [diff] [blame] | 71 | Redfish.Logout |