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/data/Witherspoon.py b/data/Witherspoon.py
index 321c8ca..cc3960d 100755
--- a/data/Witherspoon.py
+++ b/data/Witherspoon.py
@@ -447,6 +447,8 @@
0xb3 : '/org/openbmc/sensors/host/powercap',
0x02 : '/org/openbmc/sensors/host/OperatingSystemStatus',
0xb6 : '<inventory_root>/system/chassis/motherboard/pcielink',
+ 0xD8 : '/org/openbmc/sensors/host/PowerSupplyRedundancy',
+ 0xb4 : '/org/openbmc/sensors/host/PowerSupplyDerating',
},
'GPIO_PRESENT' : {}
}
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