Deprecate [rbac] configuration group.
The [rbac] configuration group has been deprecated
and will be removed in the next release. It has been
renamed to the [patrole] group which contains
the exact same options.
This commit makes necessary deprecation changes,
along with renaming changes to documentation, unit
tests and framework.
Change-Id: I71198506b97b98ac18a969b7e6b13b664579c081
diff --git a/patrole_tempest_plugin/plugin.py b/patrole_tempest_plugin/plugin.py
index 28ce12c..4bba037 100644
--- a/patrole_tempest_plugin/plugin.py
+++ b/patrole_tempest_plugin/plugin.py
@@ -30,10 +30,17 @@
return full_test_dir, base_path
def register_opts(self, conf):
+ # TODO(fmontei): Remove ``rbac_group`` in a future release as it is
+ # currently deprecated.
config.register_opt_group(
conf,
project_config.rbac_group,
- project_config.RbacGroup)
+ project_config.PatroleGroup)
+ config.register_opt_group(
+ conf,
+ project_config.patrole_group,
+ project_config.PatroleGroup)
def get_opt_lists(self):
- return [(project_config.rbac_group.name, project_config.RbacGroup)]
+ return [(project_config.patrole_group.name,
+ project_config.PatroleGroup)]