** Keywords ***
Start Suite
- Log Start the test on the base edition
+ Log Start mininet
Open Connection ${MININET} prompt=>
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
Write sudo ovs-vsctl set-manager ptcp:6644
Sleep 30
Read
Stop Suite
- Log Stop the test on the base edition
+ Log Stop mininet
Read
Write exit
Sleep 4
** Keywords ***
Start Suite
- Log Start the test on the base edition
+ Log Start mininet
Open Connection ${MININET} prompt=>
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
Write sudo ovs-vsctl set-manager ptcp:6644
Sleep 30
Read
Stop Suite
- Log Stop the test on the base edition
+ Log Stop mininet
Read
Write exit
Sleep 4
*** Settings ***
-Documentation Test suite for the Switch Manager
+Documentation Test suite for Switch Manager
Suite Setup Create Session ${ODL_CONTROLLER_SESSION} http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library Collections
** Keywords ***
Start Suite
- Log Start the test on the base edition
+ Log Start mininet
Open Connection ${MININET} prompt=>
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
Write sudo ovs-vsctl set-manager ptcp:6644
Sleep 30
Read
Stop Suite
- Log Stop the test on the base edition
+ Log Stop mininet
Read
Write exit
Sleep 4
** Keywords ***
Start Suite
- Log Start the test on the base edition
+ Log Start mininet
Open Connection ${MININET} prompt=>
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
Write sudo ovs-vsctl set-manager ptcp:6644
Sleep 30
Read
Stop Suite
- Log Stop the test on the base edition
+ Log Stop mininet
Read
Write exit
Sleep 4
** Keywords ***
Start Suite
- Log Start the test on the base edition
+ Log Start mininet
Open Connection ${MININET} prompt=>
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
Write sudo ovs-vsctl set-manager ptcp:6644
Sleep 30
Read
Stop Suite
- Log Stop the test on the base edition
+ Log Stop mininet
Read
Write exit
Sleep 4
** Keywords ***
Start Suite
- Log Start the test on the base edition
+ Log Start mininet
Open Connection ${MININET} prompt=>
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
Write sudo ovs-vsctl set-manager ptcp:6644
Sleep 30
Read
Stop Suite
- Log Stop the test on the base edition
+ Log Stop mininet
Read
Write exit
Sleep 4
** Keywords ***
Start Suite
- Log Start the test on the base edition
+ Log Start mininet
Open Connection ${MININET} prompt=>
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
Write sudo ovs-vsctl set-manager ptcp:6644
Sleep 20
Read
Stop Suite
- Log Stop the test on the base edition
+ Log Stop mininet
Read
Write exit
Sleep 4
** Keywords ***
Start Suite
- Log Start the test on the base edition
+ Log Start mininet
Open Connection ${MININET} prompt=>
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
Write sudo ovs-vsctl set-manager ptcp:6644
Sleep 20
Read
Stop Suite
- Log Stop the test on the base edition
+ Log Stop mininet
Read
Write exit
Sleep 4
** Keywords ***
Start Suite
- Log Start the test on the base edition
+ Log Start mininet
Open Connection ${MININET} prompt=>
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
Write sudo ovs-vsctl set-manager ptcp:6644
Sleep 20
Read
Stop Suite
- Log Stop the test on the base edition
+ Log Stop mininet
Read
Write exit
Sleep 4
*** Settings ***
-Documentation Test suite for the switch manager bundle.
+Documentation Test suite for Switch Manager
Suite Setup Create Session ${ODL_CONTROLLER_SESSION} http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
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
+Library ../../../libraries/Common.py
+Library ../../../libraries/SwitchManager.py
+Variables ../../../variables/Variables.py
+Library ../../../libraries/Topology.py
*** Variables ***
${REST_CONTEXT} /controller/nb/v2/switchmanager
[Tags] list_info
Log ${TOPO_TREE_LEVEL}
${topo_nodes} Get Nodes From Topology ${TOPO_TREE_LEVEL}
- ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
+ ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/nodes
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${jsondata}= To JSON ${resp.content}
${nodes} Extract All Nodes ${jsondata}
List Should Contain Sublist ${nodes} ${topo_nodes}
-Get a node
- [Documentation] Get a node
- Get node 00:00:00:00:00:00:00:02 OF
+Check node 1 connectors
+ [Documentation] List node connectors and verify all connectors are there
+ [Tags] list_info
+ ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:01
+ Should Be Equal As Strings ${resp.status_code} 200 Response status code error
+ Should Contain ${resp.content} s1-eth1
+ Should Contain ${resp.content} s1-eth2
+Check node 2 connectors
+ [Documentation] List node connectors and verify all connectors are there
+ [Tags] list_info
+ ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:02
+ Should Be Equal As Strings ${resp.status_code} 200 Response status code error
+ Should Contain ${resp.content} s2-eth1
+ Should Contain ${resp.content} s2-eth2
+ Should Contain ${resp.content} s2-eth3
+Check node 3 connectors
+ [Documentation] List node connectors and verify all connectors are there
+ [Tags] list_info
+ ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:03
+ Should Be Equal As Strings ${resp.status_code} 200 Response status code error
+ Should Contain ${resp.content} s3-eth1
+ Should Contain ${resp.content} s3-eth2
+ Should Contain ${resp.content} s3-eth3
Add property to node
[Documentation] Add a property to node
Add property to node OF 00:00:00:00:00:00:00:02 description Switch2
Node property should exist OF 00:00:00:00:00:00:00:02 description Switch2
-Remove property from node
- [Documentation] Remove a property from node
- Remove property from node OF 00:00:00:00:00:00:00:02 description
- Node property should not exist OF 00:00:00:00:00:00:00:02 description Switch2
+#Remove property from node
+# [Documentation] Remove a property from node
+# Remove property from node OF 00:00:00:00:00:00:00:02 description
+# Node property should not exist OF 00:00:00:00:00:00:00:02 description Switch2
Add property to nodeconnector
[Documentation] Add a property to nodeconnector
Add property to nodeconnector OF 00:00:00:00:00:00:00:02 OF 2 bandwidth 1000
*** Settings ***
-Documentation Test suite for the statistics manager module
+Documentation Test suite for Statistics Manager
Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library Collections
-Library ../../libraries/RequestsLibrary.py
-Library ../../libraries/Common.py
-Variables ../../variables/Variables.py
+Library ../../../libraries/RequestsLibrary.py
+Library ../../../libraries/Common.py
+Variables ../../../variables/Variables.py
*** Variables ***
${node1} "00:00:00:00:00:00:00:01"
Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library Collections
-Library ../../libraries/RequestsLibrary.py
-Library ../../libraries/Common.py
-Variables ../../variables/Variables.py
+Library ../../../libraries/RequestsLibrary.py
+Library ../../../libraries/Common.py
+Variables ../../../variables/Variables.py
*** Variables ***
${node1} "00:00:00:00:00:00:00:01"
*** Settings ***
-Documentation Test suite for the forwarding rule manager module.
+Documentation Test suite for Flow Programmer
Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library Collections
-Library ../../libraries/RequestsLibrary.py
-Library ../../libraries/Common.py
-Variables ../../variables/Variables.py
+Library ../../../libraries/RequestsLibrary.py
+Library ../../../libraries/Common.py
+Variables ../../../variables/Variables.py
*** Variables ***
${name} flow1
*** Settings ***
-Documentation Test suite for the OpenDaylight base edition
+Documentation Test suite for AD-SAL NSF
Suite Setup Start Suite
Suite Teardown Stop Suite
Library SSHLibrary
*** Keywords ***
Start Suite
- Log Start the test on the base edition
+ Log Start mininet
Open Connection ${MININET} prompt=>
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
Write sudo ovs-vsctl set-manager ptcp:6644
Write sudo mn -c
Sleep 2
Write ${start}
- Sleep 70
+ Sleep 10
Read
Stop Suite
- Log Stop the test on the base edition
+ Log Stop mininet
Read
Write exit
Sleep 4
*** Settings ***
-Documentation Test suite for the host tracker module.
+Documentation Test suite for Host Tracker
Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library Collections
-Library ../../libraries/RequestsLibrary.py
-Library ../../libraries/Common.py
-Variables ../../variables/Variables.py
+Library ../../../libraries/RequestsLibrary.py
+Library ../../../libraries/Common.py
+Variables ../../../variables/Variables.py
*** Variables ***
${name} 10.0.1.4
*** Settings ***
-Documentation Test suite for the forwarding manager module.
+Documentation Test suite for Static Route
Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library SSHLibrary
Library Collections
-Library ../../libraries/RequestsLibrary.py
-Library ../../libraries/Common.py
-Variables ../../variables/Variables.py
+Library ../../../libraries/RequestsLibrary.py
+Library ../../../libraries/Common.py
+Variables ../../../variables/Variables.py
*** Variables ***
${name} test_route1
${result} To JSON ${resp.content}
${content} Get From Dictionary ${result} ${key}
List Should Contain Value ${content} ${body}
- Sleep 5
+ Sleep 10
+# This works locally but NOT in OpenDaylight
+#Check flow in flow stats
+# [Documentation] Show flow stats and validate result
+# [Tags] get
+# ${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
+# Should Be Equal As Strings ${resp.status_code} 200
+# Log ${resp.content}
+# Should Contain X Times ${resp.content} 10.0.0.2 3
Remove a static route
[Documentation] Remove a static route, list to validate the result.
[Tags] remove
*** Settings ***
-Documentation Test suite for the arp handler module.
+Documentation Test suite for Subnet Gateway
Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library SSHLibrary
Library Collections
-Library ../../libraries/RequestsLibrary.py
-Library ../../libraries/Common.py
-Variables ../../variables/Variables.py
+Library ../../../libraries/RequestsLibrary.py
+Library ../../../libraries/Common.py
+Variables ../../../variables/Variables.py
*** Variables ***
${name} test
--- /dev/null
+*** Settings ***
+Documentation Test suite for AD-SAL Applications
+Suite Setup Start Suite
+Suite Teardown Stop Suite
+Library SSHLibrary
+
+*** Variables ***
+${start}= sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2
+
+*** Keywords ***
+Start Suite
+ Log Start mininet
+ Open Connection ${MININET} prompt=>
+ Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
+ Write sudo ovs-vsctl set-manager ptcp:6644
+ Write sudo mn -c
+ Sleep 2
+ Write ${start}
+ Sleep 10
+ Read
+Stop Suite
+ Log Stop mininet
+ Read
+ Write exit
+ Sleep 4
+ Read
+ Close Connection
*** Settings ***
-Documentation Test suite for OVSDB plugin
+Documentation Test suite for Bridge Domain
Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library SSHLibrary
Library Collections
-Library ../../libraries/RequestsLibrary.py
-Library ../../libraries/Common.py
-Library ../../libraries/Topology.py
-Variables ../../variables/Variables.py
+Library ../../../libraries/RequestsLibrary.py
+Library ../../../libraries/Common.py
+Library ../../../libraries/Topology.py
+Variables ../../../variables/Variables.py
*** Variables ***
${key} node
[Documentation] Ping h1 to h4, verify no packet loss
[Tags] ovsdb
Sleep 5
- Write h1 ping -w 40 h4
- Sleep 40
- Write h4 ping -w 40 h1
- Sleep 40
+ Write h1 ping -w 6 h4
+ Sleep 6
+ Write h4 ping -w 6 h1
+ Sleep 6
${result} Read
Should Contain ${result} 64 bytes
Delete s4 ports
--- /dev/null
+*** Settings ***
+Documentation Test suite for OVSDB
+Suite Setup Start Suite
+Suite Teardown Stop Suite
+Library SSHLibrary
+
+*** Variables ***
+${start}= sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2
+
+*** Keywords ***
+Start Suite
+ Log Start mininet
+ Open Connection ${MININET} prompt=>
+ Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
+ Write sudo ovs-vsctl set-manager ptcp:6644
+ Write sudo mn -c
+ Sleep 2
+ Write ${start}
+ Sleep 10
+ Read
+Stop Suite
+ Log Stop mininet
+ Read
+ Write exit
+ Sleep 4
+ Read
+ Close Connection