nova/nova/tests/unit/cmd
Ghanshyam Mann d4af91f349 Add nova-status upgrade check and reno for policy new defaults
There are cases where policy file is re-generated freshly
and end up having the new defaults only but expectation is that
old deprecated rule keep working.

If a rule is present in policy file then, that has priority over
its defaults so either rules should not be present in policy file
or users need to update their token to match the overridden rule
permission.

This issue was always present when any policy defaults were changed
with old defaults being supported as deprecated. This is we have
changed all the policy for new defaults so it came up as broken case.

Adding nova-status upgrade check also to detect such policy file.

Related-Bug: #1875418

Change-Id: Id9cd65877e53577bff22e408ca07bbeec4407f6e
2020-05-01 15:32:51 +00:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_baseproxy.py Allow TLS ciphers/protocols to be configurable for console proxies 2020-02-12 15:05:22 -06:00
test_cmd_db_blocks.py conf: Remove cells v1 options, group 2019-05-29 17:14:13 +01:00
test_common.py Tests: autospecs all the mock.patch usages 2019-08-19 09:43:10 -05:00
test_manage.py Merge "Support for nova-manage placement heal_allocations --cell" 2020-04-03 15:13:00 +00:00
test_nova_api.py Fix wrong unit test about config option enabled_apis 2017-03-24 10:28:24 +08:00
test_policy.py Expose instance action event details out of the API 2020-03-27 08:20:12 +00:00
test_scheduler.py trivial: Remove FakeScheduler 2020-02-18 15:13:45 +00:00
test_status.py Add nova-status upgrade check and reno for policy new defaults 2020-05-01 15:32:51 +00:00