blob: 0e0ee0855c1402f490430cb71b83cf3c0ef51785 [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
George Keishing853cca82016-09-02 04:55:54 -050030 @{states}= Create List BMC_READY HOST_POWERED_OFF
root442f0ef2016-08-04 20:23:05 +000031 ${bmc_state}= Get BMC State
George Keishing853cca82016-09-02 04:55:54 -050032 Should Contain ${states} ${bmc_state}
root442f0ef2016-08-04 20:23:05 +000033 Log to Console BMC State: ${bmc_state}