root | 442f0ef | 2016-08-04 20:23:05 +0000 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Contains all of the keywords that do various power ons. |
| 3 | |
| 4 | Resource ../resource.txt |
| 5 | Resource ../utils.robot |
| 6 | Resource ../connection_client.robot |
| 7 | |
| 8 | *** Keywords *** |
| 9 | BMC Power On |
| 10 | [Documentation] Powers on the system, checks that the OS is functional, and |
| 11 | ... makes sure that all states are powered on. |
| 12 | |
| 13 | &{bmc_connection_args}= Create Dictionary alias=bmc_connection |
| 14 | |
| 15 | Open Connection and Log In &{bmc_connection_args} |
| 16 | Initiate Power On |
| 17 | Wait For OS |
| 18 | Switch Connection bmc_connection |
| 19 | Check Power On States |
| 20 | Close Connection |
| 21 | |
| 22 | Check Power On States |
| 23 | [Documentation] Checks that the BMC state, power state, and boot progress |
| 24 | ... are correctly powered on. |
| 25 | |
| 26 | ${bmc_state}= Get BMC State |
| 27 | Should Contain ${bmc_state} HOST_BOOTED |
| 28 | Log to Console BMC State: ${bmc_state} |
| 29 | |
| 30 | ${boot_progress}= Get Boot Progress |
| 31 | Should Be Equal ${boot_progress} FW Progress, Starting OS |
| 32 | Log to Console Boot Progress: ${boot_progress} |
| 33 | |
| 34 | ${power_state}= Get Power State |
| 35 | Should Be Equal ${power_state} ${1} |
| 36 | Log to Console Power State: ${power_state} |