X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=blobdiff_plain;f=csit%2Fsuites%2Fopenflowplugin%2FMD_SAL_NSF_OF10%2F020_restconf_topology.robot;h=143b7c9ccb02b30989d06c1e71e6e08f787890fb;hp=9d73911b3d67832142c5c01fef67d4a3108d4b1d;hb=14c1be480643f37f1eeef9d16149b631edd6aa2d;hpb=540125131c520642019271cd3ce8a8e694df4af2 diff --git a/csit/suites/openflowplugin/MD_SAL_NSF_OF10/020_restconf_topology.robot b/csit/suites/openflowplugin/MD_SAL_NSF_OF10/020_restconf_topology.robot index 9d73911b3d..143b7c9ccb 100644 --- a/csit/suites/openflowplugin/MD_SAL_NSF_OF10/020_restconf_topology.robot +++ b/csit/suites/openflowplugin/MD_SAL_NSF_OF10/020_restconf_topology.robot @@ -1,21 +1,30 @@ *** Settings *** -Documentation Test suite for RESTCONF Topology -Suite Setup Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS} -Suite Teardown Delete All Sessions -Library Collections -Library RequestsLibrary -Library ../../../libraries/Common.py -Variables ../../../variables/Variables.py -Resource ../../../variables/openflowplugin/Variables.robot -Resource ../../../libraries/Utils.robot +Documentation Test suite for RESTCONF Topology + +Library Collections +Library RequestsLibrary +Library ../../../libraries/Common.py +Variables ../../../variables/Variables.py +Resource ../../../variables/openflowplugin/Variables.robot +Resource ../../../libraries/Utils.robot + +Suite Setup Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS} +Suite Teardown Delete All Sessions + *** Variables *** -@{node_list} openflow:1 openflow:2 openflow:3 +@{node_list} openflow:1 openflow:2 openflow:3 + *** Test Cases *** Get RESTCONF Topology [Documentation] Get RESTCONF Topology and validate the result. - Wait Until Keyword Succeeds 10s 2s Check For Elements At URI ${RFC8040_OPERATIONAL_TOPO_API} ${node_list} + Wait Until Keyword Succeeds + ... 10s + ... 2s + ... Check For Elements At URI + ... ${RFC8040_OPERATIONAL_TOPO_API} + ... ${node_list} ${resp} RequestsLibrary.Get Request session ${RFC8040_OPERATIONAL_TOPO_API} Log ${resp.text} @@ -51,10 +60,10 @@ Link Down # shot in the dark. maybe the "link s1 s2 down" really didn't take the link(s) down? # hopefully this output below will show that. Write sh ovs-vsctl find Interface name="s1-eth1" - ${output}= Read Until mininet> + ${output} Read Until mininet> Log ${output} Write sh ovs-vsctl find Interface name="s1-eth2" - ${output}= Read Until mininet> + ${output} Read Until mininet> Log ${output} Link Up @@ -70,7 +79,12 @@ Remove Port Write sh ovs-vsctl del-port s2 s2-eth2 Read Until mininet> @{list} Create List openflow:2:2 - Wait Until Keyword Succeeds 10s 2s Check For Elements Not At URI ${RFC8040_OPERATIONAL_TOPO_API} ${list} + Wait Until Keyword Succeeds + ... 10s + ... 2s + ... Check For Elements Not At URI + ... ${RFC8040_OPERATIONAL_TOPO_API} + ... ${list} Add Port [Documentation] Add port s2-eth2, new id 5 @@ -80,6 +94,7 @@ Add Port @{list} Create List openflow:2:5 Wait Until Keyword Succeeds 10s 2s Check For Elements At URI ${RFC8040_OPERATIONAL_TOPO_API} ${list} + *** Keywords *** Verify Links [Arguments] ${expected_links}