1*** Settings ***
2
3Documentation    Module to test dcmi get capabilites functionality.
4Resource         ../../lib/ipmi_client.robot
5
6*** Test Cases ***
7
8Verify Get DCMI Capabilities
9    [Documentation]  Verify get DCMI capabilities command output.
10    [Tags]  Verify_Get_DCMI_Capabilities
11    ${cmd_output}=  Run IPMI Standard Command  dcmi discover
12
13    @{supported_capabilities}=  Create List
14    # Supported DCMI capabilities:
15    ...  Mandatory platform capabilties
16    ...  Optional platform capabilties
17    ...  Power management available
18    ...  Managebility access capabilties
19    ...  In-band KCS channel available
20    # Mandatory platform attributes:
21    ...  200 SEL entries
22    ...  SEL automatic rollover is enabled
23    # Optional Platform Attributes:
24    ...  Slave address of device: 0h (8bits)(Satellite/External controller)
25    ...  Channel number is 0h (Primary BMC)
26    ...  Device revision is 0
27    # Manageability Access Attributes:
28    ...  Primary LAN channel number: 1 is available
29    ...  Secondary LAN channel is not available for OOB
30    ...  No serial channel is available
31
32    FOR  ${capability}  IN  @{supported_capabilities}
33      Run Keyword And Continue On Failure  Should Contain  ${cmd_output}  ${capability}  ignore_case=True
34      ...  msg=Supported DCMI capabilities not present.
35    END
36