Added changes in session URI as context

Changes:
   - New change is introduced to replace the
     Oem information to context.
   - Below files contains repective changes for
     context in session URI.
   - "lib/external_intf/management_console_utils.robot"
   - openpower/ext_interfaces/test_lock_management.robot

Tested: - Ran successfully
     openpower/ext_interfaces/test_lock_management.robot
Change-Id: Iddd17202c2cfd69e8dbb94937613573547daf8d4
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/lib/external_intf/management_console_utils.robot b/lib/external_intf/management_console_utils.robot
index c95c25a..5b1c0ac 100644
--- a/lib/external_intf/management_console_utils.robot
+++ b/lib/external_intf/management_console_utils.robot
@@ -51,10 +51,11 @@
     #              (e.g. 12345, "EXTERNAL-CLIENT").
 
     ${session_info}=  Create Dictionary
-    ${session_resp}=  Redfish Login  kwargs= "Oem":{"OpenBMC" : {"ClientID":"${client_id}"}}
+
+    ${session_resp}=  Redfish Login  kwargs="Context":"${client_id}"
 
     Set To Dictionary  ${session_info}  SessionIDs  ${session_resp['Id']}
-    Set To Dictionary  ${session_info}  ClientID  ${session_resp["Oem"]["OpenBMC"]["ClientID"]}
+    Set To Dictionary  ${session_info}  ClientID  ${session_resp["Context"]}
     Set To Dictionary  ${session_info}  SessionToken  ${XAUTH_TOKEN}
     Set To Dictionary  ${session_info}  SessionResp  ${session_resp}
 
@@ -107,10 +108,11 @@
     FOR  ${client}  ${session}  IN ZIP  ${client_id}  ${session_ids}
       ${session_resp}=  Redfish.Get Properties  /redfish/v1/SessionService/Sessions/${session["SessionIDs"]}
       Rprint Vars  session_resp
-      @{words} =  Split String  ${session_resp["ClientOriginIPAddress"]}  :
+
       ${ip_address}=  Get Running System IP
-      Set Test Variable  ${temp_ipaddr}  ${words}[-1]
-      Valid Value  client  ['${session_resp["Oem"]["OpenBMC"]["ClientID"]}']
+
+      Set Test Variable  ${temp_ipaddr}  ${session_resp["ClientOriginIPAddress"]}
+      Valid Value  client  ['${session_resp["Context"]}']
       Valid Value  session["SessionIDs"]  ['${session_resp["Id"]}']
       Valid Value  temp_ipaddr  ${ip_address}
     END