"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/test_policy.py" between
keystone-18.0.0.tar.gz and keystone-19.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Wallaby" series (latest release).

test_policy.py  (keystone-18.0.0):test_policy.py  (keystone-19.0.0)
skipping to change at line 195 skipping to change at line 195
# The enforcer is setup behind the scenes and registers the in code # The enforcer is setup behind the scenes and registers the in code
# default policies. # default policies.
result = policy._ENFORCER._enforcer.enforce(action, target, result = policy._ENFORCER._enforcer.enforce(action, target,
credentials) credentials)
self.assertTrue(result) self.assertTrue(result)
def test_all_targets_documented(self): def test_all_targets_documented(self):
policy_keys = self._get_default_policy_rules() policy_keys = self._get_default_policy_rules()
# These keys are in the policy.json but aren't targets. # These keys are in the policy.yaml but aren't targets.
policy_rule_keys = [ policy_rule_keys = [
'admin_or_owner', 'admin_or_token_subject', 'admin_required', 'admin_or_owner', 'admin_or_token_subject', 'admin_required',
'owner', 'service_admin_or_token_subject', 'service_or_admin', 'owner', 'service_admin_or_token_subject', 'service_or_admin',
'service_role', 'token_subject', ] 'service_role', 'token_subject', ]
def read_doc_targets(): def read_doc_targets():
# Parse the doc/source/policy_mapping.rst file and return the # Parse the doc/source/policy_mapping.rst file and return the
# targets. # targets.
doc_path = os.path.join( doc_path = os.path.join(
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)