Skip to content

Commit

Permalink
ansible: bump version to 2.12 to 2.15
Browse files Browse the repository at this point in the history
- Ansible 2.9 is not supported since May 2022
- requirements versions filter removed to use latest versions

Signed-off-by: Teoman ONAY <[email protected]>
  • Loading branch information
asm0deuz committed Dec 6, 2023
1 parent 89f7093 commit e4cb989
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
testinfra>=3,<4
pytest-xdist==1.28.0
pytest>=4.6,<5.0
ansible>=2.9,<2.10,!=2.9.10
Jinja2>=2.10
pytest-testinfra
pytest-xdist
pytest
ansible>4,<9
Jinja2
2 changes: 1 addition & 1 deletion tests/functional/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
def node(host, request):
ansible_vars = host.ansible.get_variables()

if request.node.get_closest_marker("no_client") and ansible_vars['group_names'] == ['clients']:
if request.node.get_closest_marker("no_client") and 'clients' in ansible_vars['group_names']:
pytest.skip("Not a valid test for client nodes")

if request.node.get_closest_marker("client") and 'clients' not in ansible_vars['group_names']:
Expand Down
3 changes: 3 additions & 0 deletions tests/functional/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[pytest]
markers =
admin: for admin nodes
no_client: for non client nodes
client: for client nodes
osd: for osd nodes
10 changes: 5 additions & 5 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
testinfra>=3,<4
pytest-xdist==1.28.0
pytest>=4.6,<5.0
ansible>=2.9,<2.10,!=2.9.10
Jinja2>=2.10
pytest-testinfra
pytest-xdist
pytest
ansible>4,<9
Jinja2

0 comments on commit e4cb989

Please sign in to comment.