Added keywords for dump and BMC state

Changes:
   - Added keyword
     "Redfish Get All System Dumps"
     "Redfish Verify BMC State"

Tested:
   - Ran successfully
     Redfish Get All System Dumps
     Redfish Verify BMC State

Change-Id: Iaf0b1fac7adf17300a0a2bec4a80943a3a7d00f7
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 35a2d8a..7be72b3 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -908,6 +908,18 @@
     [Return]  ${status["State"]}
 
 
+Redfish Verify BMC State
+    [Documentation]  Verify BMC state is enabled.
+    [Arguments]  ${match_state}=Enabled
+
+    # Description of argument(s):
+    # match_state    Expected match state (e.g. Enabled, Starting, Error)
+
+    ${Status}=  Redfish.Get Attribute  /redfish/v1/Managers/bmc  Status
+
+    Should Be Equal As Strings  ${match_state}  ${Status['State']}
+
+
 Redfish Get Host State
     [Documentation]  Return host power and health state.