Merge "Fix tempest.conf generation"
This commit is contained in:
commit
490b2b6520
@ -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