nova/nova/tests/unit/objects
Nikola Dipanov abcb26c121 Make sure that we always have a parent_addr set
Since enabling PF tracking in the following commit:

50355c4595

we expect all of the PciDevice objects to have a parent_addr field
set since we use it for matching in case the (miss-)feature of allowing
to specify a PF address to enable all VFs was used in the whitelist.

This caused a lazy-load on the object which always fails, so this patch
makes sure that 'parent_addr' field is set to None on the object even if
it was not passed in by the driver.

Closes-bug: #1535367
Change-Id: I0ed8dd0702287859f7809a1a1a87dafe168d6e9b
2016-01-19 11:49:05 -05:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_agent.py cleanup NovaObjectDictCompat from agent 2015-08-26 16:36:25 +05:30
test_aggregate.py Move to using ovo's remotable decorators 2015-07-28 10:34:59 -07:00
test_bandwidth_usage.py Fix order of arguments in assertEqual 2015-09-21 00:14:01 -07:00
test_block_device.py Fix undetected races when getting BDMs by volume id 2016-01-14 12:37:57 -08:00
test_cell_mapping.py Switch from MySQL-python to PyMySQL 2015-07-03 22:09:36 +00:00
test_compute_node.py Clean up tests for dropping obj_relationships 2015-10-14 15:15:43 -07:00
test_dns_domain.py Remove DictCompat from DNSDomain 2016-01-11 16:38:06 +00:00
test_ec2.py Remove DictCompat from EC2 objects 2016-01-11 17:07:58 +00:00
test_external_event.py Use EnumField for instance external event name 2015-05-20 22:16:52 +00:00
test_fields.py Add DiskFormat as Enum in fields 2016-01-11 19:24:30 +00:00
test_fixed_ip.py Replaced deprecated timeutils methods 2015-11-18 17:45:29 +01:00
test_flavor.py Move to using ovo's remotable decorators 2015-07-28 10:34:59 -07:00
test_floating_ip.py Clean up tests for dropping obj_relationships 2015-10-14 15:15:43 -07:00
test_host_mapping.py Deprecated: failIf 2015-10-30 13:30:40 -04:00
test_hv_spec.py libvirt: rename parallels driver to virtuozzo 2015-07-29 18:40:12 +03:00
test_image_meta.py Change assertEqual(True/False) to assertTrue/False 2016-01-11 17:02:11 +05:30
test_instance.py Merge "objects: add virtual 'image_meta' property to Instance object" 2016-01-19 11:18:35 +00:00
test_instance_action.py Use TimeFixture from oslo_utils to override time in tests 2015-12-18 12:15:00 -05:00
test_instance_fault.py Implements proper UUID format for few objects tests. 2015-12-16 17:31:03 +01:00
test_instance_group.py Fix RequestSpec.instance_group hydration 2015-09-02 16:47:34 +02: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 Add InstanceMapping object 2015-03-18 15:24:25 -04:00
test_instance_numa_topology.py Make use of 'InstanceNUMACell.cpu_policy' field 2016-01-06 09:09:45 +00:00
test_instance_pci_requests.py pci: Remove objects.InstancePCIRequests.save() 2015-08-19 12:22:00 -04:00
test_keypair.py Move to using ovo's remotable decorators 2015-07-28 10:34:59 -07:00
test_migrate_data.py Actually pass the migration data object down to the virt drivers 2016-01-13 07:15:48 -08:00
test_migration.py enginefacade: 'migration' 2015-12-17 15:01:48 +00:00
test_migration_context.py objects: Add MigrationContext object 2015-08-31 20:45:19 +01: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 network_request_obj: Clean up outdated code 2015-09-06 03:22:19 +00:00
test_numa.py Add 'hw:cpu_threads_policy=isolate' scheduling 2016-01-14 11:02:51 +00:00
test_objects.py Merge "Remove cruft for things o.vo handles" 2016-01-19 06:53:23 +00:00
test_pci_device.py Make sure that we always have a parent_addr set 2016-01-19 11:49:05 -05:00
test_pci_device_pool.py Return empty PciDevicePoolList obj instead of None 2015-09-11 21:20:01 +02:00
test_quotas.py Fix some straggling uses of passing context to remotable methods in tests 2015-03-09 07:30:15 -07:00
test_request_spec.py Change assertEqual(True/False) to assertTrue/False 2016-01-11 17:02:11 +05:30
test_security_group.py Remove assertRemotes() from objects tests 2015-06-08 07:18:16 -07:00
test_security_group_rule.py Reduce the number of db/rpc calls to get instance rules 2015-12-23 19:17:40 +01:00
test_service.py Add caching of service_min_versions in the conductor 2016-01-11 11:15:32 +00: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 cleanup NovaObjectDictCompat from virtual_interface 2015-08-03 22:48:23 +05:30
test_volume_usage.py Add a VolumeUsage object 2015-08-23 18:45:38 +02:00