nova/nova/tests/unit/cmd
Ghanshyam Mann fe545dbe5f Migrate default policy file from JSON to YAML
Default value of 'CONF.oslo_policy.policy_file' config option
has been changed from 'policy.json' to 'policy.yaml'. If new default
file 'policy.yaml' does not exist but old default 'policy.json' exist
then fallback to use old default file.

An upgrade checks is added to check the policy_file format and
fail upgrade checks if it is JSON formatted.

Added a warning in policy doc about JSON formatted file is deprecated,
also removed all the reference to policy.json file in doc as well as
in tests.

Related Blueprint: policy-json-to-yaml

Closes-Bug: #1875418

Change-Id: Ic4d3b998bb9701cb1e3ef12d9bb6f4d91cc19c18
2020-09-09 08:09:38 -05: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 Migrate default policy file from JSON to YAML 2020-09-09 08:09:38 -05:00