The CORD Automated Tester Suite is an extensible end-to-end system test suite targeting CORD PODs.
$ git clone https://github.com/opencord/cord-tester.git $ cd cord-tester $ vagrant up $ vagrant ssh cordtest $ cd /cord-tester/src/test/setup/ $ sudo ./cord-test.py -h usage: cord-test.py [-h] {run,list,build,cleanup} ... Cord Tester positional arguments: {run,list,build,cleanup} run Run cord tester list List test cases build Build cord test container images cleanup Cleanup test containers optional arguments: -h, --help show this help message and exit $ sudo ./cord-test.py run -h usage: cord-test.py run [-h] [-t TEST_TYPE] [-o ONOS] [-r] [-q] [-a APP] [-p] [-e TEST_CONTROLLER] [-k] [-s] [-u {test,quagga,radius,all}] optional arguments: -h, --help show this help message and exit -t TEST_TYPE, --test-type TEST_TYPE Specify test type or test case to run -o ONOS, --onos ONOS ONOS container image -q, --quagga Provision quagga container for vrouter -a APP, --app APP Cord ONOS app filename -p, --olt Use OLT config -e TEST_CONTROLLER, --test-controller TEST_CONTROLLER External test controller ip for Onos and/or radius server. Eg: 10.0.0.2/10.0.0.3 to specify ONOS and Radius ip to connect -r SERVER, --server SERVER ip:port address to connect for cord test server for container requests -k, --keep Keep test container after tests -s, --start-switch Start OVS when running under OLT config -u {test,quagga,radius,all}, --update {test,quagga,radius,all} Update cord tester container images. Eg: --update=quagga to rebuild quagga image. --update=radius to rebuild radius server image. --update=test to rebuild cord test image.(Default) --update=all to rebuild all cord tester images. -n NUM_CONTAINERS, --num-containers NUM_CONTAINERS Specify number of test containers to spawn for tests $ sudo ./cord-test.py list -h usage: cord-test.py list [-h] [-t TEST] optional arguments: -h, --help show this help message and exit -t TEST, --test TEST Specify test type to list test cases. Eg: -t tls to list tls test cases. -t tls-dhcp-vrouter to list tls,dhcp and vrouter test cases. -t all to list all test cases. sudo ./cord-test.py build -h usage: cord-test.py build [-h] {quagga,radius,test,all} positional arguments: {quagga,radius,test,all} optional arguments: -h, --help show this help message and exit
$ git clone https://github.cyanoptics.com/cord-lab/cord-tester.git $ cd cord-tester/src/test/setup/ $ sudo ./prerequisites.sh
$ sudo ./eval.sh
$ sudo ./cord-test.py run -t dhcp
$ sudo ./cord-test.py run -t dhcp:dhcp_exchange.test_dhcp_1request
$ sudo ./cord-test.py run -t all
$ sudo ./cord-test.py list
$ sudo ./cord-test.py list -t dhcp
$ sudo ./cord-test.py cleanup
$ sudo ./cord-test.py build all