1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 13:19:13 +00:00
Commit graph

1438 commits

Author SHA1 Message Date
Mariam Ahhttouche
e221795cf8 Update tests to install uv using pip and fix some tests 2026-03-07 17:35:00 +00:00
Mariam Ahhttouche
a21646d398 Handle case when version given is an empty string in uv_python module 2026-03-07 16:10:03 +00:00
Mariam Ahhttouche
97bda3fb5e Make uv_python tests more deterministic 2026-03-07 16:10:03 +00:00
Mariam Ahhttouche
9697c31e8d Add aliases to skip running tests on freebsd and rhel 2026-03-07 16:10:03 +00:00
Mariam Ahhttouche
58616656ce Remove unecessary integration test for uv_python 2026-03-07 16:09:34 +00:00
Mariam Ahhttouche
22147bd913 Updates test aliases 2026-03-06 13:30:53 +00:00
Mariam Ahhttouche
4a4ec34145 Fix typing.Tuple is deprecated linting error 2026-03-06 12:46:50 +00:00
Mariam Ahhttouche
d52fdc4c83 make integration tests more deterministic and fix typo 2026-03-05 15:49:38 +01:00
Mariam Ahhttouche
f3475ae023 make integration tests more deterministic 2026-03-05 12:17:51 +01:00
Mariam Ahhttouche
5033a4f922 Use StrictVersion instead of packaging Version 2026-02-27 17:18:48 +01:00
Mariam Ahhttouche
ed0eb833f7 Add integration tests' aliases file for uv_python module 2026-02-25 20:39:24 +01:00
Mariam Ahhttouche
1858a586b4
Fix typo
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-02-25 20:06:23 +01:00
Mariam Ahhttouche
19043541f1 Fix yamllint errors 2026-02-25 08:33:22 +01:00
Mariam Ahhttouche
14b3f86c45 uv_python module: pin uv version used in tests 2026-02-24 11:32:55 +01:00
Mariam Ahhttouche
77b04b4885 uv_python module: improve tests 2026-02-23 14:31:12 +01:00
Mariam Ahhttouche
a35e1216f9 uv_python module: clean tests 2026-02-23 08:05:14 +01:00
Mariam Ahhttouche
8181aa0343 uv_python module: update integration tests 2026-02-23 06:53:46 +01:00
Mariam Ahhttouche
5b59f830a2 uv_python module: improve integration tests 2026-02-21 14:23:58 +01:00
Mariam Ahhttouche
1371cf2fcb uv_python module: fix integration tests 2026-02-20 17:06:08 +01:00
Mariam Ahhttouche
ae5eeaffe2 uv_python module: add python version to module return values for present state 2026-02-19 20:42:12 +01:00
Mariam Ahhttouche
afbe833c02 uv_python module: return commands' stderr and return code as a variable of stdout 2026-02-17 16:46:42 +01:00
Mariam Ahhttouche
54e7a639ef uv_python module: refactor code 2026-02-17 15:17:02 +01:00
Mariam Ahhttouche
5819c8eb7b uv_python module: improve check mode for present state to fail when no patch version is available 2026-02-17 14:43:12 +01:00
Mariam Ahhttouche
571a5b5161 uv_python module: improve integration tests 2026-02-16 16:13:33 +01:00
Mariam Ahhttouche
cfecbc6d7b uv_python module: refactor code 2026-02-16 14:31:58 +01:00
Mariam Ahhttouche
ce10eba574 uv_python module: add integration test for case when specified version does not exist 2026-02-16 14:28:57 +01:00
Mariam Ahhttouche
7610b82e00 uv_python module: add integration test for when uv executable does not exist 2026-02-16 11:38:07 +01:00
Mariam Ahhttouche
c40054f3f6 uv_python module: improve integration tests 2026-02-16 11:17:23 +01:00
Mariam Ahhttouche
473f758ec1 uv_python module: improve absent state check mode and add corresponding integration test 2026-02-13 17:10:46 +01:00
Mariam Ahhttouche
87ad81992d uv_python module: add integration tests for check mode 2026-02-13 15:49:15 +01:00
Mariam Ahhttouche
0f586328bc uv_python module: add integration tests for latest state 2026-02-13 15:42:09 +01:00
Mariam Ahhttouche
71d7538bdf uv_python module: add integration tests for version format 2026-02-12 17:27:25 +01:00
Mariam Ahhttouche
458cd11c42 uv_python module: add integration tests 2026-02-12 10:47:21 +01:00
Mariam Ahhttouche
731d7b571f uv_python module: add integration tests 2026-02-11 17:20:48 +01:00
Felix Fontein
e853a6f39b
redis_info: adjust tests for Arch Linux (#10129) 2025-05-14 07:23:59 +02:00
Felix Fontein
86507e8aca
lxc: fix unit tests (#10115)
Don't compare strings passed through set_option()/get_option() with 'is'.
2025-05-10 13:22:54 +02:00
Sibe Bleuzé
43eb342b18
ini_file: fix unmatched whitespace before comment (#10102)
* ini_file: fix unmatched whitespace before comment

* Add changelog fragment

* Update changelog fragment: bugfixes to minor_changes

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: sibebleuze <>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-05-10 13:21:36 +02:00
Felix Fontein
fcd2d8b7b7
Fix deprecation test (#10111)
Fix deprecation test.
2025-05-06 23:02:24 +02:00
Alexei Znamensky
a042721c82
pipx/pipx_info: fix scheduled tests (#10096) 2025-05-03 12:31:04 +12:00
Timur Gadiev
7e4d6aa541
Add new filter plugin: 'to_prettytable' (#9954)
* Add new action plugin 'prettytable'

* Add integration tests for 'prettytable' plugin

* Added BOTMETA details

* Add COPYRIGHT details

* Add 'to_prettytable' filter plugin and tests

* fix: 🐛 Fix add_rows method

* Add changelog fragment

* Remove changelog fragments

* Apply code review suggestions

* Correct BOTMETA and lint

* refactor: 🔥 Remove unnecessary code parts

* fix: Fix contact details

* Correct kwargs.pop and column_alignments description

* Remove 'trim' filter from conditionals in tests

* Add additional validations and tests

* fix: Apply corrections after review

* refactor: Optimize code and make some refactoring

* fix: Add some minor corrections

* fix: add column_alignments validation and tests

* Update version_added to "10.7.0"

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* refactor: Use TypeValidationError class for type checking

* refactor: Apply suggestions

* fix: documentation indent

* Apply suggestion

Co-authored-by: Felix Fontein <felix@fontein.de>

* style: Adjust indentation

Co-authored-by: Felix Fontein <felix@fontein.de>

* style: Correction of examples

* fix: Commit suggestion

Co-authored-by: Felix Fontein <felix@fontein.de>

* fix: Commit suggestion

Co-authored-by: Felix Fontein <felix@fontein.de>

* feat: Add correct parameters validation for empty data

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-05-02 06:16:45 +02:00
Felix Fontein
60f1169d42
CI: Use community.crypto 2.x.y for ansible-core 2.16 and before (#10086)
* Use community.crypto 2.x.y for ansible-core 2.16 and before.

* Also use stable-2 for ubuntu2004 tests.
2025-05-01 07:57:31 +02:00
Marcos Alano
373334d668
Add xdg_mime module (#10007)
* Add version of xdg_mime module

* Fix xdg_mime_get since the command is different

* Add query parameter

* Fix order of parameters

* Add myself to BOTMETA

* Add unit tests

* Fix the way we deal when there is no handler set

* Improve documentation

* Remove unused import

* Fix documentation

* Strip xdg-mime from version string

* Fix information about version

* Add error message sample

* Add test to invalid handler

* Add support to multiple mime-types

* Change the output parameter from handlers to handler

* Change tests related to multiple mime-type support

* Small fixes

* Stop using constant to enable changed state

* Add before_handlers and after_handlers

* Change tests to use before and after structures

* Add a stronger message about using a non-installed handler

* Manage some edge cases

* Change error message to match the new value

* Add some fixes

* Change some tests

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Remove a blank line

* Remove single quote

* Add xdg-mime to the version in the mocks

* Remove after_handlers and make code simpler

* Update tests to work without after_handlers

* Remove diff_params and clean output_params

* Make mime_type plural since it supports multiple items

* Move the handler check to module init

* Use anchors in the test to make yaml simpler

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Add blank line to separe examples

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Add a small homage to my late grandma

* Update plugins/modules/xdg_mime.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Fix pep8 problem with the homage

* Remove trailing whitespace

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-04-26 12:34:03 +02:00
Felix Fontein
a720e99482
Mark supervisorctl tests as unstable (#10057)
Mark supervisorctl tests as unstable.
2025-04-22 21:59:17 +02:00
Felix Fontein
2a5abab738
Remove blanket skips for Python 3 in CI (#10043)
* Remove blanket skips for Python 3 in CI.

* Try to fix hg tests.

* Disable hg tests.

* Drop restriction of supervisor to <4.0.0.

This was introduced in https://github.com/ansible/ansible/pull/54935.

* Make tests work with supervisorctl 4.0.0.

According to https://supervisord.org/changes.html#id12,
"supervisorctl will now set its exit code to a non-zero value when an error condition occurs."
I'm not sure why a stopped service in 'status' constitutes an error condition,
but whatever 🤷...

* Use correct Python executable.

* Skip RHEL/macOS; diff on config write.

* Skip CentOS 7 and OpenSuSE on ansible-core 2.16.
2025-04-21 16:23:55 +02:00
Felix Fontein
3ee55c6828
Use antsibull-nox instead of extra sanity test runner and extra workflows (#10022)
* Use antsibull-nox instead of extra sanity test runner and extra workflows.

* Avoid sys.argv[0].
2025-04-21 13:28:49 +02:00
s1github
ce421dbd7d
Allowing uppercase tags in proxmox & proxmox_kvm (#10024)
* Allowing uppercase tags in proxmox & proxmox_kvm

* Fix #9895 : fixes the 'not a valid tag' error message when the VM or container tag contains uppercase characters

* Add PR URL to changelog fragment.

---------

Co-authored-by: s1githug <sgithug@free.fr>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-04-21 12:34:56 +02:00
Rui Lopes
96b493002c
add the wsl connection plugin (#9795)
* add the wsl connection plugin

* move the banner_timeout required paramiko version to its own line

* document the proxy_command required paramiko version

* document the timeout required paramiko version

* simplify the sending of the become_pass value

* add Connection.__init__ type hints

* add MyAddPolicy.missing_host_key type hints

* normalize the Connection._parse_proxy_command replacers dict values to the str type

* add the user_known_hosts_file option

* modify the private_key_file option type to path
2025-04-19 09:01:36 +02:00
desand01
a8b977320c
Fix Keycloak authentication flow configuration issues (#9987)
* Add delete_authentication_config method and integrate it into create_or_update_executions

* typo

* Sanity

* Add integration tests for keycloak_authentication module with README, tasks, and variables

* Add copyright and license information to access_token.yml

* Sanity

* Refactor Keycloak integration tests: streamline README, update access token task, and enhance variable management

* Maj changelogs fragments

---------

Co-authored-by: Andre Desrosiers <andre.desrosiers@ssss.gouv.qc.ca>
2025-04-19 09:00:44 +02:00
mk2km
80252b29f8
Add zypper skip post errors feature (#9973)
* Add zypper skip post errors feature

* Add feature to handle zypper return code 107 with skip_post_errors (default: false).
* Add integration test to verify the skip_post_errors flag.
* Add changelog fragment

Issue: #9972
Issue-Ref: https://github.com/ansible-collections/community.general/issues/9972

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/zypper.py

* Update changelogs/fragments/9972-zypper-skip-post-errors.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update tests/integration/targets/zypper/tasks/zypper.yml

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-04-19 09:00:00 +02:00
Emanuele Bernardi
42a161abf5
param pkcs12_alias and cert_alias to be optional in java_cert module (#9970)
* changed pkcs12_alias and cert_alias to be optional when importing pkcs12 certificate in keystore

* Add changelog fragment

* Update changelogs/fragments/9970-pkcs12_alias_cert_alias_optional.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update changelogs/fragments/9970-pkcs12_alias_cert_alias_optional.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2025-04-16 20:52:11 +02:00