Browse Source

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

changes/08/682008/1
Zuul 1 week ago
parent
commit
28f3e371aa
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

@@ -144,7 +144,7 @@ class TestRevisionPlugin(test_plugin.Ml2PluginV2TestCase):
144 144
                          expected_code=exc.HTTPPreconditionFailed.code)
145 145
 
146 146
     def test_port_ip_update_revises(self):
147
-        with self.port() as port:
147
+        with self.subnet() as subnet, self.port(subnet=subnet) as port:
148 148
             rev = port['port']['revision_number']
149 149
             new = {'port': {'fixed_ips': port['port']['fixed_ips']}}
150 150
             # ensure adding an IP allocation updates the port

Loading…
Cancel
Save