horizon/openstack_auth/tests
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
..
conf Replace all mentions of get_identity_providers with get_identity_provider 2018-04-25 11:37:05 +02:00
templates/auth Add Django OpenStack Auth to Horizon 2017-09-27 12:06:57 +01:00
unit fix checking if enforcer was loaded 2018-12-22 22:42:54 +09:00
__init__.py Add Django OpenStack Auth to Horizon 2017-09-27 12:06:57 +01:00
data_v2.py Add Django OpenStack Auth to Horizon 2017-09-27 12:06:57 +01:00
data_v3.py Drop pki token check from Token class in openstack_auth 2018-12-09 16:58:25 +09:00
settings.py Fix django.contrib.auth.middleware monkey patching 2018-11-06 21:36:45 +00:00
urls.py Fix django.contrib.auth.middleware monkey patching 2018-11-06 21:36:45 +00:00