blob: d9899394f1bd2e57bf7370d41dd908588da03f93 [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
George Keishing9651a362017-10-28 01:37:13 -05008Resource ../lib/ipmi_client.robot
Prashanth Katti3b929262017-04-07 06:16:46 -05009
10Variables ../data/variables.py
11
12*** Variables ***
13
14${POWER_URI} ${CONTROL_URI}/power0/
15
16*** Test Cases ***
17
18Verify PGood When Power On Using REST
19 [Documentation] Verify pgood state on good power supply.
20 [Tags] Verify_PGood_When_Power_On_Using_REST
21
22 # Initiate Host poweron using rest commands.
23 Initiate Host Boot 1
24 ${data}= Read Attribute ${POWER_URI} pgood
25
26 Should Be Equal As Integers ${data} 1
27
28Verify PGood When Power Off Using REST
29 [Documentation] Verify pgood state on bad power supply.
30 [Tags] Verify_PGood_When_Power_Off_Using_REST
31
32 # Initiate Host poweroff using rest commands.
33 Initiate Host PowerOff 1
34 ${data}= Read Attribute ${POWER_URI} pgood
35
36 Should Be Equal As Integers ${data} 0
37
Prashanth Kattifa48d432017-04-26 07:33:20 -050038Verify PGood When Power On Using IPMI
39 [Documentation] Verify pgood state when power on using IPMI.
40 [Tags] Verify_PGood_When_Power_On_Using_IPMI
41
42 # Initiate Host poweron using IPMI commands.
43 Initiate Host Boot Via External IPMI
44 ${data}= Read Attribute ${POWER_URI} pgood
45
46 Should Be Equal As Integers ${data} 1
47
48Verify PGood When Power Off Using IPMI
49 [Documentation] Verify pgood state when power off using IPMI.
50 [Tags] Verify_PGood_When_Power_Off_Using_IPMI
51
52 # Initiate Host poweroff using IPMI commands.
53 Initiate Host PowerOff Via External IPMI
54 ${data}= Read Attribute ${POWER_URI} pgood
55
56 Should Be Equal As Integers ${data} 0