blob: d38ffe8ebe9cdf5f49e300e15ecbe9f7117358b2 [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
36 :FOR ${capability} IN @{supported_capabilities}
37 \ Should Contain ${cmd_output} ${capability} ignore_case=True
38 ... msg=Supported DCMI capabilities not present.
Tony Lee3fdd31e2020-02-15 11:21:40 +080039
40
41Test Get Self Test Results via IPMI Raw Command
42 [Documentation] Get self test results via IPMI raw command and verify the output.
43 [Tags] Test_Get_Self_Test_Results_via_IPMI
44
45 ${resp}= Run IPMI Standard Command raw ${IPMI_RAW_CMD['Self_Test_Results']['Get'][0]}
46
47 # 55h = No error. All Self Tests Passed.
48 # 56h = Self Test function not implemented in this controller.
49 Should Contain Any ${resp} 55 00 56 00
50
51
52Test Get Device GUID Via IPMI Raw Command
53 [Documentation] Get device GUID via IPMI raw command and verify it using Redfish.
54 [Tags] Test_Get_Device_GUID_via_IPMI_and_Verify_via_Redfish
55 [Teardown] Run Keywords Redfish.Logout AND FFDC On Test Case Fail
56 # Get GUIDS via IPMI.
57 # This should match the /redfish/v1/Managers/bmc's UUID data.
58 ${guids}= Run IPMI Standard Command raw ${IPMI_RAW_CMD['Device GUID']['Get'][0]}
59 # Reverse the order and remove space delims.
60 ${guids}= Split String ${guids}
61 Reverse List ${guids}
62 ${guids}= Evaluate "".join(${guids})
63
64 Redfish.Login
65 ${uuid}= Redfish.Get Attribute /redfish/v1/Managers/bmc UUID
66 ${uuid}= Remove String ${uuid} -
67
68 Rprint Vars guids uuid
69 Valid Value uuid ['${guids}']