Added test cases to verify power supply redundancy and derating value.

Resolves openbmc/openbmc-test-automation#527

Change-Id: I9a197632fa4d271b11f64f0c22b697869d5773ca
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/tests/test_sensors.robot b/tests/test_sensors.robot
index a62b018..9510895 100644
--- a/tests/test_sensors.robot
+++ b/tests/test_sensors.robot
@@ -118,6 +118,24 @@
     Read The Attribute  ${uri}     value
     Response Should Be Equal    Disabled
 
+Verify OCC Power Supply Redundancy
+    [Documentation]  Check if OCC's power supply is set to not redundant.
+    [Tags]  Verify_OCC_Power_Supply_Redundancy
+    ${uri}=  Get System Component  PowerSupplyRedundancy
+
+    Read The Attribute  ${uri}  value
+    Response Should Be Equal  Disabled
+
+Verify OCC Power Supply Derating Value
+    [Documentation]  Check if OCC's power supply derating value
+    ...  is set correctly to a constant value 10.
+    [Tags]  Verify_OCC_Power_Supply_Derating_Value
+
+    ${uri}=  Get System Component  PowerSupplyDerating
+
+    Read The Attribute  ${uri}  value
+    Response Should Be Equal  ${10}
+
 CPU Present
     [Tags]  CPU_Present