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