blob: 35f943290a30b934050470fa5f714043defa5947 [file] [log] [blame]
Marissa Garza21f3de62019-04-05 08:31:29 -05001*** Settings ***
2
3Documentation Test Suite for Suppported Fan Modules.
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
13Resource ../lib/state_manager.robot
14Resource ../lib/rest_client.robot
15Resource ../lib/fan_utils.robot
16Resource ../lib/common_utils.robot
17Resource ../lib/openbmc_ffdc.robot
18Resource ../syslib/utils_os.robot
19Library ../syslib/utils_keywords.py
20Library ../syslib/utils_os.py
21Library ../lib/gen_robot_valid.py
22
23Test Setup Open Connection And Log In
24Suite Setup REST Power On stack_mode=skip
25Test Teardown FFDC On Test Case Fail
26
27
28*** Variables ***
29
30@{VALID_MODE_VALUES} DEFAULT CUSTOM
31
32
33*** Test Cases ***
34
35Verify 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
60Verify 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