Switch to new engine facade in revision plugin's UT

Partially-Implements blueprint: enginefacade-switch

Change-Id: Id92a0f2383f9d4c022c4cb802eb6524b68bc288f
This commit is contained in:
Slawek Kaplonski 2020-03-26 04:43:43 +01:00
parent 890392a388
commit 08d0e6e734
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class TestRevisionPlugin(test_plugin.Ml2PluginV2TestCase):
def test_handle_expired_object(self):
rp = directory.get_plugin('revision_plugin')
with self.port():
with self.ctx.session.begin():
with db_api.CONTEXT_WRITER.using(self.ctx):
ipal_objs = port_obj.IPAllocation.get_objects(self.ctx)
if not ipal_objs:
raise Exception("No IP allocations available.")