nova/nova/tests/unit/objects
Balazs Gibizer 08fb09e878 Fix unbound local when saving an unchanged RequestSpec
RequestSpec._get_update_primitives() tried to return the unitialized
db_updates field when the object has no changes. This patch initalizes
that local to None and handles that None in create() and save() where
the RequestSpec._get_update_primitives() is called.

Change-Id: Iad256079945bf8b5745ebdcc393c55115dbcab75
Closes-Bug: #1775863
2018-07-03 13:02:54 +00:00
..
__init__.py
test_agent.py
test_aggregate.py Transform aggregate.update_metadata notification 2018-04-04 23:25:42 +00:00
test_bandwidth_usage.py iso8601.is8601.Utc No Longer Exists 2017-08-29 19:26:55 -04:00
test_block_device.py Add test for assignment of uuid to a deleted BDM 2018-01-03 15:06:43 +00:00
test_build_request.py Add tags to instance.create Notification 2017-07-24 18:05:05 -04:00
test_cell_mapping.py Cleanup patch for the cell-disable series 2018-04-13 10:03:53 +02:00
test_compute_node.py Match ComputeNode.uuid to ironic node uuid in RT 2018-05-31 16:26:01 -04:00
test_console_auth_token.py Add ConsoleAuthToken object 2018-01-06 02:03:50 +00: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
test_fields.py Make ResourceClass.normalize_name handle sharp S 2018-04-10 12:24:40 -05:00
test_fixed_ip.py iso8601.is8601.Utc No Longer Exists 2017-08-29 19:26:55 -04:00
test_flavor.py Add Flavor.description attribute 2017-11-05 01:24:01 -05: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-16 15:55: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 Update ImageMetaProp object to expose traits 2018-04-05 16:18:59 -07:00
test_instance_action.py Add host field to InstanceActionEvent 2018-03-23 15:12:37 +08: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 Remove compatibility code for instance groups 2018-06-27 10:09:55 -04:00
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 2017-11-21 15:28:07 +01:00
test_instance_numa_topology.py objects: Remove legacy '_to_dict' functions 2018-06-21 11:30:50 +01:00
test_instance_pci_requests.py objects: Add PCI NUMA policy fields 2017-12-20 14:59:10 +00:00
test_instance.py Expose instance_get_all_uuids_by_host() from DB API and use it 2018-05-18 14:36:12 -07: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 nits from change Ia7cf4414feb335b3c2e863b4c8b4ff559b275c34 2018-06-21 17:43:05 -05:00
test_migration_context.py Replace uuid4() with uuidsentinel 2016-11-29 11:49:24 +05:30
test_migration.py Add migration db and object pagination support. 2018-01-08 12:01:58 -05:00
test_monitor_metric.py Fix MonitorMetric obj_make_compatible 2016-09-12 14:10:41 +00:00
test_network_request.py Compute manager device tagging support 2016-06-29 16:53:34 -07:00
test_network.py
test_numa.py objects: Remove legacy '_to_dict' functions 2018-06-21 11:30:50 +01:00
test_objects.py Implement discard for file backed memory 2018-06-21 11:45:31 -05:00
test_pci_device_pool.py
test_pci_device.py Remove vestigial extra_info update in PciDevice.save() 2017-11-29 12:49:53 -05:00
test_quotas.py Remove old-style quotas code 2017-11-30 16:13:20 +00:00
test_request_spec.py Fix unbound local when saving an unchanged RequestSpec 2018-07-03 13:02:54 +00:00
test_security_group_rule.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_security_group.py flake8: Specify 'nova' as name of app 2017-03-16 13:48:51 -07:00
test_selection.py Move the to_dict() method to the Selection object 2017-12-07 15:01:09 +00:00
test_service.py Make service all-cells min version helper use scatter-gather 2018-04-27 12:14:21 -07:00
test_tag.py
test_task_log.py iso8601.is8601.Utc No Longer Exists 2017-08-29 19:26:55 -04:00
test_trusted_certs.py Add trusted_certs object 2018-03-29 23:00:48 -04: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