A.R Karthick | 8fa7c36 | 2016-10-19 19:51:35 -0700 | [diff] [blame^] | 1 | *** Settings *** |
| 2 | Documentation Run Cord verification test cases |
| 3 | Suite Setup Cord Setup |
| 4 | Suite Teardown Cord Teardown |
| 5 | Library OperatingSystem |
| 6 | |
| 7 | *** Variables *** |
| 8 | ${CORD_TESTER} %{HOME}/cord-tester/src/test/setup/cord-test.py |
| 9 | |
| 10 | *** Test Cases *** |
| 11 | Verify Onos DHCP Server Functionality |
| 12 | [Documentation] Make a DHCP request to ONOS to get an IP |
| 13 | ${rc}= Run Cord Tester dhcp:dhcp_exchange.test_dhcp_1request |
| 14 | Should Be Equal As Integers ${rc} 0 |
| 15 | |
| 16 | Verify ONOS DHCP Relay Server Functionality |
| 17 | [Documentation] Make a DHCP request to a relay server through ONOS to get an IP |
| 18 | ${rc}= Run Cord Tester dhcprelay:dhcprelay_exchange.test_dhcpRelay_1request |
| 19 | Should Be Equal As Integers ${rc} 0 |
| 20 | |
| 21 | Verify Onos AAA Functionality |
| 22 | [Documentation] Make a TLS client request to a RADIUS server through ONOS AAA application |
| 23 | ${rc}= Run Cord Tester tls:eap_auth_exchange.test_eap_tls |
| 24 | Should Be Equal As Integers ${rc} 0 |
| 25 | |
| 26 | Verify Onos IGMP Functionality |
| 27 | [Documentation] Make a IGMP join leave request through ONOS IGMP snooping application |
| 28 | ${rc}= Run Cord Tester igmp:igmp_exchange.test_igmp_join_verify_traffic |
| 29 | Should Be Equal As Integers ${rc} 0 |
| 30 | |
| 31 | Verify Cord SUBSCRIBER Functionality |
| 32 | [Documentation] Simulate Channel Surfing experience |
| 33 | ${rc}= Run Cord Tester cordSubscriber:subscriber_exchange.test_cord_subscriber_join_jump |
| 34 | Should Be Equal As Integers ${rc} 0 |
| 35 | |
| 36 | Verify Cord VROUTER Functionality |
| 37 | [Documentation] Start Quagga container, connect it to ONOS before validating ONOS routing works |
| 38 | ${rc}= Run Cord Tester vrouter:vrouter_exchange.test_vrouter_with_5_routes |
| 39 | Should Be Equal As Integers ${rc} 0 |
| 40 | |
| 41 | *** Keywords *** |
| 42 | Cord Setup |
| 43 | [Documentation] Setup the cord tester |
| 44 | ${rc}= Run and Return RC sudo ${CORD_TESTER} setup --olt --start-switch |
| 45 | Should Be Equal As Integers ${rc} 0 |
| 46 | ${test_container}= Run sudo docker ps -l | tail -1 | tr -s ' ' | awk '{print $NF}' |
| 47 | Set Suite Variable ${test_container} |
| 48 | |
| 49 | Cord Teardown |
| 50 | [Documentation] Teardown the cord tester setup |
| 51 | ${output}= Run sudo ${CORD_TESTER} cleanup --olt |
| 52 | |
| 53 | Run Cord Tester |
| 54 | [Arguments] ${test_case} |
| 55 | ${status} ${output}= Run and Return RC and Output sudo ${CORD_TESTER} run --container=${test_container} -t ${test_case} |
| 56 | Log ${output} |
| 57 | [Return] ${status} |
| 58 | |