Openpower lock management test suite changes

Changes:
    - Added keyword Redfish BMC Match States check BMC state reach to Enabled
after reboot

Tested:
      Ran successfully openpower/ext_interfaces/
      test_lock_management.robot

Change-Id: I50c5d0952d6fafb46f02975a82be869dd16c379f
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/openpower/ext_interfaces/test_lock_management.robot b/openpower/ext_interfaces/test_lock_management.robot
index 16f6e8b..9b7017d 100644
--- a/openpower/ext_interfaces/test_lock_management.robot
+++ b/openpower/ext_interfaces/test_lock_management.robot
@@ -666,6 +666,7 @@
     Run Keyword If  '${reboot_flag}' == 'True'
     ...  Run Keywords  Redfish BMC Reset Operation  AND
     ...  Set Global Variable  ${XAUTH_TOKEN}  ${before_reboot_xauth_token}  AND
+    ...  Wait Until Keyword Succeeds  3 min  10 sec  Redfish BMC Match States  match_state=Enabled  AND
     ...  Is BMC Standby  AND
     ...  Verify Lock On Resource  ${session_info}  ${trans_id_emptylist}
 
@@ -847,6 +848,7 @@
     ${before_reboot_xauth_token}=  Set Variable  ${XAUTH_TOKEN}
     Redfish BMC Reset Operation
     Set Global Variable  ${XAUTH_TOKEN}  ${before_reboot_xauth_token}
+    Wait Until Keyword Succeeds  3 min  10 sec  Redfish BMC Match States  match_state=Enabled
     Is BMC Standby
 
     ${trans_id}=  Redfish Post Acquire Lock  ${lock_type}
@@ -928,6 +930,7 @@
     Run Keyword If  '${reboot_flag}' == 'True'
     ...  Run Keywords  Redfish BMC Reset Operation  AND
     ...  Set Global Variable  ${XAUTH_TOKEN}  ${before_reboot_xauth_token}  AND
+    ...  Wait Until Keyword Succeeds  3 min  10 sec  Redfish BMC Match States  match_state=Enabled  AND
     ...  Is BMC Standby  AND
     ...  Post Reboot Acquire Lock  ${session_info}  ${lock_type}
     Redfish Delete Session  ${session_info}