blob: d9899394f1bd2e57bf7370d41dd908588da03f93 [file] [log] [blame]
*** Settings ***
Documentation This test suite verifies pgood state.
Resource ../lib/rest_client.robot
Resource ../lib/utils.robot
Resource ../lib/state_manager.robot
Resource ../lib/ipmi_client.robot
Variables ../data/variables.py
*** Variables ***
${POWER_URI} ${CONTROL_URI}/power0/
*** Test Cases ***
Verify PGood When Power On Using REST
[Documentation] Verify pgood state on good power supply.
[Tags] Verify_PGood_When_Power_On_Using_REST
# Initiate Host poweron using rest commands.
Initiate Host Boot 1
${data}= Read Attribute ${POWER_URI} pgood
Should Be Equal As Integers ${data} 1
Verify PGood When Power Off Using REST
[Documentation] Verify pgood state on bad power supply.
[Tags] Verify_PGood_When_Power_Off_Using_REST
# Initiate Host poweroff using rest commands.
Initiate Host PowerOff 1
${data}= Read Attribute ${POWER_URI} pgood
Should Be Equal As Integers ${data} 0
Verify PGood When Power On Using IPMI
[Documentation] Verify pgood state when power on using IPMI.
[Tags] Verify_PGood_When_Power_On_Using_IPMI
# Initiate Host poweron using IPMI commands.
Initiate Host Boot Via External IPMI
${data}= Read Attribute ${POWER_URI} pgood
Should Be Equal As Integers ${data} 1
Verify PGood When Power Off Using IPMI
[Documentation] Verify pgood state when power off using IPMI.
[Tags] Verify_PGood_When_Power_Off_Using_IPMI
# Initiate Host poweroff using IPMI commands.
Initiate Host PowerOff Via External IPMI
${data}= Read Attribute ${POWER_URI} pgood
Should Be Equal As Integers ${data} 0