blob: 33631b2b48c4d86ab50032b3e7fbf012f19f2070 [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/boot_utils.robot
9Resource ../lib/bmc_redfish_resource.robot
George Keishing3e840a52017-07-21 08:31:44 -050010
Steven Sombar0278b132018-01-09 14:41:32 -060011Suite Setup Suite Setup Execution
George Keishing3e840a52017-07-21 08:31:44 -050012Test 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
22Poll BMC For Errors
23 [Documentation] Poll BMC for errors.
24 ... exist.
25 [Tags] Poll_BMC_For_Errors
26
George Keishing56ce5e32019-08-31 13:52:53 -050027 Redfish.Login
George Keishing3e840a52017-07-21 08:31:44 -050028 Repeat Keyword ${POLL_DURATION}
29 ... Run Keywords Enumerate Sensors And Check For Errors
30 ... AND Sleep ${POLL_INTERVAL}
31
32*** Keywords ***
33
34Enumerate Sensors And Check For Errors
35 [Documentation] Enumerate and check if there is any error reported.
36
George Keishing56ce5e32019-08-31 13:52:53 -050037 Redfish.Get /redfish/v1/Chassis/chassis/Sensors
George Keishing3e840a52017-07-21 08:31:44 -050038
39 Error Logs Should Not Exist
40
41
Steven Sombar0278b132018-01-09 14:41:32 -060042Suite Setup Execution
George Keishing3e840a52017-07-21 08:31:44 -050043 [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 Keishing56ce5e32019-08-31 13:52:53 -050052 Redfish.Login
53 Redfish Power On
George Keishing3e840a52017-07-21 08:31:44 -050054
55 Delete Error Logs
56 Error Logs Should Not Exist
57
George Keishing56ce5e32019-08-31 13:52:53 -050058
George Keishing3e840a52017-07-21 08:31:44 -050059Post 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 Keishing56ce5e32019-08-31 13:52:53 -050064 Redfish.Logout