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 | |
Steven Sombar | 47ac2f4 | 2019-04-17 21:13:43 -0500 | [diff] [blame] | 16 | Suite Setup Suite Setup Execution |
Steven Sombar | 6b28014 | 2018-02-12 10:45:13 -0600 | [diff] [blame] | 17 | Test Teardown FFDC On Test Case Fail |
| 18 | |
Steven Sombar | 6b28014 | 2018-02-12 10:45:13 -0600 | [diff] [blame] | 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 | |
| 25 | # Determine if system is water cooled. |
Steven Sombar | 47ac2f4 | 2019-04-17 21:13:43 -0500 | [diff] [blame] | 26 | ${water_cooled}= Is Water Cooled |
| 27 | Rprint Vars water_cooled |
Steven Sombar | 6b28014 | 2018-02-12 10:45:13 -0600 | [diff] [blame] | 28 | |
Steven Sombar | 43d6ba3 | 2018-02-16 11:25:09 -0600 | [diff] [blame] | 29 | Verify Minimum Number Of Fans With Cooling Type ${number_of_fans} |
Steven Sombar | 47ac2f4 | 2019-04-17 21:13:43 -0500 | [diff] [blame] | 30 | ... ${water_cooled} |
Steven Sombar | 6b28014 | 2018-02-12 10:45:13 -0600 | [diff] [blame] | 31 | |
| 32 | |
| 33 | Fan Base Check Number Of Fan Monitors |
| 34 | [Documentation] Verify number of fan monitor daemons. |
| 35 | [Tags] Fan_Base_Check_Number_Of_Fan_Monitors |
| 36 | |
| 37 | ${power_state}= Get Chassis Power State |
| 38 | Verify Fan Monitors With State ${power_state} |
Steven Sombar | 47ac2f4 | 2019-04-17 21:13:43 -0500 | [diff] [blame] | 39 | |
| 40 | *** Keywords *** |
| 41 | |
| 42 | Suite Setup Execution |
| 43 | ${number_of_fans} ${fan_names}= Get Fan Count And Names |
| 44 | Set Suite Variable ${number_of_fans} children=true |