Browse Source

Fix Neutron VPNaaS Test

VPNService requires Router is connected to external gateway.
In this commit, we connected the test router to external network.

Change-Id: Ib87583219efd8efd959c9c7edb813c3a70e7d20c
Closes-Bug:1259282
changes/34/61234/3
Nachi Ueno 8 years ago
parent
commit
41ecf5b3d5
  1. 4
      tempest/api/network/test_vpnaas_extensions.py

4
tempest/api/network/test_vpnaas_extensions.py

@ -40,7 +40,9 @@ class VPNaaSJSON(base.BaseNetworkTest):
super(VPNaaSJSON, cls).setUpClass()
cls.network = cls.create_network()
cls.subnet = cls.create_subnet(cls.network)
cls.router = cls.create_router(data_utils.rand_name("router-"))
cls.router = cls.create_router(
data_utils.rand_name("router-"),
external_network_id=cls.network_cfg.public_network_id)
cls.create_router_interface(cls.router['id'], cls.subnet['id'])
cls.vpnservice = cls.create_vpnservice(cls.subnet['id'],
cls.router['id'])

Loading…
Cancel
Save