Stop adding ServiceAvailable group option

Service available group already exists.Therefore we don't need to
register this group here again.

Change-Id: Ie4597e7faa87c768d19b1192a9a81e20c6f22637
Closes-Bug: #1621036
This commit is contained in:
Nishant Kumar 2016-10-10 13:08:36 +05:30
parent 990cf7475a
commit ea97470674
2 changed files with 7 additions and 13 deletions

View File

@ -13,14 +13,10 @@
from oslo_config import cfg from oslo_config import cfg
from tempest import config from tempest import config
service_available_group = cfg.OptGroup(name="service_available", service_option = cfg.BoolOpt("vmware_nsx",
title="Available OpenStack Services") default=True,
help="Whether or not vmware_nsx is expected to be"
ServiceAvailableGroup = [ " available")
cfg.BoolOpt("vmware_nsx",
default=True,
help="Whether or not vmware_nsx is expected to be available"),
]
scenario_group = config.scenario_group scenario_group = config.scenario_group
ScenarioGroup = [ ScenarioGroup = [

View File

@ -41,10 +41,8 @@ class VMwareNsxTempestPlugin(plugins.TempestPlugin):
return (test_fullpath, base_path) return (test_fullpath, base_path)
def register_opts(self, conf): def register_opts(self, conf):
config.register_opt_group( conf.register_opt(config_nsx.service_option,
conf, group='service_available')
config_nsx.service_available_group,
config_nsx.ServiceAvailableGroup)
config.register_opt_group( config.register_opt_group(
conf, conf,
config_nsx.scenario_group, config_nsx.ScenarioGroup) config_nsx.scenario_group, config_nsx.ScenarioGroup)
@ -64,5 +62,5 @@ class VMwareNsxTempestPlugin(plugins.TempestPlugin):
def get_opt_lists(self): def get_opt_lists(self):
return [ return [
(config_nsx.scenario_group.name, config_nsx.scenario_group), (config_nsx.scenario_group.name, config_nsx.scenario_group),
('service_available', config_nsx.ServiceAvailableGroup) ('service_available', [config_nsx.service_option])
] ]