horizon/openstack_auth/tests/unit
Sumit Jamgade 96912aea91 fix checking if enforcer was loaded
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
2018-12-22 22:42:54 +09:00
..
__init__.py openstack_auth: Move test files to match module structure 2017-12-09 21:37:12 +09:00
test_auth.py Merge "Bump hacking to 1.1.0" 2018-11-14 09:19:47 +00:00
test_policy.py fix checking if enforcer was loaded 2018-12-22 22:42:54 +09:00
test_user.py Drop pki token check from Token class in openstack_auth 2018-12-09 16:58:25 +09:00
test_utils.py Rework DEFAULT_SERVICE_REGIONS 2018-07-17 13:58:24 +12:00