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

This commit is contained in:
Zuul 2019-09-09 23:54:52 +00:00 committed by Gerrit Code Review
commit 28f3e371aa
1 changed files with 1 additions and 1 deletions

View File

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