From 7431cf0b277b34325dee4002ee18b54c89417963 Mon Sep 17 00:00:00 2001 From: asteroide Date: Thu, 9 Jul 2015 11:05:46 +0200 Subject: Add which exceptions must be raised in get_[item]_category_assignment_dict. Change-Id: Ia2a7710a686a4dd096ee2f429af9ca18b1db9b6e --- keystone-moon/keystone/contrib/moon/core.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'keystone-moon/keystone') diff --git a/keystone-moon/keystone/contrib/moon/core.py b/keystone-moon/keystone/contrib/moon/core.py index 28f8c0d1..3bf3a13d 100644 --- a/keystone-moon/keystone/contrib/moon/core.py +++ b/keystone-moon/keystone/contrib/moon/core.py @@ -1951,6 +1951,7 @@ class IntraExtensionDriver(object): :param subject_uuid: subject UUID :type subject_uuid: string :return: a dictionary of assignment for the given subject {"cat1": ["scope_uuid1", "scope_uuid2"]} + :raises: IntraExtensionNotFound, SubjectUnknown, SubjectCategoryAssignmentUnknown, SubjectCategoryAssignmentOutOfScope """ raise exception.NotImplemented() # pragma: no cover @@ -2007,6 +2008,7 @@ class IntraExtensionDriver(object): :param object_uuid: object UUID :type object_uuid: string :return: a dictionary of assignment for the given object {"cat1": ["scope_uuid1", "scope_uuid2"]} + :raises: IntraExtensionNotFound, ObjectUnknown, ObjectCategoryAssignmentUnknown, ObjectCategoryAssignmentOutOfScope """ raise exception.NotImplemented() # pragma: no cover @@ -2063,6 +2065,7 @@ class IntraExtensionDriver(object): :param action_uuid: action UUID :type action_uuid: string :return: a dictionary of assignment for the given action {"cat1": ["scope_uuid1", "scope_uuid2"]} + :raises: IntraExtensionNotFound, ActionUnknown, ActionCategoryAssignmentUnknown, ActionCategoryAssignmentOutOfScope """ raise exception.NotImplemented() # pragma: no cover -- cgit 1.2.3-korg