blob: 28b31f797710fd38ffe4019a9867703730496de1 [file] [log] [blame]
*** Settings ***
Documentation Fan checks.
# Test Parameters:
# OPENBMC_HOST The BMC host name or IP address.
# OPENBMC_USERNAME The userID for the BMC login.
# OPENBMC_PASSWORD The password for OPENBMC_USERNAME.
#
# Approximate run time: 15 seconds.
Resource ../lib/state_manager.robot
Resource ../lib/fan_utils.robot
Resource ../lib/openbmc_ffdc.robot
Suite Setup Suite Setup Execution
Test Teardown FFDC On Test Case Fail
*** Test Cases ***
Fan Base Check Number Of Fans
[Documentation] Verify minimum number of fans.
[Tags] Fan_Base_Check_Number_Of_Fans
# Determine if system is water cooled.
${water_cooled}= Is Water Cooled
Rprint Vars water_cooled
Verify Minimum Number Of Fans With Cooling Type ${number_of_fans}
... ${water_cooled}
Fan Base Check Number Of Fan Monitors
[Documentation] Verify number of fan monitor daemons.
[Tags] Fan_Base_Check_Number_Of_Fan_Monitors
${power_state}= Get Chassis Power State
Verify Fan Monitors With State ${power_state}
*** Keywords ***
Suite Setup Execution
[Documentation] Get and set fan count and names.
${number_of_fans} ${fan_names}= Get Fan Count And Names
Set Suite Variable ${number_of_fans} children=true