Replace Bierman02 with RFC8040 for OpenFlow Plugin
[integration/test.git] / csit / suites / openflowplugin / Inventory_Scalability_OF10 / 020__restconf_topology.robot
index 512ebaac184f0f2bf77892d92bbdcc3e1916d0ba..e570e5bdab3deb543fbb9f1e2f60c1d4269cfda9 100644 (file)
@@ -7,9 +7,9 @@ Library           XML
 Library           RequestsLibrary
 Library           ../../../libraries/Common.py
 Variables         ../../../variables/Variables.py
+Resource          ../../../variables/openflowplugin/Variables.robot
 
 *** Variables ***
-${REST_CONTEXT}    /restconf/operational/network-topology:network-topology/topology/flow:1
 
 *** Test Cases ***
 Get Nodes Count
@@ -17,7 +17,7 @@ Get Nodes Count
     ${TOPO_TREE_DEPTH}    Convert To Integer    ${TOPO_TREE_DEPTH}
     ${TOPO_TREE_FANOUT}    Convert To Integer    ${TOPO_TREE_FANOUT}
     ${numnodes}    Num Of Nodes    ${TOPO_TREE_DEPTH}    ${TOPO_TREE_FANOUT}
-    Wait Until Keyword Succeeds    60s    2s    Verify Element Count    ${REST_CONTEXT}    node    ${numnodes}
+    Wait Until Keyword Succeeds    60s    2s    Verify Element Count    ${RFC8040_OPERATIONAL_TOPO_FLOW1_API}    node    ${numnodes}
 
 Get Links Count
     [Documentation]    Checks the number of links
@@ -25,12 +25,12 @@ Get Links Count
     ${TOPO_TREE_FANOUT}    Convert To Integer    ${TOPO_TREE_FANOUT}
     ${numnodes}    Num Of Nodes    ${TOPO_TREE_DEPTH}    ${TOPO_TREE_FANOUT}
     ${numlinks}    Evaluate    (${numnodes}-1)*2
-    Wait Until Keyword Succeeds    60s    2s    Verify Element Count    ${REST_CONTEXT}    link    ${numlinks}
+    Wait Until Keyword Succeeds    60s    2s    Verify Element Count    ${RFC8040_OPERATIONAL_TOPO_FLOW1_API}    link    ${numlinks}
 
 *** Keywords ***
 Verify Element Count
     [Arguments]    ${URI}    ${xpath_location}    ${expected_count}
-    ${resp}    RequestsLibrary.Get Request    session    ${REST_CONTEXT}    headers=${ACCEPT_XML}
+    ${resp}    RequestsLibrary.Get Request    session    ${RFC8040_OPERATIONAL_TOPO_FLOW1_API}    headers=${ACCEPT_XML}
     Log    ${resp.text}
     Should Be Equal As Strings    ${resp.status_code}    200
     ${count}=    Get Element Count    ${resp.text}    xpath=${xpath_location}