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:
parent
773489af62
commit
44382ac446
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue