Add which exceptions must be raised in get_[item]_category_assignment_dict. 87/987/1
authorasteroide <thomas.duval@orange.com>
Thu, 9 Jul 2015 09:05:46 +0000 (11:05 +0200)
committerasteroide <thomas.duval@orange.com>
Thu, 9 Jul 2015 09:05:46 +0000 (11:05 +0200)
Change-Id: Ia2a7710a686a4dd096ee2f429af9ca18b1db9b6e

keystone-moon/keystone/contrib/moon/core.py

index 28f8c0d..3bf3a13 100644 (file)
@@ -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