blob: f9a6940aa6d441f9e3a9af2c8d6e6fe6d95f96ab [file] [log] [blame]
root442f0ef2016-08-04 20:23:05 +00001*** Settings ***
2Documentation Contains all of the keywords that do various power offs.
3
4Resource ../resource.txt
5Resource ../utils.robot
6Resource ../connection_client.robot
7
8*** Keywords ***
9BMC 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
18Check 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}