blob: db35f675172c3181bf1fd58c7ec578269be5f7b7 [file] [log] [blame]
root442f0ef2016-08-04 20:23:05 +00001*** Settings ***
2Documentation Contains all of the keywords that do various power ons.
3
4Resource ../resource.txt
5Resource ../utils.robot
6Resource ../connection_client.robot
7
8*** Keywords ***
9BMC 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
George Keishing8a84f952016-08-25 04:54:53 -050017 Run Keyword If '${OS_HOST}' != '${EMPTY}' Wait For OS
root442f0ef2016-08-04 20:23:05 +000018 Switch Connection bmc_connection
19 Check Power On States
20 Close Connection
21
22Check Power On States
23 [Documentation] Checks that the BMC state, power state, and boot progress
24 ... are correctly powered on.
25
George Keishing8a84f952016-08-25 04:54:53 -050026 Wait Until Keyword Succeeds ${OS_WAIT_TIMEOUT} 10sec Is Host Booted
root442f0ef2016-08-04 20:23:05 +000027
28 ${boot_progress}= Get Boot Progress
29 Should Be Equal ${boot_progress} FW Progress, Starting OS
30 Log to Console Boot Progress: ${boot_progress}
31
32 ${power_state}= Get Power State
33 Should Be Equal ${power_state} ${1}
34 Log to Console Power State: ${power_state}
George Keishing8a84f952016-08-25 04:54:53 -050035
36Is Host Booted
37 ${bmc_state}= Get BMC State
38 Should Contain ${bmc_state} HOST_BOOTED
39 Log to Console BMC State: ${bmc_state}
40