96912aea91
enforcer for policy can be loaded from a single file or from multiple files (policy_dir). so checking for policy_file is not good enough. If a policy is loaded it will have some rules, if not loaded then, oslo_policy rejects all acccess, but it is not saved to the _ENFORCER object, which is holds the objects used for enforcing policies. So checking for existance of rules is a better check. Some refactoring for better logging added tests: test_nonexisting_policy_file_load Change-Id: Id1f65058014ef5b14449b502d6741da9d34767b3 Closes-Bug: 1804174 |
||
---|---|---|
.. | ||
__init__.py | ||
test_auth.py | ||
test_policy.py | ||
test_user.py | ||
test_utils.py |