Verify MemorySummary state is Enabled

Resolves openbmc/openbmc-test-automation#1931

Signed-off-by: Steven Sombar <ssombar@us.ibm.com>
Change-Id: I4f95e83c667aef5b8630a8105dd0e6ca6e4526ab
diff --git a/redfish/systems/test_systems_inventory.robot b/redfish/systems/test_systems_inventory.robot
index b562692..aca0ec7 100755
--- a/redfish/systems/test_systems_inventory.robot
+++ b/redfish/systems/test_systems_inventory.robot
@@ -58,6 +58,19 @@
     Verify FRU Inventory Minimums  Memory  ${min_num_dimms}
 
 
+Get Memory Summary State And Verify Enabled
+    [Documentation]  Check that the state of the MemorySummary attribute
+    ...              under /redfish/v1/Systems/system is 'Enabled'.
+    [Tags]  Get_Memory_Summary_State_And_Verify_Enabled
+
+    ${status}=  Redfish.Get Attribute  ${SYSTEM_BASE_URI}  MemorySummary
+    ${memory_summary_state}=  Set Variable  ${status['Status']['State']}
+    Rprint Vars  memory_summary_state
+
+    Should Be Equal As Strings  Enabled  ${memory_summary_state}
+    ...  msg=MemorySummary State is not 'Enabled'.
+
+
 Get System Serial And Verify Populated
     [Documentation]  Check that the System SerialNumber is non-blank.
     [Tags]  Get_System_Serial_And_Verify_Populated