blob: c0c69d46537aa7b0acc109194fb88fd41e6b20cb [file] [log] [blame]
A.R Karthick8fa7c362016-10-19 19:51:35 -07001*** Settings ***
2Documentation Run Cord verification test cases
3Suite Setup Cord Setup
4Suite Teardown Cord Teardown
5Library OperatingSystem
6
7*** Variables ***
8${CORD_TESTER} %{HOME}/cord-tester/src/test/setup/cord-test.py
9
10*** Test Cases ***
11Verify 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
16Verify 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
21Verify 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
26Verify 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
31Verify 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
36Verify 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 ***
42Cord 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
49Cord Teardown
50 [Documentation] Teardown the cord tester setup
51 ${output}= Run sudo ${CORD_TESTER} cleanup --olt
52
53Run 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