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 | |
Steven Sombar | 0278b13 | 2018-01-09 14:41:32 -0600 | [diff] [blame] | 12 | Suite Setup Suite Setup Execution |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 13 | Test Teardown Post Test Case Execution |
| 14 | |
| 15 | *** Variables *** |
| 16 | |
| 17 | # Default duration and interval of test to run. |
| 18 | ${POLL_DURATION} 48 hours |
| 19 | ${POLL_INTERVAL} 10 second |
| 20 | |
Steven Sombar | 3839c8c | 2019-09-09 14:39:45 -0500 | [diff] [blame] | 21 | # Error log Severities to ignore when checking Error Logs. |
George Keishing | 178d9bf | 2020-07-09 08:29:29 -0500 | [diff] [blame] | 22 | @{ESEL_IGNORE_LIST} |
Steven Sombar | 3839c8c | 2019-09-09 14:39:45 -0500 | [diff] [blame] | 23 | ... xyz.openbmc_project.Logging.Entry.Level.Informational |
| 24 | |
| 25 | |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 26 | *** Test Cases *** |
| 27 | |
| 28 | Poll BMC For Errors |
| 29 | [Documentation] Poll BMC for errors. |
| 30 | ... exist. |
| 31 | [Tags] Poll_BMC_For_Errors |
| 32 | |
George Keishing | 56ce5e3 | 2019-08-31 13:52:53 -0500 | [diff] [blame] | 33 | Redfish.Login |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 34 | Repeat Keyword ${POLL_DURATION} |
| 35 | ... Run Keywords Enumerate Sensors And Check For Errors |
| 36 | ... AND Sleep ${POLL_INTERVAL} |
| 37 | |
| 38 | *** Keywords *** |
| 39 | |
| 40 | Enumerate Sensors And Check For Errors |
| 41 | [Documentation] Enumerate and check if there is any error reported. |
| 42 | |
George Keishing | 56ce5e3 | 2019-08-31 13:52:53 -0500 | [diff] [blame] | 43 | Redfish.Get /redfish/v1/Chassis/chassis/Sensors |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 44 | |
George Keishing | 178d9bf | 2020-07-09 08:29:29 -0500 | [diff] [blame] | 45 | Check For Error Logs ${ESEL_IGNORE_LIST} |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 46 | |
| 47 | |
Steven Sombar | 0278b13 | 2018-01-09 14:41:32 -0600 | [diff] [blame] | 48 | Suite Setup Execution |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 49 | [Documentation] Do test setup initialization. |
| 50 | |
| 51 | Should Not Be Empty |
| 52 | ... ${OS_HOST} msg=You must provide hostname or IP of the OS host. |
| 53 | Should Not Be Empty |
| 54 | ... ${OS_USERNAME} msg=You must provide OS host user name. |
| 55 | Should Not Be Empty |
| 56 | ... ${OS_PASSWORD} msg=You must provide OS host user password. |
| 57 | |
Steven Sombar | 3839c8c | 2019-09-09 14:39:45 -0500 | [diff] [blame] | 58 | Redfish Power On stack_mode=skip |
George Keishing | 56ce5e3 | 2019-08-31 13:52:53 -0500 | [diff] [blame] | 59 | Redfish.Login |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 60 | |
| 61 | Delete Error Logs |
| 62 | Error Logs Should Not Exist |
| 63 | |
George Keishing | 56ce5e3 | 2019-08-31 13:52:53 -0500 | [diff] [blame] | 64 | |
George Keishing | 3e840a5 | 2017-07-21 08:31:44 -0500 | [diff] [blame] | 65 | Post 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 Keishing | 56ce5e3 | 2019-08-31 13:52:53 -0500 | [diff] [blame] | 70 | Redfish.Logout |