oslo.policy/oslo_policy/tests
Lance Bragstad 2ae04ebdef Render deprecated policy names when generating files
We found out the when policy files are generated they don't have
deprecated policies. This can be problematic for services that use
rendered policy files because they could still be using the
deprecated policy name and not the new policy name.

This commit makes sure we render the deprecated policy name
as an alias to the new policy name. This makes it so that operators
don't have to change two policies if they override a deprecated
policy.

Closes-Bug: 1742569

Change-Id: Iaf0c89a035775770ceaa230c65ce8eb195b9d82b
2018-01-16 22:00:17 +00:00
..
__init__.py exported from oslo-incubator by graduate.sh 2014-12-09 14:40:01 -03:00
base.py Create the temporary files needed for tests 2015-02-17 18:25:54 -05:00
test_checks.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
test_external.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
test_fixtures.py External Policy hook should support SSL 2017-09-27 13:08:26 -04:00
test_generator.py Render deprecated policy names when generating files 2018-01-16 22:00:17 +00:00
test_opts.py Clean up configuration option management 2015-02-18 12:45:04 -05:00
test_parser.py Change assertTrue(isinstance()) by optimal assert 2016-10-08 09:46:47 +08:00
test_policy.py Only log deprecation warnings when they are overridden 2018-01-05 21:00:16 +00:00
test_sphinxext.py sphinxext: Use field lists in output 2017-07-05 11:05:23 +01:00
test_sphinxpolicygen.py Add sphinx extension to build sample policy 2016-09-28 10:59:14 +01:00
token_fixture.py Fix typo of 'available' in token_fixture.py 2015-07-14 16:03:34 +09:00