summaryrefslogtreecommitdiffstats
path: root/test/functest/testcase_2.py
diff options
context:
space:
mode:
authorVenkata Guravareddy <bv.guravareddy@ericsson.com>2016-12-02 01:52:07 +0530
committerRomanos Skiadas <rski@intracom-telecom.com>2016-12-01 16:17:18 +0200
commit6f8dc4aaf93a7cc94a7732805248c763cd588478 (patch)
treed1ba3ce8f32f78fa0b51800a4f7aced65aa449ee /test/functest/testcase_2.py
parentecec8d640a8ac1f2c82a63326073bb6baddb9b6f (diff)
Modified testcase_2 according to the Limitations of Boron
Change-Id: I79fa899a5deb917f5d87298b7c1b2dd17ad7770d JIRA: SDNVPN-85 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
Diffstat (limited to 'test/functest/testcase_2.py')
-rw-r--r--test/functest/testcase_2.py28
1 files changed, 20 insertions, 8 deletions
diff --git a/test/functest/testcase_2.py b/test/functest/testcase_2.py
index e1b6863..89ba009 100644
--- a/test/functest/testcase_2.py
+++ b/test/functest/testcase_2.py
@@ -57,23 +57,33 @@ def main():
disk=COMMON_CONFIG.image_format,
container="bare",
public=True)
- network_1_id, _, _ = test_utils.create_network(
+ network_1_id = test_utils.create_net(
+ neutron_client,
+ TESTCASE_CONFIG.net_1_name)
+ test_utils.create_subnet(
neutron_client,
- TESTCASE_CONFIG.net_1_name,
TESTCASE_CONFIG.subnet_1a_name,
TESTCASE_CONFIG.subnet_1a_cidr,
- TESTCASE_CONFIG.router_1_name,
+ network_1_id)
+ test_utils.create_subnet(
+ neutron_client,
TESTCASE_CONFIG.subnet_1b_name,
- TESTCASE_CONFIG.subnet_1b_cidr)
+ TESTCASE_CONFIG.subnet_1b_cidr,
+ network_1_id)
- network_2_id, _, _ = test_utils.create_network(
+ network_2_id = test_utils.create_net(
+ neutron_client,
+ TESTCASE_CONFIG.net_2_name)
+ test_utils.create_subnet(
neutron_client,
- TESTCASE_CONFIG.net_2_name,
TESTCASE_CONFIG.subnet_2a_name,
TESTCASE_CONFIG.subnet_2a_cidr,
- TESTCASE_CONFIG.router_2_name,
+ network_2_id)
+ test_utils.create_subnet(
+ neutron_client,
TESTCASE_CONFIG.subnet_2b_name,
- TESTCASE_CONFIG.subnet_2b_cidr)
+ TESTCASE_CONFIG.subnet_2b_cidr,
+ network_2_id)
sg_id = os_utils.create_security_group_full(neutron_client,
TESTCASE_CONFIG.secgroup_name,
@@ -177,6 +187,7 @@ def main():
kwargs = {"import_targets": TESTCASE_CONFIG.targets2,
"export_targets": TESTCASE_CONFIG.targets2,
"route_targets": TESTCASE_CONFIG.targets2,
+ "route_distinguishers": TESTCASE_CONFIG.route_distinguishers1,
"name": vpn1_name}
bgpvpn1 = os_utils.create_bgpvpn(neutron_client, **kwargs)
bgpvpn1_id = bgpvpn1['bgpvpn']['id']
@@ -224,6 +235,7 @@ def main():
kwargs = {"import_targets": TESTCASE_CONFIG.targets1,
"export_targets": TESTCASE_CONFIG.targets1,
"route_targets": TESTCASE_CONFIG.targets1,
+ "route_distinguishers": TESTCASE_CONFIG.route_distinguishers2,
"name": vpn2_name}
bgpvpn2 = os_utils.create_bgpvpn(neutron_client, **kwargs)
bgpvpn2_id = bgpvpn2['bgpvpn']['id']