nova/nova/tests/unit/objects
Chris Dent 8ed5120829 Add create_all and delete_all for AllocationList
This is the object side of creating and deleting allocations in the
placement service.

create_all() checks that the inventory records involved in the
allocations requested do not have their capacities exceeded. If no
inventory capacities are exceeded, allocation records are written to the
database. Afterwards, the resource provider generation for each resource
provider involved in the allocation transaction has its generation
incremented. If another threads has concurrently updated either the
inventory or the usage of resources, this generation increment will
raise ConcurrentUpdateDetected, allowing callers to retry. This patch
does not yet implement this retry, which should be fine for the time
being considering that nothing yet calls POST /allocations.

Partially-Implements: blueprint generic-resource-pools

Co-Authored-By: Jay Pipes <jaypipes@gmail.com>
Co-Authored-By: Ed Leafe <ed@leafe.com>

Change-Id: Ic0bb48dcb1ab33b278f09dee8778fcb7a374caad
2016-09-01 11:38:40 -07:00
..
__init__.py
test_agent.py cleanup NovaObjectDictCompat from agent 2015-08-26 16:36:25 +05:30
test_aggregate.py Address feedback on cell-aggregate-api-db patches 2016-08-01 11:46:59 -07:00
test_bandwidth_usage.py Fix invalid uuid warnings in objects testcases 2016-04-20 05:18:01 +00:00
test_block_device.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test_build_request.py Add BuildRequestList object 2016-08-25 12:04:28 -04:00
test_cell_mapping.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_compute_node.py Fix invalid import order 2016-07-04 16:14:20 +05:30
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 Remove code duplication in enums 2016-08-16 09:13:21 +05:30
test_fixed_ip.py Fix invalid uuid warnings in objects testcases 2016-04-20 05:18:01 +00:00
test_flavor.py Make flavor-manage api call destroy with Flavor object 2016-05-19 16:05:19 +02:00
test_floating_ip.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_host_mapping.py Fix host mapping saving 2016-07-15 08:49:45 +03:00
test_hv_spec.py libvirt: rename parallels driver to virtuozzo 2015-07-29 18:40:12 +03:00
test_image_meta.py image_meta: Add hw_rescue_device and hw_rescue_bus 2016-06-24 21:46:03 +01:00
test_instance.py Fix using filter() to meet python2,3 2016-08-29 19:00:12 +07: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 objects: new InstanceDeviceMetadata object 2016-06-24 04:30:51 -04: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 Make InstanceGroup object favor the API database 2016-08-19 10:46:19 -07:00
test_instance_info_cache.py Implements proper UUID format for few objects tests. 2015-12-16 17:31:03 +01:00
test_instance_mapping.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_instance_numa_topology.py Save all instance extras in a single db call 2016-05-25 12:23:03 +02: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 Hyper-V: update live migrate data object 2016-08-22 12:46:16 +03:00
test_migration.py Remove mox from tests/unit/objects/test_migration.py 2016-04-01 15:56:55 +09:00
test_migration_context.py pci: Move PCI devices and PCI requests into migration context 2016-06-03 02:09:33 +03:00
test_monitor_metric.py Fix wrong CPU metric value in metrics_filter 2015-12-04 23:47:39 +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 Added better error messages during (un)pinning CPUs 2016-07-05 09:13:19 +00:00
test_objects.py Add create_all and delete_all for AllocationList 2016-09-01 11:38:40 -07:00
test_pci_device.py pci: Make sure PF is 'available' when last VF is freed 2016-06-01 08:51:03 -04:00
test_pci_device_pool.py Return empty PciDevicePoolList obj instead of None 2015-09-11 21:20:01 +02:00
test_quotas.py Remove mox in tests/unit/objects/test_quotas 2016-06-29 16:00:27 +08:00
test_request_spec.py Add requested_destination field to RequestSpec 2016-05-27 10:14:51 +02:00
test_resource_provider.py Add create_all and delete_all for AllocationList 2016-09-01 11:38:40 -07:00
test_security_group.py Remove DictCompat from SecurityGroup 2016-07-06 14:30:09 -04:00
test_security_group_rule.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_service.py Add objects.ServiceList.get_all_computes_by_hv_type 2016-08-01 16:38:21 -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 cleanup NovaObjectDictCompat from virt_cpu_topology 2015-08-05 08:56:30 +05:30
test_virt_cpu_topology.py Convert hardware.VirtCPUTopology to nova object 2014-11-20 09:14:25 -05:00
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