From: asteroide Date: Thu, 9 Jul 2015 09:05:46 +0000 (+0200) Subject: Add which exceptions must be raised in get_[item]_category_assignment_dict. X-Git-Tag: colorado.1.0~215 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=7431cf0b277b34325dee4002ee18b54c89417963;p=moon.git Add which exceptions must be raised in get_[item]_category_assignment_dict. Change-Id: Ia2a7710a686a4dd096ee2f429af9ca18b1db9b6e --- 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