blob: 4e965e67bcd205e3f76b01ae86db91495e2f7d29 [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
Prashanth Kattifa48d432017-04-26 07:33:20 -050037Verify PGood When Power On Using IPMI
38 [Documentation] Verify pgood state when power on using IPMI.
39 [Tags] Verify_PGood_When_Power_On_Using_IPMI
40
41 # Initiate Host poweron using IPMI commands.
42 Initiate Host Boot Via External IPMI
43 ${data}= Read Attribute ${POWER_URI} pgood
44
45 Should Be Equal As Integers ${data} 1
46
47Verify PGood When Power Off Using IPMI
48 [Documentation] Verify pgood state when power off using IPMI.
49 [Tags] Verify_PGood_When_Power_Off_Using_IPMI
50
51 # Initiate Host poweroff using IPMI commands.
52 Initiate Host PowerOff Via External IPMI
53 ${data}= Read Attribute ${POWER_URI} pgood
54
55 Should Be Equal As Integers ${data} 0