blob: 4eddcdd59bdf65cdf6112fa84e0bea800968cbce [file] [log] [blame]
Joy Onyerikwu5b2d33c2021-01-22 00:48:49 -06001*** Settings ***
2Documentation BMC collect VPD and hardware status.
3
4# Test Parameters:
5# OPENBMC_HOST The BMC host name or IP address.
6
Joy Onyerikwuc3dcec32021-01-22 10:37:57 -06007Resource ../lib/bmc_redfish_resource.robot
8Resource ../lib/openbmc_ffdc.robot
Joy Onyerikwu5b2d33c2021-01-22 00:48:49 -06009
10Suite Setup Suite Setup Execution
11Test Setup Printn
12
13*** Variables ***
14${QUIET} ${1}
15
16*** Test Cases ***
17
18Collect VPD And Hardware Status
19 [Documentation] Collect VPD and hardware status using Redfish.
George Keishing4203fad2022-01-31 12:22:33 -060020 [Tags] Collect_VPD_And_Hardware_Status
Joy Onyerikwu5b2d33c2021-01-22 00:48:49 -060021 [Setup] Redfish.Login
22 [Teardown] Redfish Test Teardown Execution
23
24 ${system_properties}= Redfish_Utils.Get Properties ${SYSTEM_BASE_URI}
25 ${system_memory_info}= Redfish_Utils.Enumerate Request ${SYSTEM_BASE_URI}/Memory
26 ${system_processors_info}= Redfish_Utils.Enumerate Request ${SYSTEM_BASE_URI}/Processors
Sridevi Ramesh82a573b2025-07-14 01:58:28 -050027 ${system_fans_info}= Redfish_Utils.Enumerate Request
28 ... ${REDFISH_CHASSIS_URI}/Chassis/ThermalSubsystem/Fans
George Keishing7bb09912022-02-24 09:41:20 -060029
Joy Onyerikwu5b2d33c2021-01-22 00:48:49 -060030 ${collected_values}= gen_robot_print.Sprint Vars
31 ... system_properties system_memory_info system_processors_info system_fans_info
32 Log To Console ${\n}${collected_values}${\n}
33
Sridevi Ramesh82a573b2025-07-14 01:58:28 -050034
Joy Onyerikwu5b2d33c2021-01-22 00:48:49 -060035Run VPD Tool
36 [Documentation] Run vpd-tool -i.
George Keishing4203fad2022-01-31 12:22:33 -060037 [Tags] Run_VPD_Tool
Joy Onyerikwu5b2d33c2021-01-22 00:48:49 -060038
39 BMC Execute Command vpd-tool -i print_out=${1}
40
41*** Keywords ***
42
43Suite Setup Execution
44 [Documentation] Do test case setup tasks.
45
46 Set Log Level DEBUG
47 Log To Console ${OPENBMC_HOST}
48
49
50Redfish Test Teardown Execution
51 [Documentation] Do the post test teardown for redfish.
52
53 Redfish.Logout
George Keishing7bb09912022-02-24 09:41:20 -060054 FFDC On Test Case Fail