Sridevi Ramesh | 6da9c99 | 2016-11-23 04:26:25 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This suite tests IPMI chassis status in Open BMC. |
| 3 | |
| 4 | Resource ../../lib/rest_client.robot |
| 5 | Resource ../../lib/ipmi_client.robot |
| 6 | Resource ../../lib/openbmc_ffdc.robot |
| 7 | Resource ../../lib/utils.robot |
| 8 | |
| 9 | Suite Setup Open Connection And Log In |
| 10 | Suite Teardown Close All Connections |
| 11 | Test Teardown FFDC On Test Case Fail |
| 12 | |
| 13 | *** Test Cases *** |
| 14 | |
| 15 | IPMI Chassis Status On |
| 16 | [Documentation] This test case verfies system power on status |
| 17 | ... using IPMI Get Chassis status command |
| 18 | [Tags] IPMI_Chassis_Status_On |
| 19 | |
| 20 | Initiate Power On |
| 21 | ${resp}= Run IPMI Standard Command chassis status |
| 22 | ${power_status}= Get Lines Containing String ${resp} System Power |
| 23 | Should Contain ${power_status} on |
| 24 | |
| 25 | IPMI Chassis Status Off |
| 26 | [Documentation] This test case verfies system power off status |
| 27 | ... using IPMI Get Chassis status command |
| 28 | [Tags] IPMI_Chassis_Status_Off |
| 29 | |
| 30 | Initiate Power Off |
| 31 | ${resp}= Run IPMI Standard Command chassis status |
| 32 | ${power_status}= Get Lines Containing String ${resp} System Power |
| 33 | Should Contain ${power_status} off |
| 34 | |
| 35 | |