blob: 9b0522666e94c1fe79b217da346f26a5ec54d2c8 [file] [log] [blame]
Steven Sombar6b280142018-02-12 10:45:13 -06001*** Settings ***
2
3Documentation Fan checks.
4
5# Test Parameters:
6# OPENBMC_HOST The BMC host name or IP address.
7# OPENBMC_USERNAME The userID for the BMC login.
8# OPENBMC_PASSWORD The password for OPENBMC_USERNAME.
9#
10# Approximate run time: 15 seconds.
11
12Resource ../lib/state_manager.robot
13Resource ../lib/fan_utils.robot
14Resource ../lib/openbmc_ffdc.robot
15
16Test Teardown FFDC On Test Case Fail
17
18
19*** Test Cases ***
20
21Fan Base Check Number Of Fans
22 [Documentation] Verify minimum number of fans.
23 [Tags] Fan_Base_Check_Number_Of_Fans
24
Steven Sombar43d6ba32018-02-16 11:25:09 -060025 @{fan_names} Create List
26 # Populate the list with the names of fans in the system.
27 ${fan_names}= Get Fan Names ${fan_names}
28 ${number_of_fans}= Get Length ${fan_names}
29
Steven Sombar6b280142018-02-12 10:45:13 -060030 # Determine if system is water cooled.
31 ${water_coooled}= Is Water Cooled
32
Steven Sombar43d6ba32018-02-16 11:25:09 -060033 Verify Minimum Number Of Fans With Cooling Type ${number_of_fans}
34 ... ${water_coooled}
Steven Sombar6b280142018-02-12 10:45:13 -060035
36
37Fan Base Check Number Of Fan Monitors
38 [Documentation] Verify number of fan monitor daemons.
39 [Tags] Fan_Base_Check_Number_Of_Fan_Monitors
40
41 ${power_state}= Get Chassis Power State
42 Verify Fan Monitors With State ${power_state}