Marissa Garza | 21f3de6 | 2019-04-05 08:31:29 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
George Keishing | d368ae4 | 2019-04-23 22:43:11 -0500 | [diff] [blame] | 3 | Documentation Test Suite for Supported Fan Modules. |
Marissa Garza | 21f3de6 | 2019-04-05 08:31:29 -0500 | [diff] [blame] | 4 | |
| 5 | # Test Parameters: |
| 6 | # OPENBMC_HOST The BMC host name or IP address. |
| 7 | # OPENBMC_USERNAME The username to login to the BMC. |
| 8 | # OPENBMC_PASSWORD The password for OPENBMC_USERNAME. |
| 9 | # OS_HOST The OS host name or IP Address. |
| 10 | # OS_USERNAME The OS login userid (usually root). |
| 11 | # OS_PASSWORD The password for the OS login. |
| 12 | |
| 13 | Resource ../lib/state_manager.robot |
| 14 | Resource ../lib/rest_client.robot |
| 15 | Resource ../lib/fan_utils.robot |
| 16 | Resource ../lib/common_utils.robot |
| 17 | Resource ../lib/openbmc_ffdc.robot |
| 18 | Resource ../syslib/utils_os.robot |
| 19 | Library ../syslib/utils_keywords.py |
| 20 | Library ../syslib/utils_os.py |
| 21 | Library ../lib/gen_robot_valid.py |
| 22 | |
| 23 | Test Setup Open Connection And Log In |
| 24 | Suite Setup REST Power On stack_mode=skip |
| 25 | Test Teardown FFDC On Test Case Fail |
| 26 | |
| 27 | |
| 28 | *** Variables *** |
| 29 | |
| 30 | @{VALID_MODE_VALUES} DEFAULT CUSTOM |
| 31 | |
| 32 | |
| 33 | *** Test Cases *** |
| 34 | |
| 35 | Verify Thermal Current Mode |
| 36 | [Documentation] Check current mode value. |
| 37 | [Tags] Verify_Thermal_Current_Mode |
| 38 | |
| 39 | # Example: |
| 40 | # /xyz/openbmc_project/control/thermal/0 |
| 41 | # |
| 42 | # Response code:200, Content: { |
| 43 | # "data": { |
| 44 | # "Current": "DEFAULT", |
| 45 | # "Supported": [ |
| 46 | # "DEFAULT", |
| 47 | # "CUSTOM" |
| 48 | # }, |
| 49 | # }, |
| 50 | # "message": "200 OK", |
| 51 | # "status": "ok" |
| 52 | # } |
| 53 | |
| 54 | ${current}= Read Attribute ${CONTROL_URI}thermal/0 current |
| 55 | Rprint Vars current |
| 56 | |
| 57 | Rvalid Value current valid_values=${VALID_MODE_VALUES} |
| 58 | |
| 59 | |
| 60 | Verify Supported Modes Available |
| 61 | [Documentation] Check supported modes available. |
| 62 | [Tags] Verify_Supported_Modes_Available |
| 63 | |
| 64 | ${supported}= Read Attribute ${CONTROL_URI}thermal/0 supported |
| 65 | Rprint Vars supported |