nova/nova/tests/unit/objects
Mohammed Naser 61bf7ae579 Default embedded instance.flavor.is_public attribute
It is possible that really old instances don't actually have this
attribute defined which can lead to raising exceptions when loading
their embedded flavors from the database.

This patch fixes this by defaulting these values to true if they
are not set.

Change-Id: If04cd802ce7184dc94f94804c743faebe0d4bd8c
Closes-Bug: #1789423
(cherry picked from commit c4f6b0bf6c)
(cherry picked from commit c689c09996)
2018-11-21 15:25:12 -05: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 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 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_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 Use EnumField for instance external event name 2015-05-20 22:16:52 +00:00
test_fields.py Address nits from service create/destroy notification review 2017-11-27 11:42:13 -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-21 07:26:29 -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 Default embedded instance.flavor.is_public attribute 2018-11-21 15:25:12 -05:00
test_instance_action.py Add instance action db and obj pagination support. 2017-12-11 11:01:42 -05: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 Make scheduler.utils.setup_instance_group query all cells 2018-09-05 16:36:22 +00: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: add new field cpuset_reserved in NUMACell 2017-01-24 19:37:55 +00:00
test_instance_pci_requests.py objects: Add PCI NUMA policy fields 2017-12-20 14:59:10 +00: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 libvirt: QEMU native LUKS decryption for encrypted volumes 2018-01-23 10:47:05 +00:00
test_migration.py Add migration db and object pagination support. 2018-01-08 12:01:58 -05: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-11-24 15:41:22 +08:00
test_objects.py libvirt: QEMU native LUKS decryption for encrypted volumes 2018-01-23 10:47:05 +00:00
test_pci_device.py Fix ValueError when loading old pci device record 2017-11-29 12:49:49 -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 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-05 07:31:59 +00:00
test_resource_provider.py [placement] Fix resource provider delete 2018-01-15 01:25:27 +00: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_selection.py Move the to_dict() method to the Selection object 2017-12-07 15:01:09 +00:00
test_service.py Make conductor pass and use host_lists 2017-12-21 17:02:35 -05:00
test_tag.py Added method exists to the Tag object 2015-07-09 09:00:39 +03:00
test_task_log.py iso8601.is8601.Utc No Longer Exists 2017-08-29 19:26:55 -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