nova/nova/tests/functional/db
Surya Seetharaman d4f8040117 Modify get_by_cell_and_project() to get_not_deleted_by_cell_and_project()
InstanceMappingList.get_by_cell_and_project() is being changed to
get_not_deleted_by_cell_and_project() by which we change the method to
filter out not queued_for_delete instance_mappings and also for
the method to accept cell_uuid as the input instead of the cell_id.
This also adds an optional limit parameter. This is more useful than
the ealier approach since it would increase the performance slightly
by not having to query for the cell_mappings explicitly to get the
cell ids from the cell uuids obtained from scatter gather utility.

Note that this method was added relatively recently and hence is not
used anywhere which is why it should be fine to change this, keeping
in mind the intention of having added it in the first place.

Change-Id: I5df9851cce0b6e635c74fd34f5be9c4906dd7406
Related to blueprint handling-down-cell
2018-10-31 15:00:17 -04:00
..
api Add queued for delete to instance_mappings table. 2018-07-10 10:55:49 +02:00
__init__.py Add second migrate_repo for cells v2 database migrations 2015-03-03 15:41:40 -05:00
test_aggregate.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_aggregate_model.py Add aggregates tables to the API db. 2016-06-01 12:00:56 -05:00
test_archive.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_build_request.py Raise MarkerNotFound if BuildRequestList.get_by_filters doesn't find marker 2017-12-12 21:27:28 -05:00
test_cell_mapping.py Address feedback from instance_list smart-cell behavior 2018-05-10 09:59:36 -07:00
test_compute_node.py Filter deleted computes from get_all_by_uuids() 2018-09-20 07:15:25 -07:00
test_connection_switch.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_console_auth_token.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_flavor.py Remove old flavor_get_all db api method 2018-02-14 15:53:18 -05:00
test_flavor_model.py Add Flavor.description attribute 2017-11-05 01:24:01 -05:00
test_host_mapping.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_instance.py Filter out instances without a host when populating AZ 2018-08-21 09:44:39 -04:00
test_instance_group.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_instance_mapping.py Modify get_by_cell_and_project() to get_not_deleted_by_cell_and_project() 2018-10-31 15:00:17 -04:00
test_keypair.py Cleanup some redundant USES_DB_SELF usage 2016-09-26 15:47:16 -04:00
test_quota.py Transform servergroup.addmember notification 2018-03-06 22:03:00 +00:00
test_quota_model.py Add quota related tables to the api database. 2016-10-12 07:40:00 +00:00
test_quotas.py Add online migration to move quotas to API database 2017-07-24 18:36:46 -04:00
test_request_spec.py Handle missing marker during online data migration 2018-10-04 12:13:09 -04:00
test_security_group.py Add SecurityGroupList.get_counts() 2017-06-19 21:51:46 +00:00