| *** Settings *** |
| Documentation Contains all of the keywords that do various power ons. |
| |
| Resource ../resource.txt |
| Resource ../utils.robot |
| Resource ../connection_client.robot |
| |
| *** Keywords *** |
| BMC Power On |
| [Documentation] Powers on the system, checks that the OS is functional, and |
| ... makes sure that all states are powered on. |
| |
| &{bmc_connection_args}= Create Dictionary alias=bmc_connection |
| |
| Open Connection and Log In &{bmc_connection_args} |
| Initiate Power On |
| Run Keyword If '${OS_HOST}' != '${EMPTY}' Wait For OS |
| Switch Connection bmc_connection |
| Check Power On States |
| Close Connection |
| |
| Check Power On States |
| [Documentation] Checks that the BMC state, power state, and boot progress |
| ... are correctly powered on. |
| |
| Wait Until Keyword Succeeds ${OS_WAIT_TIMEOUT} 10sec Is Host Booted |
| |
| ${boot_progress}= Get Boot Progress |
| Should Be Equal ${boot_progress} FW Progress, Starting OS |
| Log to Console Boot Progress: ${boot_progress} |
| |
| ${power_state}= Get Power State |
| Should Be Equal ${power_state} ${1} |
| Log to Console Power State: ${power_state} |
| |
| Is Host Booted |
| ${bmc_state}= Get BMC State |
| Should Contain ${bmc_state} HOST_BOOTED |
| Log to Console BMC State: ${bmc_state} |
| |