nova/nova/tests/unit/db
melanie witt 020651ad3d Replace usage of get_legacy_facade() with get_engine()
We've been seeing warnings emitted to the python 3 unit tests:

  OsloDBDeprecationWarning: EngineFacade is deprecated; please use
  oslo_db.sqlalchemy.enginefacade

which stem from our use of the get_legacy_facade() oslo.db method.

This replaces the get_legacy_facade() usage with the get_engine()
method from the transaction context manager.

Closes-Bug: #1795078

Change-Id: If1e355d6174f15a1880e97115a2cf3f9f4be837e
2018-09-28 22:10:06 +00:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_db_api.py Replace usage of get_legacy_facade() with get_engine() 2018-09-28 22:10:06 +00:00
test_migration_utils.py Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-07-25 10:45:03 +05:30
test_migrations.py Add trusted_certs to instance_extra 2018-03-29 23:00:42 -04:00
test_models.py Test that new tables don't use soft deletes 2016-02-04 09:21:31 -05:00
test_sqlalchemy_migration.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00