Merge "Test python 3.11"

This commit is contained in:
Zuul 2024-01-11 18:48:25 +00:00 committed by Gerrit Code Review
commit 24981967fc
5 changed files with 11 additions and 5 deletions

View File

@ -6,6 +6,7 @@
- rally-tox-py38
- rally-tox-py39
- rally-tox-py310
- rally-tox-py311
- rally-dsvm-tox-functional
- rally-openstack-docker-build
#- rally-task-basic-with-existing-users
@ -85,6 +86,7 @@
- rally-tox-py38
- rally-tox-py39
- rally-tox-py310
- rally-tox-py311
- rally-dsvm-tox-functional
- rally-openstack-docker-build
#- rally-task-basic-with-existing-users

View File

@ -23,6 +23,7 @@ Added
~~~~~
* Support for specifying microversions for Cinder service.
* Support Python 3.11
Removed
~~~~~~~

View File

@ -20,6 +20,7 @@ classifier =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
[files]
packages =

View File

@ -138,13 +138,13 @@ class NovaScenarioTestCase(test.ScenarioTestCase):
expected_kwargs["nics"] = (nova_scenario._pick_random_nic.
return_value)
expected_secgroups = set()
if "security_groups" in kwargs:
expected_secgroups.update(kwargs["security_groups"])
expected_secgroups = kwargs.get("security_groups", [])
if "secgroup" in context["user"]:
expected_secgroups.add(context["user"]["secgroup"]["name"])
expected_secgroups.append(
context["user"]["secgroup"]["name"]
)
if expected_secgroups:
expected_kwargs["security_groups"] = list(expected_secgroups)
expected_kwargs["security_groups"] = expected_secgroups
self.clients("nova").servers.create.assert_called_once_with(
nova_scenario.generate_random_name.return_value,

View File

@ -151,6 +151,8 @@ filterwarnings =
# pytest-cov
ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning:
ignore:::.*requests.*
# python 3.11
ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning:
# python 3.10
ignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning:
ignore:pkg_resources is deprecated as an API:DeprecationWarning: