blob: ef4d75259c2f502ed31f8de146aa76a3dc41abef [file] [log] [blame]
Srikanth Vavilapallic7400f12015-03-10 10:44:30 -07001
2
31) Install TestON framework from https://github.com/srikanthvavila/ONLabTest (Follow README instructions. Until forked repo is mrged back, use URL https://github.com/srikanthvavila/ONLabTest for cloning this repo. You can ignore Linc-OE and STS installation steps as we may not need them for now)
4
52) Peering router testcases are under ~/TestON/tests/PeeringRouterTest folder:
6a) CASE4 - Basic Route advertisement and connectivity in untagged network
7b) CASE5 - Basic Route advertisement and connectivity in tagged network
8c) CASE7 - Scale test with 25k routes
9d) CASE21 - Route convergence due to bgp peering session flapping in untagged network
10e) CASE22 - Basic Route advertisement and connectivity in untagged network with Route server
11f) CASE31 - Route convergence due to bgp peering session flapping in tagged network
12g) CASE32 - Basic Route advertisement and connectivity in tagged network with Route server
13
143) Before running the testcases, ensure quagga is installed on the machine:
15a) "sudo apt-get install quagga"
16b) "Create a folder for /usr/local/var/run/quagga"
17c) "chmod 777" to quagga folder
18
194) Test environment assumes the TestON, ONOS and Mininet all are running in the same VM. These testcases are not verified with the components running in separate VMs.
20
215) Before running testcases, edit the following files and make necessary changes:
22a) ~/TestON/tests/PeeringRouterTest/PeeringRouterTest.params --> Edit "cellname", "test home folder" and "controller IP" fields
23b) ~/TestON/tests/PeeringRouterTest/PeeringRouterTest.topo --> Edit "host", "user", "password", "home" fields under "ONOSbench", "ONOSCli" and "ONOS1". Similalry edit "user" field under "QuaggaCliHost<>" (You can use the same user name as your mininet VM)
24d) ~/TestON/drivers/common/cli/onosclidriver.py --> Change the line "self.handle.expect( "ONOS_CELL=" + str( cellname ) )" to "self.handle.expect( "ONOS_CELL" )"
25
266) Ensure the ONOS cell file has the following lines populated:
27OCI=127.0.0.1
28OC1=127.0.0.1
29OC2=127.0.0.1
30OCN=127.0.0.1
31ONOS_FEATURES=webconsole,onos-api,onos-core-trivial,onos-cli,onos-openflow,onos-gui,onos-rest,onos-app-config,onos-app-proxyarp
32ONOS_USER=<user>
33ONOS_GROUP=<user>
34ONOS_NIC=127.0.0.*
35
367) Ensure KARAF_ROOT is set to "/opt/onos/apache-karaf-3.0.2"
37
388) Ensure JAVA_HOME is unset before sourcing ~/onos/tools/dev/bash_profile
39
409) Ensure "onos-package" operation is done before executing the test cases
41
4210) Update the testcases to be run in ~/TestON/tests/PeeringRouterTest/PeeringRouterTest.params and execute "./cly.py run PeeringRouterTest" from ~/TestON/bin folder.