X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Ftools%2Fodl-mdsal-clustering-tests%2Fclustering-performance-test%2Fof-perf.txt;fp=test%2Ftools%2Fodl-mdsal-clustering-tests%2Fclustering-performance-test%2Fof-perf.txt;h=64fee05e5b94ca5b9e0721ee09bd2489d5cb92f9;hb=f3229f261ffbee5b59fd94f391a57f67e9fc47ed;hp=0000000000000000000000000000000000000000;hpb=2d610058025499cd8cd445ca403aadc40960aeed;p=integration%2Ftest.git diff --git a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/of-perf.txt b/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/of-perf.txt new file mode 100644 index 0000000000..64fee05e5b --- /dev/null +++ b/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/of-perf.txt @@ -0,0 +1,73 @@ +*** Settings *** +Documentation Test suite with connection of multiple switches +Library OperatingSystem +Library Collections +Library XML +Library Process +Variables ../../../../test/csit/variables/Variables.py +Library ../../../../test/csit/libraries/RequestsLibrary.py +Library ../../../../test/csit/libraries/Common.py +Library SSHLibrary +Suite Setup Start Suite +Suite Teardown Stop Suite + + +*** Test Cases *** +Are Switches Connected + [Documentation] Checks wheather switches are connected to controller + [Setup] Start Http Session + [Teardown] Stop Http Session + ${resp}= Get tcsession /restconf/operational/network-topology:network-topology/topology/flow:1 headers=${ACCEPT_XML} + Log ${resp.content} + ${count}= Get Element Count ${resp.content} xpath=node + Should Be Equal As Numbers ${count} ${switches} +Configure And Deconfigure Flows + ${result}= Run Process ${PERFSCRIPT} --host ${CONTROLLER} --flows ${flows} --threads ${threads} --auth shell=yes + Log ${result.stdout} + Create File ${CURDIR}/out.log.txt content=${result.stdout} + Log ${result.stderr} + Should Be Equal As Integers ${result.rc} 0 + +*** Variables *** +${switches} 10 +${flows} 1000 +${threads} 5 +${start} sudo mn --controller=remote,ip=${CONTROLLER} --topo linear,${switches},1 --switch ovsk,protocols=OpenFlow13 +${PERFSCRIPT} ${CURDIR}/flow_add_delete_test.py + +*** Keywords *** +Start Suite + [Documentation] Basic setup/cleanup work that can be done safely before any system + ... is run. + Log Start the test on the base edition + ${mininet_conn_id}= Open Connection ${MININET} prompt=> timeout=600s + Set Suite Variable ${mininet_conn_id} + Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any + Write sudo ovs-vsctl set-manager ptcp:6644 + Read Until > + Write sudo mn -c + Read Until > + Read Until > + Read Until > + Write ${start} + Read Until mininet> + Sleep 6 + +Stop Suite + [Documentation] Cleanup/Shutdown work that should be done at the completion of all + ... tests + Log Stop the test on the base edition + Switch Connection ${mininet_conn_id} + Read + Write exit + Read Until > + Close Connection + +Start Http Session + [Documentation] Starts http session + Log http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML} + Create Session tcsession http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML} +Stop Http Session + [Documentation] Stops http session + Delete All Sessions +