root | 442f0ef | 2016-08-04 20:23:05 +0000 | [diff] [blame^] | 1 | *** Settings *** |
| 2 | Documentation Contains all of the keywords that do various power offs. |
| 3 | |
| 4 | Resource ../resource.txt |
| 5 | Resource ../utils.robot |
| 6 | Resource ../connection_client.robot |
| 7 | |
| 8 | *** Keywords *** |
| 9 | BMC Power Off |
| 10 | [Documentation] Powers off the system and makes sure that all states are |
| 11 | ... powered off. |
| 12 | |
| 13 | Open Connection and Log In |
| 14 | Initiate Power Off |
| 15 | Check Power Off States |
| 16 | Close Connection |
| 17 | |
| 18 | Check Power Off States |
| 19 | [Documentation] Checks that the BMC state, power state, and boot progress |
| 20 | ... are correctly powered off. |
| 21 | |
| 22 | ${power_state}= Get Power State |
| 23 | Should Be Equal ${power_state} ${0} |
| 24 | Log to Console Power State: ${power_state} |
| 25 | |
| 26 | ${boot_progress}= Get Boot Progress |
| 27 | Should Be Equal ${boot_progress} Off |
| 28 | Log to Console Boot Progress: ${boot_progress} |
| 29 | |
| 30 | ${bmc_state}= Get BMC State |
| 31 | Should Contain ${bmc_state} HOST_POWERED_OFF |
| 32 | Log to Console BMC State: ${bmc_state} |