blob: 25d7a891a4adc6ca2af65c915ba01928dc05c803 [file] [log] [blame]
ganesanbec44d612023-05-01 18:31:35 +00001*** Settings ***
2
3Documentation Module to test dcmi get capabilites functionality.
4Resource ../../lib/ipmi_client.robot
5
ganesanb1965a492023-05-25 16:14:13 +00006*** Variables ***
7@{slave_address_list} Slave address of device: 0h (8bits)(Satellite/External controller)
8... Slave address of device: 20h (BMC)
9
ganesanbec44d612023-05-01 18:31:35 +000010*** 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:
ganesanbec44d612023-05-01 18:31:35 +000028 ... Channel number is 0h (Primary BMC)
29 ... Device revision is 0
30 # Manageability Access Attributes:
ganesanb1965a492023-05-25 16:14:13 +000031 ... Primary LAN channel number: ${CHANNEL_NUMBER} is available
ganesanbec44d612023-05-01 18:31:35 +000032 ... Secondary LAN channel is not available for OOB
33 ... No serial channel is available
34
35 FOR ${capability} IN @{supported_capabilities}
36 Run Keyword And Continue On Failure Should Contain ${cmd_output} ${capability} ignore_case=True
37 ... msg=Supported DCMI capabilities not present.
38 END
ganesanb1965a492023-05-25 16:14:13 +000039
40 FOR ${slave_address} IN @{slave_address_list}
41 ${slave_address_status}= Run Keyword And Return Status
42 ... Should Contain ${cmd_output} ${slave_address} ignore_case=True
43 Exit For Loop IF ${slave_address_status} == True
44 END
45
46 Run Keyword IF ${slave_address_status} == False Fail msg=Slave address is showing wrongly.