Browse Source

Merge "Use created subnet in port generator in "test_port_ip_update_revises"" into stable/stein

changes/85/681585/1
Zuul 1 week ago
parent
commit
1622a2ace9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      neutron/tests/unit/services/revisions/test_revision_plugin.py

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

@@ -161,7 +161,7 @@ class TestRevisionPlugin(test_plugin.Ml2PluginV2TestCase):
161 161
                          expected_code=exc.HTTPPreconditionFailed.code)
162 162
 
163 163
     def test_port_ip_update_revises(self):
164
-        with self.port() as port:
164
+        with self.subnet() as subnet, self.port(subnet=subnet) as port:
165 165
             rev = port['port']['revision_number']
166 166
             new = {'port': {'fixed_ips': port['port']['fixed_ips']}}
167 167
             # ensure adding an IP allocation updates the port

Loading…
Cancel
Save