summaryrefslogtreecommitdiff
path: root/tempest/test_discover
diff options
context:
space:
mode:
authorGhanshyam Mann <gmann@ghanshyammann.com>2020-03-10 14:52:22 -0500
committerGhanshyam Mann <gmann@ghanshyammann.com>2020-04-16 17:22:39 +0000
commitaa7c14749240c553537ef6d3d063e6732a1cab01 (patch)
treeea2cf1ee2d072f0ecf117718a2bebc6b8b142c16 /tempest/test_discover
parent0d2b331cc4ec431e6dad944240a9b241b9b5b6d4 (diff)
downloadtempest-aa7c14749240c553537ef6d3d063e6732a1cab01.tar.gz
Add logs for plugins data
While loading data form plugin like tests, config options etc we do not have enough logs to debug if any plugins is missed. It is difficult to debug in such cases where we do not find config options registered by plugins, For example: https://review.opendev.org/#/c/706785 Adding more logs to know what all data we are loading from all plugins. Change-Id: I09d2349a0e32c2265e6beb3dad4619ad33782a51
Diffstat (limited to 'tempest/test_discover')
-rw-r--r--tempest/test_discover/plugins.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tempest/test_discover/plugins.py b/tempest/test_discover/plugins.py
index 7a037ebe0..b20b60e41 100644
--- a/tempest/test_discover/plugins.py
+++ b/tempest/test_discover/plugins.py
@@ -194,11 +194,14 @@ class TempestTestPluginManager(object):
def get_plugin_load_tests_tuple(self):
load_tests_dict = {}
for plug in self.ext_plugins:
+ LOG.info('Loading tests from Tempest plugin: %s', plug.name)
load_tests_dict[plug.name] = plug.obj.load_tests()
return load_tests_dict
def register_plugin_opts(self, conf):
for plug in self.ext_plugins:
+ LOG.info('Register additional config options from Tempest '
+ 'plugin: %s', plug.name)
try:
plug.obj.register_opts(conf)
except Exception:
@@ -209,6 +212,9 @@ class TempestTestPluginManager(object):
plugin_options = []
for plug in self.ext_plugins:
opt_list = plug.obj.get_opt_lists()
+ LOG.info('List additional config options registered by '
+ 'Tempest plugin: %s', plug.name)
+
if opt_list:
plugin_options.extend(opt_list)
return plugin_options