murano/murano
Ghanshyam Mann 1c87ebf9a8 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

CONF object needs to be initialized before policy enforcer(). That
need to remove cfg.CONF.unregister_opts from TestAuthUtils cleanup
as this is taken care by cfg.clear() with proper workflow otherwise
it end up with error
"oslo_config.cfg.ArgsAlreadyParsedError: arguments
already parsed: reset before unregistering options"

- https://b132754ee7062a9ab187-9add4719a9922a9385555a8552fc2366.ssl.cf5.rackcdn.com/768520/5/check/openstack-tox-py38/7964354/testr_results.html

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I1b6c6485bc651fd0b87244a68204036dd4aa37f4
2021-03-07 17:50:48 -06:00
..
api Murano api add monkey patch 2020-07-08 16:25:18 +08:00
cfapi Use consistent session options 2017-07-28 14:55:45 +02:00
cmd [goal] Deprecate the JSON formatted policy file 2021-03-07 17:50:48 -06:00
common [goal] Deprecate the JSON formatted policy file 2021-03-07 17:50:48 -06:00
db Remove six murano/db 2020-04-17 20:05:40 -07:00
dsl Fix 'method object has no attribute __yaql_function__' on py3 2020-10-30 10:34:41 +11:00
engine Use common rpc pattern for all services 2021-01-19 12:24:08 -08:00
hacking Remove six murano/hacking 2020-04-17 19:41:02 -07:00
httpd Always reset cfg.CONF when starting the wsgi app 2020-06-04 12:52:37 +02:00
locale Imported Translations from Zanata 2019-12-22 07:06:50 +00:00
packages Remove six murano/packages 2020-04-18 01:12:08 -07:00
policy Remove six murano/policy 2020-04-17 18:48:08 -07:00
services Ability to retrieve current/owner user/project 2016-11-24 02:07:34 -08:00
tests [goal] Deprecate the JSON formatted policy file 2021-03-07 17:50:48 -06:00
__init__.py Extract version definition to a separate file 2014-11-10 13:02:56 +04:00
context.py Refactor existing context attributes to base class 2017-05-10 15:58:00 +03:00
monkey_patch.py Monkey patch original current_thread _active 2020-05-06 00:52:04 +03:00
opts.py Fix pep8 E402 2019-01-09 13:23:29 +08:00
utils.py Let admin can delete user's environment 2017-01-11 17:46:53 +08:00
version.py Extract version definition to a separate file 2014-11-10 13:02:56 +04:00