Migrate Get Requests invocations(libraries)
[integration/test.git] / csit / suites / l2switch / Inventory_Scalability_OF13 / 020__restconf_topology.robot
index e4d3258c73d345989ad0e8cc418478c0170f2cf2..7381f6fe76beb2d27ddbae0e1094fc1ee834a3ee 100644 (file)
@@ -12,7 +12,7 @@ Suite Teardown      Delete All Sessions
 
 
 *** Variables ***
-${REST_CONTEXT}     /restconf/operational/network-topology:network-topology/topology/flow:1
+${REST_CONTEXT}     /rests/data/network-topology:network-topology/topology=flow%3A1?content=nonconfig
 
 
 *** Test Cases ***
@@ -35,8 +35,11 @@ Get Links Count
 *** Keywords ***
 Verify Element Count
     [Arguments]    ${URI}    ${xpath_location}    ${expected_count}
-    ${resp}    RequestsLibrary.Get Request    session    ${REST_CONTEXT}    headers=${ACCEPT_XML}
+    ${resp}    RequestsLibrary.GET On Session
+    ...    session
+    ...    url=${REST_CONTEXT}
+    ...    headers=${ACCEPT_XML}
+    ...    expected_status=200
     Log    ${resp.content}
-    Should Be Equal As Strings    ${resp.status_code}    200
     ${count}    Get Element Count    ${resp.content}    xpath=${xpath_location}
     Should Be Equal As Numbers    ${count}    ${expected_count}