blob: 59033a3b6d28936d4f39da4449179a1bf81fa1ca [file] [log] [blame]
Rahul Maheshwari71525ad2019-08-01 05:54:06 -05001*** Settings ***
2
3Documentation Module to test IPMI asset tag functionality.
4Resource ../lib/ipmi_client.robot
5Resource ../lib/openbmc_ffdc.robot
Tony Lee3fdd31e2020-02-15 11:21:40 +08006Variables ../data/ipmi_raw_cmd_table.py
Rahul Maheshwari71525ad2019-08-01 05:54:06 -05007
8Test Teardown FFDC On Test Case Fail
9
10*** Test Cases ***
11
12Verify Get DCMI Capabilities
13 [Documentation] Verify get DCMI capabilities command output.
14 [Tags] Verify_Get_DCMI_Capabilities
15 ${cmd_output}= Run IPMI Standard Command dcmi discover
16
17 @{supported_capabilities}= Create List
18 # Supported DCMI capabilities:
19 ... Mandatory platform capabilties
20 ... Optional platform capabilties
21 ... Power management available
22 ... Managebility access capabilties
23 ... In-band KCS channel available
24 # Mandatory platform attributes:
25 ... 200 SEL entries
26 ... SEL automatic rollover is enabled
27 # Optional Platform Attributes:
28 ... Slave address of device: 0h (8bits)(Satellite/External controller)
29 ... Channel number is 0h (Primary BMC)
30 ... Device revision is 0
31 # Manageability Access Attributes:
32 ... Primary LAN channel number: 1 is available
33 ... Secondary LAN channel is not available for OOB
34 ... No serial channel is available
35
Rahul Maheshwari3a1d9912020-02-25 03:13:14 -060036 FOR ${capability} IN @{supported_capabilities}
37 Should Contain ${cmd_output} ${capability} ignore_case=True
38 ... msg=Supported DCMI capabilities not present.
39 END
Tony Lee3fdd31e2020-02-15 11:21:40 +080040
41
42Test Get Self Test Results via IPMI Raw Command
43 [Documentation] Get self test results via IPMI raw command and verify the output.
44 [Tags] Test_Get_Self_Test_Results_via_IPMI
45
46 ${resp}= Run IPMI Standard Command raw ${IPMI_RAW_CMD['Self_Test_Results']['Get'][0]}
47
48 # 55h = No error. All Self Tests Passed.
49 # 56h = Self Test function not implemented in this controller.
50 Should Contain Any ${resp} 55 00 56 00
51
52
53Test Get Device GUID Via IPMI Raw Command
54 [Documentation] Get device GUID via IPMI raw command and verify it using Redfish.
55 [Tags] Test_Get_Device_GUID_via_IPMI_and_Verify_via_Redfish
56 [Teardown] Run Keywords Redfish.Logout AND FFDC On Test Case Fail
57 # Get GUIDS via IPMI.
58 # This should match the /redfish/v1/Managers/bmc's UUID data.
59 ${guids}= Run IPMI Standard Command raw ${IPMI_RAW_CMD['Device GUID']['Get'][0]}
60 # Reverse the order and remove space delims.
61 ${guids}= Split String ${guids}
62 Reverse List ${guids}
63 ${guids}= Evaluate "".join(${guids})
64
65 Redfish.Login
66 ${uuid}= Redfish.Get Attribute /redfish/v1/Managers/bmc UUID
67 ${uuid}= Remove String ${uuid} -
68
69 Rprint Vars guids uuid
70 Valid Value uuid ['${guids}']