blob: b3e402fb99dac46efc8a5628f6abd74436c3d274 [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
17 Wait For OS
18 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
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}