Migrate 'To Json' (daexim) 47/111147/5
authorSangwook Ha <sangwook.ha@verizon.com>
Mon, 1 Apr 2024 00:43:48 +0000 (17:43 -0700)
committerSangwook Ha <sangwook.ha@verizon.com>
Fri, 5 Apr 2024 17:49:37 +0000 (10:49 -0700)
There is one place that uses the deprecated 'RequestLibrary.To Json'
keyword. Replace it with 'Utils.Json Parse From String'.

JIRA: INTTEST-141
Change-Id: I2be3445629abbe6e105476ed8f2f99c416ed555e
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
csit/libraries/DaeximKeywords.robot

index cc1aa1c2029b7fd22aefd639a601440bc3269853..f1b272146444878f18ccd6c60054fb2b3de735d2 100644 (file)
@@ -7,6 +7,7 @@ Resource    ClusterManagement.robot
 Resource    ../variables/daexim/DaeximVariables.robot
 Resource    ../variables/Variables.robot
 Resource    SSHKeywords.robot
+Resource    Utils.robot
 
 
 *** Keywords ***
@@ -234,7 +235,7 @@ Fetch Status Information From Netconf Endpoint
     [Arguments]    ${endpoint}    ${host_index}
     ${resp}    ClusterManagement.Get From Member    ${NETCONF_NODE_URL}=${endpoint}    ${host_index}
     ${output1}    Builtin.Set Variable    ${resp}
-    ${output}    RequestsLibrary.To Json    ${output1}
+    ${output}    Utils.Json Parse From String    ${output1}
     Builtin.Log    ${output}
     ${status}    Collections.Get From Dictionary
     ...    ${output['network-topology:node'][0]}