Fix two issues that broke tobiko gates
1. mypy version needs to be bumbed to avoid [1] 2. due to a change in neutron [2], tobiko heat templates need to be updated: when an OVN router is created, its ha value is omitted [1] https://github.com/python/mypy/issues/13627 [2] https://review.opendev.org/c/openstack/neutron/+/910889 Change-Id: I6c7fb32c6fa4fe6cd892a32cfeb1780d8d8be091
This commit is contained in:
parent
14f1297c60
commit
cdd66eff32
@ -34,7 +34,7 @@ repos:
|
|||||||
files: ^tobiko/
|
files: ^tobiko/
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy.git
|
- repo: https://github.com/pre-commit/mirrors-mypy.git
|
||||||
rev: 'v0.931'
|
rev: 'v0.981'
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
files: ^tobiko/
|
files: ^tobiko/
|
||||||
|
@ -126,7 +126,7 @@ class ExternalNetworkStackFixture(heat.HeatStackFixture):
|
|||||||
@property
|
@property
|
||||||
def router_value_specs(self) -> typing.Dict[str, typing.Any]:
|
def router_value_specs(self) -> typing.Dict[str, typing.Any]:
|
||||||
value_specs: typing.Dict[str, typing.Any] = {}
|
value_specs: typing.Dict[str, typing.Any] = {}
|
||||||
if self.has_l3_ha:
|
if self.has_l3_ha and not neutron.has_ovn():
|
||||||
value_specs.update(ha=bool(self.ha))
|
value_specs.update(ha=bool(self.ha))
|
||||||
if self.distributed is not None and self.has_dvr:
|
if self.distributed is not None and self.has_dvr:
|
||||||
value_specs.update(distributed=bool(self.distributed))
|
value_specs.update(distributed=bool(self.distributed))
|
||||||
|
@ -117,6 +117,7 @@ class FloatingIPTest(testtools.TestCase):
|
|||||||
|
|
||||||
# --- test l3_ha extension ------------------------------------------------
|
# --- test l3_ha extension ------------------------------------------------
|
||||||
|
|
||||||
|
@neutron.skip_unless_is_ovs()
|
||||||
@neutron.skip_if_missing_networking_extensions('l3-ha')
|
@neutron.skip_if_missing_networking_extensions('l3-ha')
|
||||||
def test_l3_ha(self):
|
def test_l3_ha(self):
|
||||||
"""Test 'mtu' network attribute"""
|
"""Test 'mtu' network attribute"""
|
||||||
|
@ -52,6 +52,7 @@ class NetworkTest(testtools.TestCase):
|
|||||||
|
|
||||||
# --- test l3_ha extension ------------------------------------------------
|
# --- test l3_ha extension ------------------------------------------------
|
||||||
|
|
||||||
|
@neutron.skip_unless_is_ovs()
|
||||||
@neutron.skip_if_missing_networking_extensions('l3-ha')
|
@neutron.skip_if_missing_networking_extensions('l3-ha')
|
||||||
def test_l3_ha(self):
|
def test_l3_ha(self):
|
||||||
"""Test l3-ha network attribute"""
|
"""Test l3-ha network attribute"""
|
||||||
|
@ -191,8 +191,8 @@ mpmath===1.2.1
|
|||||||
msgpack===1.0.3
|
msgpack===1.0.3
|
||||||
munch===2.5.0
|
munch===2.5.0
|
||||||
murano-pkg-check===0.3.0
|
murano-pkg-check===0.3.0
|
||||||
mypy===0.931
|
mypy===0.981
|
||||||
mypy-extensions===0.4.3
|
mypy-extensions===1.0.0
|
||||||
ndg-httpsclient===0.5.1
|
ndg-httpsclient===0.5.1
|
||||||
netaddr===0.8.0
|
netaddr===0.8.0
|
||||||
netifaces===0.11.0
|
netifaces===0.11.0
|
||||||
|
Loading…
Reference in New Issue
Block a user