Prashanth Katti | 3b92926 | 2017-04-07 06:16:46 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation This test suite verifies pgood state. |
| 4 | |
| 5 | Resource ../lib/rest_client.robot |
| 6 | Resource ../lib/utils.robot |
| 7 | Resource ../lib/state_manager.robot |
George Keishing | 9651a36 | 2017-10-28 01:37:13 -0500 | [diff] [blame] | 8 | Resource ../lib/ipmi_client.robot |
Prashanth Katti | 3b92926 | 2017-04-07 06:16:46 -0500 | [diff] [blame] | 9 | |
| 10 | Variables ../data/variables.py |
| 11 | |
| 12 | *** Variables *** |
| 13 | |
| 14 | ${POWER_URI} ${CONTROL_URI}/power0/ |
| 15 | |
| 16 | *** Test Cases *** |
| 17 | |
| 18 | Verify 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 | |
| 28 | Verify 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 Katti | fa48d43 | 2017-04-26 07:33:20 -0500 | [diff] [blame] | 38 | Verify 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 | |
| 48 | Verify 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 |