Merge "Make user role logging optional"
diff --git a/octavia_tempest_plugin/config.py b/octavia_tempest_plugin/config.py
index 502bdec..c40293c 100644
--- a/octavia_tempest_plugin/config.py
+++ b/octavia_tempest_plugin/config.py
@@ -61,6 +61,9 @@
cfg.StrOpt('octavia_svc_username', default='admin',
help='The service_auth username the Octavia services are using'
'to access other OpenStack services.'),
+ cfg.BoolOpt('log_user_roles',
+ default=True,
+ help='Log the user roles at the start of every test.'),
# load-balancer specific options
cfg.FloatOpt('check_interval',
default=5,
diff --git a/octavia_tempest_plugin/tests/test_base.py b/octavia_tempest_plugin/tests/test_base.py
index 5592571..f0477f4 100644
--- a/octavia_tempest_plugin/tests/test_base.py
+++ b/octavia_tempest_plugin/tests/test_base.py
@@ -136,6 +136,9 @@
cls.set_network_resources()
super(LoadBalancerBaseTest, cls).setup_credentials()
+ if not CONF.load_balancer.log_user_roles:
+ return
+
# Log the user roles for this test run
role_name_cache = {}
for cred in cls.credentials: