Use created subnet in port generator in "test_port_ip_update_revises"
We are hitting sometimes a problem in "test_port_ip_update_revises" [1].
This happens because the port created doesn't belong to the previously
created subnet. We need to enforce that the port is created in the
subnet specifically created in this test.
[1]http://logs.openstack.org/69/650269/12/check/openstack-tox-lower-constraints/7adf36e/testr_results.html.gz
Conflicts:
neutron/tests/unit/services/revisions/test_revision_plugin.py
Change-Id: I399f100fe30b6a03248cef5e6026204d4d1ffb2e
Closes-Bug: #1828865
(cherry picked from commit 872dd7f484
)
This commit is contained in:
parent
1199207e7d
commit
3d249a8016
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue