nova/nova/tests/unit/objects
Surya Seetharaman 70de423255 cleanup mapping/reqspec after archive instance
This patch aims at deleting the records of the archived instances from
the instance_mappings and request_specs tables in the API database
immediately following their archival from instances to shadow_instances
table. So upon running the 'nova-manage db archive_deleted_rows' command
the records of the archived instances will be automatically removed from
the instance_mappings and request_specs tables as well. A warning has
also been added to fix the issue of 'nova-manage verify_instance'
returning a valid instance mapping even after the instance is deleted.

The patch also adds InstanceMappingList.destory_bulk() and
RequestSpec.destroy_bulk() methods for ease of bulk deletion of records.

Change-Id: I483701a55576c245d091ff086b32081b392f746e
Closes-Bug: #1724621
Closes-Bug: #1678056
(cherry picked from commit 32fd58813f)
2018-07-06 21:52:43 +00:00
..
__init__.py
test_agent.py cleanup NovaObjectDictCompat from agent 2015-08-26 16:36:25 +05:30
test_aggregate.py Remove aggregate uuid generation on load from DB 2017-04-10 18:16:01 -04:00
test_bandwidth_usage.py Fix invalid uuid warnings in objects testcases 2016-04-20 05:18:01 +00:00
test_block_device.py Fix AttributeError in BlockDeviceMapping.obj_load_attr 2017-10-26 13:13:57 +00:00
test_build_request.py Add tags to instance.create Notification 2017-07-24 18:05:05 -04:00
test_cell_mapping.py Sort CellMappingList.get_all() for safety 2017-04-24 12:00:22 -07:00
test_compute_node.py objects: add ComputeNode.get_by_uuid method 2017-05-04 13:57:02 -04:00
test_diagnostics.py Added nova objects for intance diagnostics 2017-05-30 00:39:44 +04:00
test_dns_domain.py Remove DictCompat from DNSDomain 2016-01-11 16:38:06 +00:00
test_ec2.py Fix invalid uuid warnings in objects testcases 2016-04-20 05:18:01 +00:00
test_external_event.py Use EnumField for instance external event name 2015-05-20 22:16:52 +00:00
test_fields.py Use PCIAddressField in oslo.versionedobjects 2017-07-11 01:03:16 +00:00
test_fixed_ip.py Add FixedIPList.get_count_by_project() 2017-06-19 21:51:46 +00:00
test_flavor.py handle uninited fields in notification payload 2017-03-03 15:34:41 +01:00
test_floating_ip.py Add FloatingIPList.get_count_by_project() 2017-06-19 21:51:46 +00:00
test_host_mapping.py Add --by-service to discover_hosts 2018-03-21 10:43:19 -07:00
test_hv_spec.py objects: Move 'vm_mode' to 'fields.VMMode' 2016-11-25 16:19:44 +00:00
test_image_meta.py Add `img_hide_hypervisor_id` image property 2017-05-29 16:03:43 +00:00
test_instance.py Lazy-load instance attributes with read_deleted=yes 2018-02-19 16:37:25 -05:00
test_instance_action.py Fix invalid uuid warnings in objects testcases 2016-04-20 05:18:01 +00:00
test_instance_device_metadata.py Fix misuse of assertTrue 2017-02-14 15:03:49 +09:00
test_instance_fault.py Remove mox in tests/unit/objects/test_instance_faults 2016-06-13 09:32:13 +00:00
test_instance_group.py Replace uuid4() with uuidsentinel 2016-11-29 11:49:24 +05:30
test_instance_info_cache.py Remove mox in tests/unit/objects/test_instance_info_cache 2016-12-24 14:22:17 +00:00
test_instance_mapping.py cleanup mapping/reqspec after archive instance 2018-07-06 21:52:43 +00:00
test_instance_numa_topology.py objects: add new field cpuset_reserved in NUMACell 2017-01-24 19:37:55 +00:00
test_instance_pci_requests.py pci: Deprecate is_new from pci requests 2016-06-21 13:19:57 +03:00
test_keypair.py 'limit' and 'marker' support for db_api and keypair_obj 2016-07-12 14:25:33 +03:00
test_migrate_data.py Fix live migrate with XenServer 2017-02-16 14:02:35 +00:00
test_migration.py Fix data error in api samples doc 2016-11-16 20:58:06 +08:00
test_migration_context.py Replace uuid4() with uuidsentinel 2016-11-29 11:49:24 +05:30
test_monitor_metric.py Fix MonitorMetric obj_make_compatible 2016-09-12 14:10:41 +00:00
test_network.py Implements proper UUID format for few objects tests. 2015-12-16 17:31:03 +01:00
test_network_request.py Compute manager device tagging support 2016-06-29 16:53:34 -07:00
test_numa.py Fix incorrect known vcpuset when CPUPinningUnknown raised 2017-12-01 17:33:48 +00:00
test_objects.py Count instances to check quota 2017-07-18 17:31:15 +00:00
test_pci_device.py Fix ValueError when loading old pci device record 2017-11-30 12:26:23 +00:00
test_pci_device_pool.py Return empty PciDevicePoolList obj instead of None 2015-09-11 21:20:01 +02:00
test_quotas.py Make Quotas object favor the API database 2017-07-20 21:02:18 +00:00
test_request_spec.py cleanup mapping/reqspec after archive instance 2018-07-06 21:52:43 +00:00
test_resource_provider.py Do not set allocation.id in AllocationList.create_all() 2018-01-02 15:18:49 -05:00
test_security_group.py flake8: Specify 'nova' as name of app 2017-03-16 13:48:51 -07:00
test_security_group_rule.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_service.py Add get_minimum_version_all_cells() helper for service 2017-06-07 06:01:39 -04:00
test_tag.py Added method exists to the Tag object 2015-07-09 09:00:39 +03:00
test_task_log.py Replaced deprecated timeutils methods 2015-11-18 17:45:29 +01:00
test_vcpu_model.py objects: Move 'cpumodel' to 'fields.CPU*' 2016-11-25 16:19:43 +00:00
test_virt_cpu_topology.py
test_virtual_interface.py Add VirtualInterface.destroy() 2016-07-12 14:53:48 -07:00
test_volume_usage.py Fix invalid uuid warnings in objects testcases 2016-04-20 05:18:01 +00:00