Add floating network config option

for integration tests.

Change-Id: I14c93a5ffb5e336258105869dcb5fbbe4d6c9e6f
This commit is contained in:
Pavlo Shchelokovskyy 2015-03-23 11:22:35 +00:00
parent dc5dbd04e4
commit 2e352a382a
3 changed files with 7 additions and 1 deletions

View File

@ -65,6 +65,9 @@ IntegrationTestGroup = [
cfg.StrOpt('fixed_network_name',
default='private',
help="Visible fixed network name "),
cfg.StrOpt('floating_network_name',
default='public',
help="Visible floating network name "),
cfg.StrOpt('boot_config_env',
default=('heat_integrationtests/scenario/templates'
'/boot_config_none_env.yaml'),

View File

@ -52,6 +52,9 @@
# Visible fixed network name (string value)
#fixed_network_name = private
# Visible floating network name (string value)
#floating_network_name = public
# Path to environment file which defines the resource type
# Heat::InstallConfigAgent. Needs to be appropriate for the image_ref. (string
# value)

View File

@ -24,7 +24,7 @@ class NeutronLoadBalancerTest(scenario_base.ScenarioTestsBase):
def setUp(self):
super(NeutronLoadBalancerTest, self).setUp()
self.public_net = self._get_network('public')
self.public_net = self._get_network(self.conf.floating_network_name)
self.template_name = 'test_neutron_loadbalancer.yaml'
def collect_responses(self, ip, expected_resp):