oslo.policy/oslo_policy/tests
Takashi Kajinami 973498106f Add flag to skip undefined rule check
Some components like neutron-lib builds its own sub-enforcer which
enforces policy rules partially. However even these enforcer may load
the full policy rules in the file and this causes a lot of warnings
about "undefined rules".

This introduces a new flag so that users can disable undefined check,
when they know the undefined rules are "expected".

Note that the flag is not formally exposed, because we don't know if
this requirement is common. If we find similar problems with different
components then we may add an argument to __init__ .

Related-Bug: #2048198
Change-Id: Ibb4e8e877640e8488aaffb40560e930b0cbfcbce
2024-01-31 10:41:22 +09:00
..
__init__.py exported from oslo-incubator by graduate.sh 2014-12-09 14:40:01 -03:00
base.py Remove all usage of six library 2020-10-06 15:56:50 +08:00
test_cache_handler.py Adding tests on cache handler 2021-02-09 14:32:16 +00:00
test_checks.py Use unittest.mock instead of third party mock 2020-03-31 14:38:48 -05:00
test_external.py tests: Unset requests-related environment variables 2021-01-21 14:45:41 +00:00
test_fixtures.py External Policy hook should support SSL 2017-09-27 13:08:26 -04:00
test_generator.py make deprecated rule examples explicit 2022-02-22 11:20:49 -08:00
test_opts.py Expand set_defaults() to set other config default value 2022-02-08 08:56:41 -06:00
test_parser.py Remove all usage of six library 2020-10-06 15:56:50 +08:00
test_policy.py Add flag to skip undefined rule check 2024-01-31 10:41:22 +09:00
test_shell.py Cleanup warnings 2020-04-07 15:55:17 +01:00
test_sphinxext.py Add unit tests on the sphinxext indent function 2019-07-22 11:46:09 +02:00
test_sphinxpolicygen.py Only pass exclude-deprecated when True 2022-04-28 15:27:31 +05:30
token_fixture.py Modernize policy checker 2019-10-10 08:38:14 -07:00