AirCooled and WaterCooled inventory check
Resolves openbmc/openbmc-test-automation#708
Change-Id: I8d9e02523c6a4df13903edb45cb5e9afc6f47434
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_inventory.robot b/tests/test_inventory.robot
index 041a3c0..1d64b5a 100644
--- a/tests/test_inventory.robot
+++ b/tests/test_inventory.robot
@@ -214,6 +214,27 @@
... msg=${fan_uri} is functional but "Present" is not set.
+Check Air Or Water Cooled
+ [Documentation] Check if this system is Air or water cooled.
+ [Tags] Check_Air_Or_Water_Cooled
+ # Example:
+ # "/xyz/openbmc_project/inventory/system/chassis": {
+ # "AirCooled": 1,
+ # "WaterCooled": 0
+ # },
+
+ ${air_cooled}= Read Attribute
+ ... /xyz/openbmc_project/inventory/system/chassis AirCooled
+ Log AirCooled:${air_cooled}
+
+ ${water_cooled}= Read Attribute
+ ... /xyz/openbmc_project/inventory/system/chassis WaterCooled
+ Log WaterCooled:${water_cooled}
+
+ Run Keyword If ${air_cooled}==${0} and ${water_cooled}==${0}
+ ... Fail Neither AirCooled or WaterCooled.
+
+
*** Keywords ***
Test Suite Setup