Browse Source

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
Rodolfo Alonso Hernandez 1 month ago
parent
commit
44382ac446
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      neutron/tests/unit/services/revisions/test_revision_plugin.py

+ 1
- 0
neutron/tests/unit/services/revisions/test_revision_plugin.py View File

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

Loading…
Cancel
Save