heat/heat/tests/db
Steve Baker be41d08a44 Count all nested stack resources with DB operations
The count is performed in 2 parts
- A function which builds a list of all nested stacks
  by recursively calling stack_get_all_by_owner_id
- A query which counts resources which belong to the list
  of stacks

Considering this will be the basis for fixing bug #1455589 then this
approach is appropriate for backporting to stable/kilo, but master would
ideally replace this soon with a new Stack attribute that stores the
calculated resource count.

Partial-Bug: #1455589

Change-Id: Ifa2e5609fd9a6853e20037e94a5e16696bb378ee
2015-06-02 12:04:06 +12:00
..
__init__.py Add migration test framework 2013-12-20 12:32:58 +11:00
test_migrations.py Use six.iterkeys(x) instead of x.keys() 2015-04-23 17:18:40 +03:00
test_sqlalchemy_api.py Count all nested stack resources with DB operations 2015-06-02 12:04:06 +12:00
test_sqlalchemy_filters.py Re-factor db sqlalchemy tests 2015-03-31 11:41:40 -04:00
test_sqlalchemy_types.py Re-factor db sqlalchemy tests 2015-03-31 11:41:40 -04:00
test_utils.py Fixes migrate_data utils to avoid created_at filed 2015-04-01 15:28:33 +05:30