X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fopenflowplugin%2FInventory_Scalability_OF13%2F020__restconf_topology.robot;fp=csit%2Fsuites%2Fopenflowplugin%2FInventory_Scalability_OF13%2F020__restconf_topology.robot;h=157e736e9e6c3e0b0d827a0f8de23798d5277e9d;hb=14c1be480643f37f1eeef9d16149b631edd6aa2d;hp=e570e5bdab3deb543fbb9f1e2f60c1d4269cfda9;hpb=540125131c520642019271cd3ce8a8e694df4af2;p=integration%2Ftest.git diff --git a/csit/suites/openflowplugin/Inventory_Scalability_OF13/020__restconf_topology.robot b/csit/suites/openflowplugin/Inventory_Scalability_OF13/020__restconf_topology.robot index e570e5bdab..157e736e9e 100644 --- a/csit/suites/openflowplugin/Inventory_Scalability_OF13/020__restconf_topology.robot +++ b/csit/suites/openflowplugin/Inventory_Scalability_OF13/020__restconf_topology.robot @@ -1,15 +1,16 @@ *** Settings *** -Documentation Test suite for RESTCONF topology -Suite Setup Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML} -Suite Teardown Delete All Sessions -Library Collections -Library XML -Library RequestsLibrary -Library ../../../libraries/Common.py -Variables ../../../variables/Variables.py -Resource ../../../variables/openflowplugin/Variables.robot +Documentation Test suite for RESTCONF topology + +Library Collections +Library XML +Library RequestsLibrary +Library ../../../libraries/Common.py +Variables ../../../variables/Variables.py +Resource ../../../variables/openflowplugin/Variables.robot + +Suite Setup Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML} +Suite Teardown Delete All Sessions -*** Variables *** *** Test Cases *** Get Nodes Count @@ -17,7 +18,13 @@ 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 ${RFC8040_OPERATIONAL_TOPO_FLOW1_API} 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,7 +32,14 @@ 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 ${RFC8040_OPERATIONAL_TOPO_FLOW1_API} link ${numlinks} + Wait Until Keyword Succeeds + ... 60s + ... 2s + ... Verify Element Count + ... ${RFC8040_OPERATIONAL_TOPO_FLOW1_API} + ... link + ... ${numlinks} + *** Keywords *** Verify Element Count @@ -33,5 +47,5 @@ Verify Element Count ${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} + ${count} Get Element Count ${resp.text} xpath=${xpath_location} Should Be Equal As Numbers ${count} ${expected_count}