nova/nova/tests/unit/objects
Stephen Finucane 612b83ee5d db: Don't rely on autocommit behavior
Resolve the following RemovedIn20Warning warning:

  The current statement is being autocommitted using implicit
  autocommit, which will be removed in SQLAlchemy 2.0. Use the .begin()
  method of Engine or Connection in order to use an explicit transaction
  for DML and DDL statements.

I genuinely expected this one to be more difficult to resolve, but we
weren't using this as much as expected (thank you, non-legacy
enginefacade).

With this change, we appear to be SQLAlchemy 2.0 ready.

Change-Id: Ic43c21038ee682f9733fbde42c6d24f8088815fc
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-04-08 15:57:06 +01:00
..
__init__.py
test_aggregate.py Use NotificationFixture for legacy notifications too 2021-05-24 11:00:59 +01:00
test_block_device.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_build_request.py Merge "Fix misuse of nova.objects.base.obj_equal_prims" 2019-08-13 22:08:39 +00:00
test_cell_mapping.py Fix formatting non-templated cell URLs with no config 2018-10-16 16:11:17 -04:00
test_compute_node.py Prevent deletion of a compute node belonging to another host 2021-08-20 14:57:45 +01:00
test_console_auth_token.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_diagnostics.py Added nova objects for intance diagnostics 2017-05-30 00:39:44 +04:00
test_ec2.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_external_event.py Use EnumField for instance external event name 2015-05-20 22:16:52 +00:00
test_fields.py tests: Poison os.uname 2021-02-20 15:32:15 +00:00
test_flavor.py Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
test_host_mapping.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_hv_spec.py objects: Move 'vm_mode' to 'fields.VMMode' 2016-11-25 16:19:44 +00:00
test_image_meta.py object/notification for Adds Pick guest CPU architecture based on host 2022-02-24 12:06:55 -05:00
test_instance.py db: Don't rely on autocommit behavior 2022-04-08 15:57:06 +01:00
test_instance_action.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_instance_device_metadata.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_instance_fault.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_instance_group.py Avoid unnecessary joins in InstanceGroup.get_hosts 2019-05-23 11:14:55 -04:00
test_instance_info_cache.py Raise InstanceNotFound on fkey constraint fail saving info cache 2022-02-07 20:11:59 +00:00
test_instance_mapping.py Raise InstanceMappingNotFound if StaleDataError is encountered 2020-06-24 20:29:44 +00:00
test_instance_numa.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_instance_pci_requests.py objects: Remove 'NovaObjectDictCompat' from 'InstancePCIRequest' 2022-03-23 15:16:00 +00:00
test_keypair.py objects: Stop querying the main DB for keypairs 2021-10-18 20:26:18 +01:00
test_migrate_data.py objects: Fix VIFMigrateData.supports_os_vif_delegation setter 2021-06-18 18:14:39 +01:00
test_migration.py Revert "Revert resize: wait for events according to hybrid plug" 2022-01-31 13:10:59 +00:00
test_migration_context.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_monitor_metric.py Fix MonitorMetric obj_make_compatible 2016-09-12 14:10:41 +00:00
test_network_request.py smartnic support - new vnic type 2021-08-05 15:58:25 +08:00
test_numa.py libvirt: start tracking NUMACell.socket for hosts 2021-02-21 11:30:07 -05:00
test_objects.py object/notification for Adds Pick guest CPU architecture based on host 2022-02-24 12:06:55 -05:00
test_pci_device.py [yoga] Add PCI VPD Capability Handling 2022-02-01 17:31:04 +03:00
test_pci_device_pool.py Return empty PciDevicePoolList obj instead of None 2015-09-11 21:20:01 +02:00
test_quotas.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_request_spec.py objects: Remove 'NovaObjectDictCompat' from 'InstancePCIRequest' 2022-03-23 15:16:00 +00:00
test_resource.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_security_group.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_selection.py Add Selection.availability_zone field 2019-10-02 13:39:24 -04:00
test_service.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_tag.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_task_log.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_trusted_certs.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01: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 db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_volume_usage.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00