Migrate request invocations (openflowplugin)
[integration/test.git] / csit / suites / openflowplugin / Inventory_Scalability_OF13 / 020__restconf_topology.robot
index 157e736e9e6c3e0b0d827a0f8de23798d5277e9d..90ced470cce727d372ae76773d3e238ef8604bb8 100644 (file)
@@ -44,8 +44,11 @@ Get Links Count
 *** Keywords ***
 Verify Element Count
     [Arguments]    ${URI}    ${xpath_location}    ${expected_count}
-    ${resp}    RequestsLibrary.Get Request    session    ${RFC8040_OPERATIONAL_TOPO_FLOW1_API}    headers=${ACCEPT_XML}
+    ${resp}    RequestsLibrary.GET On Session
+    ...    session
+    ...    url=${RFC8040_OPERATIONAL_TOPO_FLOW1_API}
+    ...    headers=${ACCEPT_XML}
+    ...    expected_status=200
     Log    ${resp.text}
-    Should Be Equal As Strings    ${resp.status_code}    200
     ${count}    Get Element Count    ${resp.text}    xpath=${xpath_location}
     Should Be Equal As Numbers    ${count}    ${expected_count}