Steven Sombar | 6b28014 | 2018-02-12 10:45:13 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation 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 | |
| 12 | Resource ../lib/state_manager.robot |
| 13 | Resource ../lib/fan_utils.robot |
| 14 | Resource ../lib/openbmc_ffdc.robot |
| 15 | |
| 16 | Test Teardown FFDC On Test Case Fail |
| 17 | |
| 18 | |
| 19 | *** Test Cases *** |
| 20 | |
| 21 | Fan Base Check Number Of Fans |
| 22 | [Documentation] Verify minimum number of fans. |
| 23 | [Tags] Fan_Base_Check_Number_Of_Fans |
| 24 | |
Steven Sombar | 43d6ba3 | 2018-02-16 11:25:09 -0600 | [diff] [blame] | 25 | @{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 Sombar | 6b28014 | 2018-02-12 10:45:13 -0600 | [diff] [blame] | 30 | # Determine if system is water cooled. |
| 31 | ${water_coooled}= Is Water Cooled |
| 32 | |
Steven Sombar | 43d6ba3 | 2018-02-16 11:25:09 -0600 | [diff] [blame] | 33 | Verify Minimum Number Of Fans With Cooling Type ${number_of_fans} |
| 34 | ... ${water_coooled} |
Steven Sombar | 6b28014 | 2018-02-12 10:45:13 -0600 | [diff] [blame] | 35 | |
| 36 | |
| 37 | Fan 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} |