nova/nova/tests/unit/api/openstack/compute
Stephen Finucane 100b9dc62c db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api'
Merge these, removing an unnecessary layer of abstraction, and place
them in the new 'nova.db.main' directory. The resulting change is huge,
but it's mainly the result of 's/sqlalchemy import api/main import api/'
and 's/nova.db.api/nova.db.main.api/' with some necessary cleanup. We
also need to rework how we do the blocking of API calls since we no
longer have a 'DBAPI' object that we can monkey patch as we were doing
before. This is now done via a global variable that is set by the 'main'
function of 'nova.cmd.compute'.

The main impact of this change is that it's no longer possible to set
'[database] use_db_reconnect' and have all APIs automatically wrapped in
a DB retry. Seeing as this behavior is experimental, isn't applied to
any of the API DB methods (which don't use oslo.db's 'DBAPI' helper),
and is used explicitly in what would appear to be the critical cases
(via the explicit 'oslo_db.api.wrap_db_retry' decorator), this doesn't
seem like a huge loss.

Change-Id: Iad2e4da4546b80a016e477577d23accb2606a6e4
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-08-09 15:34:40 +01:00
..
__init__.py
admin_only_action_common.py Ensure source service is up before resizing/migrating 2019-12-19 15:24:34 -05:00
dummy_schema.py Remove last of the plugins/v3 from unit tests 2015-08-18 15:25:46 +08:00
microversions.py Bump hacking min version to 3.1.0 2020-05-19 08:09:43 +08:00
test_access_ips.py tests: Remove '_FakeImageService' 2020-09-16 11:31:23 +01:00
test_admin_actions.py virt: Remove 'reset_network' API 2020-11-23 15:55:50 +00:00
test_admin_password.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_aggregates.py Add new default roles in os-aggregates policies 2020-04-08 23:57:11 -05:00
test_api.py Remove unnecessary setUp function in testcase 2017-03-30 12:55:16 +08:00
test_attach_interfaces.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_auth.py Tests: use fakes.HTTPRequest in compute tests 2016-08-24 19:03:54 +03:00
test_availability_zone.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_baremetal_nodes.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_certificates.py Replace 'fake' with a real project ID 2019-09-30 14:40:20 +09:00
test_cloudpipe.py Replace 'fake' with a real project ID 2019-09-30 14:40:20 +09:00
test_cloudpipe_update.py Remove cloudpipe APIs 2017-05-04 16:13:45 +08:00
test_console_auth_tokens.py Remove nova-consoleauth 2019-07-05 15:04:47 +00:00
test_console_output.py Add test coverage of existing console_output policies 2020-03-06 01:28:11 +00:00
test_create_backup.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_deferred_delete.py Add test coverage of existing deferred_delete policies 2020-03-04 09:58:13 +00:00
test_disk_config.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_evacuate.py Remove unnecessary mocks from unit test 2021-06-04 09:03:43 +02:00
test_extended_ips.py Remove six.iteritems/itervalues/iterkeys 2020-11-07 03:25:26 +00:00
test_extended_ips_mac.py Remove six.iteritems/itervalues/iterkeys 2020-11-07 03:25:26 +00:00
test_extension_info.py Add test coverage of extensions policies 2020-07-25 16:54:15 -05:00
test_flavor_access.py Remove (almost) all references to 'instance_type' 2021-03-29 12:24:15 +01:00
test_flavor_disabled.py conf: Remove deprecated 'project_id_regex' opt 2019-09-27 18:59:02 +09:00
test_flavor_manage.py db: Remove constant aliases from 'nova.db.api' 2021-07-05 11:10:09 +01:00
test_flavorextradata.py conf: Remove deprecated 'project_id_regex' opt 2019-09-27 18:59:02 +09:00
test_flavors.py Remove references to 'inst_type' 2021-03-29 12:24:51 +01:00
test_flavors_extra_specs.py replace the "hide_hypervisor_id" to "hw:hide_hypervisor_id" 2020-05-08 10:18:42 +01:00
test_floating_ip_pools.py Add test coverage of FIP pools policies 2020-07-17 21:45:29 -05:00
test_floating_ips.py Add test coverage of FIP policies 2020-08-14 02:21:53 +00:00
test_hosts.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_hypervisors.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_image_metadata.py Remove 'nova.image.api' module 2020-02-18 11:45:39 +00:00
test_images.py Remove six.moves 2020-11-07 03:25:02 +00:00
test_instance_actions.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_instance_usage_audit_log.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_keypairs.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_limits.py Remove six.moves 2020-11-07 03:25:02 +00:00
test_lock_server.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_microversions.py conf: Remove deprecated 'project_id_regex' opt 2019-09-27 18:59:02 +09:00
test_migrate_server.py Remove unnecessary mocks from unit test 2021-06-04 09:03:43 +02:00
test_migrations.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_multinic.py Add test coverage of multinic policies 2020-07-22 02:17:52 +00:00
test_networks.py Add test coverage of networks policies 2020-07-23 23:40:18 +00:00
test_pause_server.py Add test coverage of existing pause server policies 2020-03-31 02:35:11 -05:00
test_quota_classes.py Add test coverage of existing quota class policies 2020-04-10 15:01:06 -05:00
test_quotas.py db: Remove constant aliases from 'nova.db.api' 2021-07-05 11:10:09 +01:00
test_remote_consoles.py Add test coverage of existing remote console policies 2020-04-01 00:48:24 -05:00
test_rescue.py api: Block unsupported actions with vDPA 2021-03-16 20:39:27 +00:00
test_security_groups.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_server_actions.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_server_diagnostics.py Pass the actual target in server diagnostics policy 2020-04-02 19:38:54 -05:00
test_server_external_events.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_server_group_quotas.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_server_groups.py Merge "tests: Remove duplicate policy tests" 2021-06-16 15:49:27 +00:00
test_server_metadata.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_server_migrations.py Add test coverage of existing server migrations policies 2020-04-05 18:01:58 -05:00
test_server_password.py Add test coverage of existing server password policies 2020-04-05 02:47:34 +00:00
test_server_reset_state.py api: Log os-resetState as an instance action 2021-01-18 09:19:58 +00:00
test_server_start_stop.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_server_tags.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_server_topology.py objects: Introduce 'pcpuset' field for InstanceNUMACell 2020-07-14 00:38:34 +08:00
test_servers.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_services.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_shelve.py api: Block unsupported actions with vDPA 2021-03-16 20:39:27 +00:00
test_simple_tenant_usage.py tests: Remove duplicate policy tests 2021-03-29 13:06:46 +01:00
test_snapshots.py Replace 'fake' with a real project ID 2019-09-30 14:40:20 +09:00
test_suspend_server.py api: Block unsupported actions with vDPA 2021-03-16 20:39:27 +00:00
test_tenant_networks.py Add test coverage of tenant networks policies 2020-07-23 19:18:35 -05:00
test_urlmap.py tests: Remove '_FakeImageService' 2020-09-16 11:31:23 +01:00
test_versions.py Allow versioned discovery unauthenticated 2020-04-03 21:24:28 +00:00
test_volumes.py Remove (almost) all references to 'instance_type' 2021-03-29 12:24:15 +01:00