Test python 3.11

As per the current release tested runtime, we
need to test python 3.8 to python 3.11 so using the
generic python testing template which run the python
versions jobs as per the current release runtime.

Also, updating the same in python classifier in setup.cfg

Change-Id: I647dad04f5b457f396508361d68c88880d1258ca
This commit is contained in:
Ghanshyam Mann 2024-01-09 19:24:30 -08:00 committed by Andrey Kurilin
parent 615961558d
commit eca93d05cb
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

@ -149,6 +149,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: