blob: f72cccf97c5f7a50657a30e1555b6e6cf2f992ba [file] [log] [blame]
Prashanth Katti3b929262017-04-07 06:16:46 -05001*** Settings ***
2
3Documentation This test suite verifies pgood state.
4
5Resource ../lib/rest_client.robot
6Resource ../lib/utils.robot
7Resource ../lib/state_manager.robot
8
9Variables ../data/variables.py
10
11*** Variables ***
12
13${POWER_URI} ${CONTROL_URI}/power0/
14
15*** Test Cases ***
16
17Verify PGood When Power On Using REST
18 [Documentation] Verify pgood state on good power supply.
19 [Tags] Verify_PGood_When_Power_On_Using_REST
20
21 # Initiate Host poweron using rest commands.
22 Initiate Host Boot 1
23 ${data}= Read Attribute ${POWER_URI} pgood
24
25 Should Be Equal As Integers ${data} 1
26
27Verify PGood When Power Off Using REST
28 [Documentation] Verify pgood state on bad power supply.
29 [Tags] Verify_PGood_When_Power_Off_Using_REST
30
31 # Initiate Host poweroff using rest commands.
32 Initiate Host PowerOff 1
33 ${data}= Read Attribute ${POWER_URI} pgood
34
35 Should Be Equal As Integers ${data} 0
36