Fix tempest.conf generation
[service_available] is not being generated. This patch fixes it. Change-Id: I2813ff9c483b5bc97600d2b33decfcff9b3bda33 Closes-Bug: #1613542
This commit is contained in:
parent
82fea9652b
commit
e5b608ac1d
@ -13,6 +13,15 @@
|
||||
from oslo_config import cfg
|
||||
from tempest import config
|
||||
|
||||
service_available_group = cfg.OptGroup(name="service_available",
|
||||
title="Available OpenStack Services")
|
||||
|
||||
ServiceAvailableGroup = [
|
||||
cfg.BoolOpt("vmware_nsx",
|
||||
default=True,
|
||||
help="Whether or not vmware_nsx is expected to be available"),
|
||||
]
|
||||
|
||||
scenario_group = config.scenario_group
|
||||
ScenarioGroup = [
|
||||
cfg.FloatOpt('waitfor_disassoc',
|
||||
|
@ -41,6 +41,10 @@ class VMwareNsxTempestPlugin(plugins.TempestPlugin):
|
||||
return (test_fullpath, base_path)
|
||||
|
||||
def register_opts(self, conf):
|
||||
config.register_opt_group(
|
||||
conf,
|
||||
config_nsx.service_available_group,
|
||||
config_nsx.ServiceAvailableGroup)
|
||||
config.register_opt_group(
|
||||
conf,
|
||||
config_nsx.scenario_group, config_nsx.ScenarioGroup)
|
||||
@ -58,4 +62,7 @@ class VMwareNsxTempestPlugin(plugins.TempestPlugin):
|
||||
config_nsx.nsxv3_group, config_nsx.NSXv3Group)
|
||||
|
||||
def get_opt_lists(self):
|
||||
return [(config_nsx.scenario_group.name, config_nsx.scenario_group)]
|
||||
return [
|
||||
(config_nsx.scenario_group.name, config_nsx.scenario_group),
|
||||
('service_available', config_nsx.ServiceAvailableGroup)
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user