2 Documentation Test suite to validate vpnservice functionality in an openstack integrated environment.
3 ... The assumption of this suite is that the environment is already configured with the proper
4 ... integration bridges and vxlan tunnels.
5 Suite Setup Basic Vpnservice Suite Setup
6 Suite Teardown Basic Vpnservice Suite Teardown
8 Library OperatingSystem
9 Library RequestsLibrary
10 Resource ../../../libraries/Utils.robot
11 Resource ../../../libraries/OpenStackOperations.robot
12 Resource ../../../libraries/DevstackUtils.robot
13 Variables ../../../variables/Variables.py
20 ${subnet_1_cidr} 10.1.1.0/24
21 ${subnet_2_cidr} 20.1.1.0/24
28 Verify Tunnel Creation
29 [Documentation] Checks that vxlan tunnels have been created properly.
31 Log This test case is currently a noop, but work can be added here to validate if needed. However, as the suite Documentation notes, it's already assumed that the environment has been configured properly. If we do add work in this test case, we need to remove the "exclude" tag for it to run. In fact, if this
32 ... test case is critical to run, and if it fails we would be dead in the water for the rest of the suite, we should move it to Suite Setup so that nothing else will run and waste time in a broken environment.
35 Create Neutron Networks
36 [Documentation] Create two networks
37 Create Network ${net_1} --provider:network_type local
38 Create Network ${net_2} --provider:network_type local
41 Create Neutron Subnets
42 [Documentation] Create two subnets for previously created networks
43 Create SubNet ${net_1} ${subnet_1} ${subnet_1_cidr}
44 Create SubNet ${net_2} ${subnet_2} ${subnet_2_cidr}
48 [Documentation] Create four ports under previously created subnets
49 Create Port ${net_1} ${port_1}
50 Create Port ${net_1} ${port_2}
51 Create Port ${net_2} ${port_3}
52 Create Port ${net_2} ${port_4}
54 Check OpenDaylight Neutron Ports
55 [Documentation] Checking OpenDaylight Neutron API for known ports
56 ${resp} RequestsLibrary.Get Request session ${NEUTRON_PORTS_API}
58 Should be Equal As Strings ${resp.status_code} 200
61 Basic Vpnservice Suite Setup
62 Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}
64 Basic Vpnservice Suite Teardown