nova/nova/tests/unit/db
huanhongda 58538ace35 [Stable Only] Remove soft-deleted instances from quota_usages
The resources in quota_usages table will minus 1 while
soft deleting an instance. But the soft-deleted instances
are counted when synchronizing quota_usages using command
"nova-manage project quota_usage_refresh". So we filter
out soft-deleted instances when synchronizing quota_usage.

We didn't need to do this on master as the quota_usage_refresh
command has been removed in 17.0.0 (Queens). And the
_instance_data_get_for_user function is already removed
in commit c881e77819.
https://review.openstack.org/#/c/570865/

Change-Id: I8dcbe1e5f3f70ddd7067fed1125ef3379044ab0f
Closes-bug: #1773542
2018-07-12 08:23:43 +00:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py Add Flavor.description attribute 2017-11-05 01:24:01 -05:00
test_db_api.py [Stable Only] Remove soft-deleted instances from quota_usages 2018-07-12 08:23:43 +00:00
test_migration_utils.py Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-07-25 10:45:03 +05:30
test_migrations.py Add index(instance_uuid, updated_at) on instance_actions table 2018-01-22 01:34:20 +00:00
test_models.py Test that new tables don't use soft deletes 2016-02-04 09:21:31 -05:00
test_sqlalchemy_migration.py Add Flavor.description attribute 2017-11-05 01:24:01 -05:00