Add placement service in 'enforce_scope' config
Adding placement service in 'enforce_scope' config
so that we can switch the placement scope and new defaults
and test them.
Change-Id: Ie9a4c22dee892eae84f35af2b6b5ff2098225495
diff --git a/releasenotes/notes/enforce_scope_placement-47a12c741e330f60.yaml b/releasenotes/notes/enforce_scope_placement-47a12c741e330f60.yaml
new file mode 100644
index 0000000..e5e602e
--- /dev/null
+++ b/releasenotes/notes/enforce_scope_placement-47a12c741e330f60.yaml
@@ -0,0 +1,4 @@
+---
+prelude: >
+ Adding placement service for config options ``enforce_scope`` so that
+ we can switch the scope and new defaults enforcement for placement service.
diff --git a/tempest/config.py b/tempest/config.py
index a60e5a8..d91fca4 100644
--- a/tempest/config.py
+++ b/tempest/config.py
@@ -1280,6 +1280,13 @@
'enabled when keystone.conf: [oslo_policy]. '
'enforce_new_defaults and keystone.conf: [oslo_policy]. '
'enforce_scope options are enabled in keystone conf.'),
+ cfg.BoolOpt('placement',
+ default=False,
+ help='Does the placement service API policies enforce scope '
+ 'and new defaults? This configuration value should be '
+ 'enabled when placement.conf: [oslo_policy]. '
+ 'enforce_new_defaults and nova.conf: [oslo_policy]. '
+ 'enforce_scope options are enabled in placement conf.'),
]
debug_group = cfg.OptGroup(name="debug",