Update Redfish PowerRestore policy test suites

Changes:
    - Update to Redfish variables and kewyords needed.
    - Add Redfish state in state mapping.
    - Add new keyword to do ping , SSH and Redfish auth.

Change-Id: Ia143125f01a2fb1e5ea77c4080b52ec92576ef87
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 5a6efde..a73a56c 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -58,6 +58,21 @@
     Should Be Empty     ${stderr}
 
 
+Verify Ping SSH And Redfish Authentication
+    [Documentation]  Verify ping, SSH and redfish authentication.
+
+    ${l_ping}=   Run Keyword And Return Status  Ping Host  ${OPENBMC_HOST}
+    Run Keyword If  '${l_ping}' == '${False}'  Fail   msg=Ping Failed
+
+    ${l_rest}=   Run Keyword And Return Status   Redfish.Login
+    Run Keyword If  '${l_rest}' == '${False}'  Fail   msg=REST Authentication Failed
+
+    # Just to make sure the SSH is working.
+    Open Connection And Log In
+    ${system}   ${stderr}=    Execute Command   hostname   return_stderr=True
+    Should Be Empty     ${stderr}
+
+
 Check If BMC is Up
     [Documentation]  Wait for Host to be online. Checks every X seconds
     ...              interval for Y minutes and fails if timed out.