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:
parent
21c6d762cc
commit
71d7538bdf
1 changed files with 14 additions and 3 deletions
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue