Specify tenant_id in TestRevisionPlugin objects

In order to avoid interferences between other tests, the objects
created in TestRevisionPlugin will be created for random
tenant IDs, generated during the execution of each test.

Change-Id: Ica7fe2379c7b1ce516ae7b0cd3959cff88a0b895
Closes-Bug: #1819740
This commit is contained in:
Rodolfo Alonso Hernandez 2019-03-12 19:27:42 +00:00
parent 773489af62
commit 44382ac446
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class TestRevisionPlugin(test_plugin.Ml2PluginV2TestCase):
self.cp = directory.get_plugin()
self.l3p = directory.get_plugin(constants.L3)
self._ctx = nctx.get_admin_context()
self._tenant_id = uuidutils.generate_uuid()
@property
def ctx(self):