Bases: object
Test for the resource driver.
Subclasses must set self.driver to the driver instance.
Bases: object
Try delete a large project with cascade true.
Tree we will create:
+-p1-+
| |
p5 p2
| |
p6 +-p3-+
| |
p7 p4
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 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 works when the domain_id is None.
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 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.
Bases: object
Bases: keystone.tests.unit.core.SQLDriverOverrides, keystone.tests.unit.core.TestCase