Move plugin client registration to proxy

The plugin client registration is triggered to early, which leads
to the CONF object being initialised twice. Moving the plugin
client registration to live together with the tempest own client
registration.

Change-Id: I7c15e8c5ee9c7421ac410cfaa84b3ce21380f5e7
This commit is contained in:
Andrea Frittoli 2017-03-09 13:17:01 +00:00
parent e5f368c3f8
commit 8b23c79325
2 changed files with 6 additions and 1 deletions

View File

@ -1188,6 +1188,12 @@ class TempestConfigProxy(object):
# loaded, options registered, and _config is set.
_register_tempest_service_clients()
# Registering service clients and pushing their configuration to
# the service clients register. Doing this in the config module
# ensures that the configuration is available by the time we
# discover tests from plugins.
plugins.TempestTestPluginManager()._register_service_clients()
return getattr(self._config, attr)
def set_config_path(self, path):

View File

@ -124,7 +124,6 @@ class TempestTestPluginManager(object):
'tempest.test_plugins', invoke_on_load=True,
propagate_map_exceptions=True,
on_load_failure_callback=self.failure_hook)
self._register_service_clients()
@staticmethod
def failure_hook(_, ep, err):