The goal is to move the responsibility of reference checks away from
controllers and into the underlying managers & drivers, which can
handle the task with equal or greater efficiency.
- Tenant references from create_user/update_user are NOT tested
due to inconsistencies between backends
- Additional test coverage improvements
Also fixes bug 999209, bug 999608, bug 1006029, bug 1006055, bug 1006287,
bug 1006334, and bug 1006344.
Change-Id: I7de592e7dd4518038436b9a9fdaab559b00a0537
* unittest2 is already a test dependency, and has a large
number of improvements over unittest. The switch suggested
removing TestCase assertions that already existed in unittest2's
version and updating all subclasses to use the unittest2
equivalents.
Change-Id: I024134ae7cade3b4951c7508c1ea50070762720f
* Adds missing test cases for the TemplatedCatalog
* Adds a base CatalogTest that different backends
can use
* Updates kvs.Catalog to raise ServiceNotFound where
appropriate
* Updates the tests.test_keystoneclient_sql to actually
test the SQL catalog backend
* Removes old test for incorrect endpoints listing
* Removes the keystone.catalog.core.Driver.service_exists
method since it was only implemented in the SQL driver
and wasn't required now that get_service and delete_service
properly raise ServiceNotFound exception.
Change-Id: I35690cc147e56007be27bacf94eeff360e727e5d