Update ansible versions used in unittesting

We were pinning ansible to 2.8 for unittesting but Zuul currently only
supports Ansible 8 and 9. Pin Ansible to 8 in order to better test what
we expect people are using in the wild. This will also enable the
testing of Zuul and Ansible and Zuul Jobs with newer python versions
like 3.12.

In order to run testing with Ansible 8 intsead of 2.8 we drop testing
against python2.7 and python3.8 as neither of them can install an
Ansible version this new.

Change-Id: Icd563def65dcfd40b174218cc4e2b94e0230c374
This commit is contained in:
Clark Boylan 2024-05-30 13:23:26 -07:00
parent 917e3b880d
commit 1f3567396e
4 changed files with 1 additions and 16 deletions

View File

@ -1,3 +0,0 @@
soupsieve < 2.0; python_version < '3.5'
# oauthlib 3.1.1 supports only py > 3.5
oauthlib < 3.1.1;python_version < '3.6'

View File

@ -7,7 +7,7 @@
# by 4 weeks to give people time to update before any roles start # by 4 weeks to give people time to update before any roles start
# depending on new features. # depending on new features.
ansible>=2.8,<2.9 ansible>=8,<9
stestr>=1.0.0,<3.0.0;python_version<'3.5' # Apache-2.0 stestr>=1.0.0,<3.0.0;python_version<'3.5' # Apache-2.0
stestr>=1.0.0;python_version>='3.5' # Apache-2.0 stestr>=1.0.0;python_version>='3.5' # Apache-2.0

View File

@ -14,12 +14,6 @@ deps = -r{toxinidir}/test-requirements.txt
commands = stestr run {posargs} commands = stestr run {posargs}
stestr slowest stestr slowest
[testenv:py27]
deps =
-r{toxinidir}/test-requirements.txt
-c{toxinidir}/test-constraints.txt
basepython = python2.7
[testenv:bindep] [testenv:bindep]
# Do not install any requirements. We want this to be fast and work even if # Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system # system dependencies are missing, since it's used to tell you what system

View File

@ -6,9 +6,6 @@
check: check:
jobs: jobs:
- zuul-tox-docs - zuul-tox-docs
- tox-py27
- tox-py38:
nodeset: ubuntu-focal
- tox-py39: - tox-py39:
nodeset: ubuntu-focal nodeset: ubuntu-focal
- tox-py310: - tox-py310:
@ -18,9 +15,6 @@
gate: gate:
jobs: jobs:
- zuul-tox-docs - zuul-tox-docs
- tox-py27
- tox-py38:
nodeset: ubuntu-focal
- tox-py39: - tox-py39:
nodeset: ubuntu-focal nodeset: ubuntu-focal
- tox-py310: - tox-py310: