keystone.tests.unit.resource package¶
Subpackages¶
Submodules¶
keystone.tests.unit.resource.test_backends module¶
-
class
keystone.tests.unit.resource.test_backends.
ResourceDriverTests
[source]¶ Bases:
object
Test for the resource driver.
Subclasses must set self.driver to the driver instance.
-
class
keystone.tests.unit.resource.test_backends.
ResourceTests
[source]¶ Bases:
object
-
domain_count
= 1¶
-
test_delete_large_project_cascade
()[source]¶ Try delete a large project with cascade true.
Tree we will create:
+-p1-+ | | p5 p2 | | p6 +-p3-+ | | p7 p4
-
test_delete_projects_from_ids
()[source]¶ Test the resource backend call delete_projects_from_ids.
Tests the normal flow of the delete_projects_from_ids backend call, that ensures no project on the list exists after it is successfully called.
-
test_delete_projects_from_ids_with_no_existing_project_id
()[source]¶ Test delete_projects_from_ids issues warning if not found.
Tests the resource backend call delete_projects_from_ids passing a non existing ID in project_ids, which is logged and ignored by the backend.
-
test_get_project_by_name_for_project_acting_as_a_domain
(*args, **kwargs)[source]¶ Test get_project_by_name works when the domain_id is None.
-
test_get_projects_in_subtree_as_ids_with_large_tree
()[source]¶ Check project hierarchy is returned correctly in large tree.
With a large hierarchy we need to enforce the projects are returned in the correct order (illustrated below).
Tree we will create:
+------p1------+ | | +---p3---+ +-p2-+ | | | | p7 +-p6-+ p5 p4 | | | p10 p9 p8 | p11
-
test_project_as_a_domain_uniqueness_constraints
(*args, **kwargs)[source]¶ Test project uniqueness for those acting as domains.
If it is a project acting as a domain, we can’t have two or more with the same name.
-
keystone.tests.unit.resource.test_controllers module¶
keystone.tests.unit.resource.test_core module¶
-
class
keystone.tests.unit.resource.test_core.
DomainConfigTests
[source]¶ Bases:
object
-
class
keystone.tests.unit.resource.test_core.
TestResourceManagerNoFixtures
(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.core.SQLDriverOverrides
,keystone.tests.unit.core.TestCase