diff --git a/.pylintrc b/.pylintrc index c4feb6a1e..69cb45404 100644 --- a/.pylintrc +++ b/.pylintrc @@ -845,6 +845,9 @@ ignored-parents= # Maximum number of arguments for function / method. max-args=5 +# Maximum number of positional arguments for function / method (default=5.) +max-positional-arguments = 16 + # Maximum number of attributes for a class (see R0902). max-attributes=7 diff --git a/linters-requirements.txt b/linters-requirements.txt index fcacf67cd..a23a78d4c 100644 --- a/linters-requirements.txt +++ b/linters-requirements.txt @@ -1,4 +1,4 @@ # pep8 and flake8 requirements pre-commit >= 2.16.0 # MIT -pylint>=2.5.3 # GPL2 +pylint>=3.3.0 # GPL2 diff --git a/tobiko/openstack/neutron/config.py b/tobiko/openstack/neutron/config.py index 3947ab49a..3c602be3f 100644 --- a/tobiko/openstack/neutron/config.py +++ b/tobiko/openstack/neutron/config.py @@ -46,7 +46,7 @@ OPTIONS = [ default=None, help="List of nameservers IPv6 addresses"), cfg.IntOpt('custom_mtu_size', - default=1350, + default=1300, help=("Customized maximum transfer unit size\n" "Notes:\n" " - MTU values as small as 1000 has been seen " diff --git a/tobiko/tests/functional/openstack/neutron/test_security_group.py b/tobiko/tests/functional/openstack/neutron/test_security_group.py index e99a1ca45..bda8a7302 100644 --- a/tobiko/tests/functional/openstack/neutron/test_security_group.py +++ b/tobiko/tests/functional/openstack/neutron/test_security_group.py @@ -54,7 +54,17 @@ class StatelessSecurityGroupTest(testtools.TestCase): f"{StatelessSecurityGroupFixture.__qualname__}-{i}") self.assertEqual(ssg_name, ssg_fixture.name) ssg = neutron.list_security_groups(name=ssg_name).unique - self.assertEqual(ssg, ssg_fixture.security_group) + self.assertCountEqual(ssg.keys(), + ssg_fixture.security_group.keys()) + for k in ssg.keys(): + if k != 'security_group_rules': + self.assertEqual(ssg[k], ssg_fixture.security_group[k]) + else: + # the elements from the lists ssg['security_group_rules'] + # and ssg_fixture.security_group['security_group_rules'] + # are equal, but they could be ordered in a different way + self.assertCountEqual(ssg[k], + ssg_fixture.security_group[k]) def test_stateless_sec_group_list_parameters(self): for i, ssg_fixture in enumerate(self.ssg_fixture_list): diff --git a/upper-constraints.txt b/upper-constraints.txt index 7625367f5..16d2304dc 100644 --- a/upper-constraints.txt +++ b/upper-constraints.txt @@ -434,6 +434,7 @@ sentinels===1.0.0 seqdiag===3.0.0;python_version=='3.8' setproctitle===1.2.2 setuptools===60.9.3;python_version=='3.8' +setuptools===70.3.0;python_version>='3.9' simplegeneric===0.8.1 simplejson===3.17.6 six===1.16.0