Merge "Stop adding ServiceAvailable group option"
This commit is contained in:
commit
aa089b1bb4
@ -13,14 +13,10 @@
|
||||
|
||||
from oslo_config import cfg
|
||||
|
||||
service_available_group = cfg.OptGroup(name="service_available",
|
||||
title="Available OpenStack Services")
|
||||
|
||||
ServiceAvailableGroup = [
|
||||
cfg.BoolOpt("zun",
|
||||
default=True,
|
||||
help="Whether or not zun is expected to be available"),
|
||||
]
|
||||
service_option = cfg.BoolOpt("zun",
|
||||
default=True,
|
||||
help="Whether or not zun is expected to be "
|
||||
"available")
|
||||
|
||||
container_management_group = cfg.OptGroup(
|
||||
name="container_management", title="Container Management Service Options")
|
||||
|
@ -14,7 +14,6 @@
|
||||
|
||||
import os
|
||||
|
||||
from tempest import config
|
||||
from tempest.test_discover import plugins
|
||||
|
||||
from zun.tests.tempest import config as config_zun
|
||||
@ -30,11 +29,13 @@ class ZunTempestPlugin(plugins.TempestPlugin):
|
||||
return full_test_dir, base_path
|
||||
|
||||
def register_opts(self, conf):
|
||||
config.register_opt_group(conf, config_zun.service_available_group,
|
||||
config_zun.ServiceAvailableGroup)
|
||||
config.register_opt_group(conf, config_zun.container_management_group,
|
||||
config_zun.ContainerManagementGroup)
|
||||
conf.register_opt(config_zun.service_option,
|
||||
group='service_available')
|
||||
conf.register_group(config_zun.container_management_group)
|
||||
conf.register_opts(config_zun.ContainerManagementGroup,
|
||||
group='container_management')
|
||||
|
||||
def get_opt_lists(self):
|
||||
return [(config_zun.container_management_group.name,
|
||||
config_zun.ContainerManagementGroup)]
|
||||
config_zun.ContainerManagementGroup),
|
||||
('service_available', [config_zun.service_option])]
|
||||
|
Loading…
Reference in New Issue
Block a user