*** Settings ***
-Documentation Suite checks if StatMngr is able to collect flows correctly
-Suite Setup Create Http Session
-Suite Teardown Delete Http Session
-Library OperatingSystem
-Library Collections
-Library XML
-Library SSHLibrary
-Variables ../../../variables/Variables.py
-Library RequestsLibrary
-Library ../../../libraries/Common.py
-Library ../../../libraries/ScaleClient.py
-Resource ../../../variables/openflowplugin/Variables.robot
+Documentation Suite checks if StatMngr is able to collect flows correctly
+
+Library OperatingSystem
+Library Collections
+Library XML
+Library SSHLibrary
+Variables ../../../variables/Variables.py
+Library RequestsLibrary
+Library ../../../libraries/Common.py
+Library ../../../libraries/ScaleClient.py
+Resource ../../../variables/openflowplugin/Variables.robot
+
+Suite Setup Create Http Session
+Suite Teardown Delete Http Session
+
*** Variables ***
-${swnr} 16
-${flnr} 16000
-${swspread} linear
-${tabspread} linear
-@{cntls} ${ODL_SYSTEM_IP}
-${start_cmd} sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo linear,${swnr} --switch ovsk,protocols=OpenFlow13
+${swnr} 16
+${flnr} 16000
+${swspread} linear
+${tabspread} linear
+@{cntls} ${ODL_SYSTEM_IP}
+${start_cmd}
+... sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo linear,${swnr} --switch ovsk,protocols=OpenFlow13
+
*** Test Cases ***
Connect Mininet
Configure Flows
[Documentation] Configuration of 16k flows into config datastore
- ${flows} ${notes}= Generate New Flow Details flows=${flnr} switches=${swnr} swspread=${swspread} tabspread=${tabspread}
+ ${flows} ${notes}= Generate New Flow Details
+ ... flows=${flnr}
+ ... switches=${swnr}
+ ... swspread=${swspread}
+ ... tabspread=${tabspread}
Log ${notes}
${res}= Configure Flows flow_details=${flows} controllers=@{cntls} nrthreads=5
Log ${res}
Stop Mininet End
Stop Switches
+
*** Keywords ***
Connect Switches
[Documentation] Starts mininet with requested number of switches (${swnr})
Are Switches Connected Topo
[Documentation] Checks wheather switches are connected to controller
- ${resp}= Get Request session ${RFC8040_OPERATIONAL_TOPO_FLOW1_API} headers=${ACCEPT_XML}
+ ${resp}= GET On Session session url=${RFC8040_OPERATIONAL_TOPO_FLOW1_API} headers=${ACCEPT_XML}
Log ${resp.content}
${count}= Get Element Count ${resp.content} xpath=node
Should Be Equal As Numbers ${count} ${swnr}
Should Be True ${res}
Check No Switches Inventory
- ${resp}= Get Request session ${RFC8040_OPERATIONAL_NODES_API}
+ ${resp}= GET On Session session ${RFC8040_OPERATIONAL_NODES_API}
Log ${resp.content}
Should Be Equal As Strings '${resp.content}' '{"nodes":{}}'