Verify get DCMI capabilities.

Resolves openbmc/openbmc-test-automation#1192

Change-Id: I18f84badcd2cc80a6e444ab3811664e586d20a30
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/tests/ipmi/test_general_ipmi.robot b/tests/ipmi/test_general_ipmi.robot
index c065495..56e5ff4 100644
--- a/tests/ipmi/test_general_ipmi.robot
+++ b/tests/ipmi/test_general_ipmi.robot
@@ -205,6 +205,36 @@
     ...  msg=Ambient temperature above allowed threshold ${allowed_temp_diff}.
 
 
+Verify Get DCMI Capabilities
+    [Documentation]  Verify get DCMI capabilities command output.
+    [Tags]  Verify_Get_DCMI_Capabilities
+
+    ${cmd_output}=  Run IPMI Standard Command  dcmi discover
+
+    @{supported_capabilities}=  Create List
+    # Supported DCMI capabilities:
+    ...  Mandatory platform capabilties
+    ...  Optional platform capabilties
+    ...  Power management available
+    ...  Managebility access capabilties
+    ...  In-band KCS channel available
+    # Mandatory platform attributes:
+    ...  200 SEL entries
+    ...  SEL automatic rollover is enabled
+    # Optional Platform Attributes:
+    ...  Slave address of device: 0h (8bits)(Satellite/External controller)
+    ...  Channel number is 0h (Primary BMC)
+    ...  Device revision is 0
+    # Manageability Access Attributes:
+    ...  Primary LAN channel number: 1 is available
+    ...  Secondary LAN channel is not available for OOB
+    ...  No serial channel is available
+
+    :FOR  ${capability}  IN  @{supported_capabilities}
+    \  Should Contain  ${cmd_output}  ${capability}  ignore_case=True
+    ...  msg=Supported DCMI capabilities not present.
+
+
 *** Keywords ***
 
 Set Management Controller ID String