1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00

uv_python module: add integration tests for version format

This commit is contained in:
Mariam Ahhttouche 2026-02-12 17:27:25 +01:00
parent 21c6d762cc
commit 71d7538bdf

View file

@ -17,7 +17,7 @@
uv_python:
version: 3.14
state: present
- name: Re-install python 3.14
- name: Re-install python 3.14 # installs latest patch version for 3.14
uv_python:
version: 3.14
state: present
@ -29,7 +29,7 @@
uv_python:
version: 3.13.5
state: present
- name: Remove unexisting python 3.15
- name: Remove unexisting python 3.15 # removes latest patch version for 3.15 if exists
uv_python:
version: 3.15
state: absent
@ -44,4 +44,15 @@
- name: Remove python 3.13.5 again
uv_python:
version: 3.13.5
state: absent
state: absent
- name: Install python 3
uv_python:
version: 3
state: present
register: result
ignore_errors: true
- name: Assert invalid version failed
ansible.builtin.assert:
that:
- result is failed
- "'Expected X.Y or X.Y.Z' in result.msg"