nova/nova/tests/unit/objects
Chris Dent def4b17934 Use nova.db.api directly
nova/db/__init__.py was importing * from nova.db.api. This meant that
any time any code anywhere within the nova.db package was imported
then nova.db.api was too, leading to a cascade of imports that may
not have been desired. Also, in general, code in __init__.py is a pain.

Therefore, this change adjusts code that so that either:

* nova.db.api is used directly
* nova.db.api is imported as 'db'

In either case, the functionality remains the same.

The primary goal of this change was to make it possible to import the
model files without having to import the db api. Moving the model files
to a different place in the directory hierarchy was considered, but
given that "code in __init__.py is a pain" this mode was chosen.

This looks like a very large change, but it is essentially adjusting
package names, many in mocks.

Change-Id: Ic1fd7c87ceda05eeb96735da2a415ef37060bb1a
2018-07-10 14:56:27 +00:00
..
__init__.py
test_agent.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_aggregate.py Transform aggregate.update_metadata notification 2018-04-04 23:25:42 +00:00
test_bandwidth_usage.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_block_device.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_build_request.py Add tags to instance.create Notification 2017-07-24 18:05:05 -04:00
test_cell_mapping.py Allow templated cell_mapping URLs 2018-06-27 12:54:44 -07:00
test_compute_node.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_console_auth_token.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_diagnostics.py Added nova objects for intance diagnostics 2017-05-30 00:39:44 +04:00
test_dns_domain.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_ec2.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_external_event.py Use EnumField for instance external event name 2015-05-20 22:16:52 +00:00
test_fields.py Make ResourceClass.normalize_name handle sharp S 2018-04-10 12:24:40 -05:00
test_fixed_ip.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_flavor.py Add Flavor.description attribute 2017-11-05 01:24:01 -05:00
test_floating_ip.py Use nova.db.api directly 2018-07-10 14:56:27 +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.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_instance_action.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_instance_device_metadata.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_instance_fault.py Use nova.db.api directly 2018-07-10 14:56:27 +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 Use nova.db.api directly 2018-07-10 14:56:27 +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 Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_instance_pci_requests.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_keypair.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_migrate_data.py Fix nits from change Ia7cf4414feb335b3c2e863b4c8b4ff559b275c34 2018-06-21 17:43:05 -05:00
test_migration.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_migration_context.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_monitor_metric.py Fix MonitorMetric obj_make_compatible 2016-09-12 14:10:41 +00:00
test_network.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_network_request.py Compute manager device tagging support 2016-06-29 16:53:34 -07:00
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.py Use nova.db.api directly 2018-07-10 14:56:27 +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 Use nova.db.api directly 2018-07-10 14:56:27 +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.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_security_group_rule.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_selection.py Move the to_dict() method to the Selection object 2017-12-07 15:01:09 +00:00
test_service.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_tag.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_task_log.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_trusted_certs.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_vcpu_model.py objects: Move 'cpumodel' to 'fields.CPU*' 2016-11-25 16:19:43 +00:00
test_virt_cpu_topology.py Convert hardware.VirtCPUTopology to nova object 2014-11-20 09:14:25 -05:00
test_virtual_interface.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_volume_usage.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00