X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Ftools%2FRobot_Tool%2Fsuites%2Fbase%2Fswitch_manager.txt;fp=test%2Ftools%2FRobot_Tool%2Fsuites%2Fbase%2Fswitch_manager.txt;h=77c6930351285fb9954a6ef7ffa188def9b9da4b;hb=067f71f16cd5e4b56af61ed9306145993b1696a1;hp=0000000000000000000000000000000000000000;hpb=68fc956197a9307f470d257f58d2235e96d3c12b;p=integration%2Ftest.git diff --git a/test/tools/Robot_Tool/suites/base/switch_manager.txt b/test/tools/Robot_Tool/suites/base/switch_manager.txt new file mode 100644 index 0000000000..77c6930351 --- /dev/null +++ b/test/tools/Robot_Tool/suites/base/switch_manager.txt @@ -0,0 +1,26 @@ +*** Settings *** +Documentation Test suite for the switch manager bundle. +Suite Setup Create Session ${ODL_CONTROLLER_SESSION} ${PREFIX} auth=${AUTH} +Suite Teardown Delete All Sessions +Library Collections +Library RequestsLibrary +Library ../../libraries/Common.py +Library ../../libraries/SwitchManager.py +Variables ../../variables/Variables.py +Library ../../libraries/Topology.py + +*** Variables *** +${REST_CONTEXT} /controller/nb/v2/switchmanager + +*** Test Cases *** +List all nodes + [Documentation] List all nodes and their properties in the network. + [Tags] list_info + ${URL} Combine Strings ${REST_CONTEXT} / ${CONTAINER} /nodes + Log ${topo_tree_level} + ${topo_nodes} Get Nodes From Topology ${TOPO_TREE_LEVEL} + ${resp} Get ${ODL_CONTROLLER_SESSION} ${URL} + Should Be Equal As Strings ${resp.status_code} 200 Response status code error + ${jsondata}= To JSON ${resp.content} + ${nodes} Extract All Nodes ${jsondata} + Collection Should Contain ${nodes} ${topo_nodes}