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 |
| 8 | |
| 9 | Variables ../data/variables.py |
| 10 | |
| 11 | *** Variables *** |
| 12 | |
| 13 | ${POWER_URI} ${CONTROL_URI}/power0/ |
| 14 | |
| 15 | *** Test Cases *** |
| 16 | |
| 17 | Verify 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 | |
| 27 | Verify 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 | |