raoufnezhad
c92faae056
Merge f09c2a10bc
into 70b5e362f9
2025-03-30 10:27:19 +00:00
mayabi
f09c2a10bc
rollback
2025-03-30 13:57:12 +03:30
mayabi
aa1b757c3d
add vm_id in result output
2025-03-30 13:47:31 +03:30
raoufnezhad
1e4efeea01
fix trailing-whitespace error in test_proxmox_backup_schedule.py
2025-03-30 13:17:57 +03:30
raoufnezhad
1b22c92ae8
add mock input in test_proxmox_backup_schedule.py
2025-03-30 13:12:49 +03:30
mayabi
06f469e38a
replace mock and compat with code from community.internal_test_tools
2025-03-30 12:32:00 +03:30
mayabi
a12300171e
debug assert expression
2025-03-30 12:23:25 +03:30
mayabi
b643de123c
replace mock and compat with code from community.internal_test_tools
2025-03-30 11:37:53 +03:30
mayabi
0c747bb7fb
remove whitespaces
2025-03-30 10:39:31 +03:30
mayabi
070d60ba30
debug
2025-03-30 10:18:38 +03:30
Felix Fontein
e5e335348a
Simplify YAML callback tests ( #9945 )
...
Simplify YAML callback tests.
2025-03-29 10:47:53 +01:00
Abhijeet Kasurde
ec38a82ef1
tests: enable copr tests ( #9867 )
...
EOL CI / EOL Sanity (Ⓐ2.15) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Waiting to run
import-galaxy / Test to import built collection artifact with Galaxy importer (push) Waiting to run
Verify REUSE / check (push) Waiting to run
[WIP] tests: enable copr tests
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-03-23 14:51:21 +01:00
Felix Fontein
410cf72aec
Unit tests: replace mock and compat with code from community.internal_test_tools ( #9921 )
...
EOL CI / EOL Sanity (Ⓐ2.15) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Has been cancelled
import-galaxy / Test to import built collection artifact with Galaxy importer (push) Has been cancelled
Verify REUSE / check (push) Has been cancelled
* Replace compat with equivalent from community.internal_test_tools.
* Replace mock with equivalent from community.internal_test_tools.
2025-03-22 14:12:56 +01:00
Felix Fontein
8ab8010b6d
Use more unit test utils from community.internal_test_tools ( #9918 )
...
* Make conftest's patch_ansible_module use the context manager from .utils.
* Fix test dependencies.
* Use module mock utils from community.internal_test_tools.
* Use DataDictLoader from community.internal_test_tools.
* Use trust util from community.internal_test_tools.
2025-03-22 13:12:31 +01:00
Felix Fontein
6a2d9ccd99
sysrc: extend the list of FreeBSD releases where the jail test fails ( #9900 )
...
Extend the list of FreeBSD releases where the jail test fails.
2025-03-18 21:58:43 +01:00
raoufnezhad
4ce8f1a29f
fix Err closing bracket does not match in test_proxmox_backup_schedule.py
2025-03-18 10:38:54 +03:30
raoufnezhad
163bca3353
fix PEP8 Err in test_proxmox_backup_schedule.py
2025-03-17 13:54:59 +03:30
raoufnezhad
8c3ff95648
Update test_proxmox_backup_schedule.py
2025-03-17 13:30:38 +03:30
raoufnezhad
2b58f5518b
Update test_proxmox_backup_schedule.py
2025-03-17 12:29:53 +03:30
Nocchia
4a2cc71141
systemd_info - extend support to timer unit ( #9891 )
...
* systemd_info - extend support to timer unit
* systemd_info - add changelogs fragments
* systemd_info - fix description and base_props
2025-03-16 21:21:07 +01:00
raoufnezhad
c146625912
Update test_proxmox_backup_schedule.py
2025-03-15 13:12:50 +03:30
Abhijeet Kasurde
e5eac9fed1
homebrew_cask: Handle unusual brew version strings ( #9881 )
...
* Use regex to parse unusual brew version strings
Fixes : #8432
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-03-15 08:04:06 +01:00
Abhijeet Kasurde
dd0a2cbff9
sudoers: display stderr raised while validation ( #9871 )
...
* sudoers: display stderr raised while validation
* Print stdout and stderr raised from sudoers validation
Fixes : #9674
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-03-15 07:36:54 +01:00
Nocchia
3bd0ab4a49
systemd_info - add wildcards support ( #9821 )
...
* systemd_info - add wildcards support
* systemd_info - add wildcards fragments
* systemd_info - improved dedicated functions
* systemd_info - improved code and functions for better maintenance and timing
* fix unitname description
* removed redundancies and keys() in lists, replaced fnmatch with filter and run_command with cmdrunner
* systemd_info - add new cmdrunner
* systemd_info - fix runner
* systemd_info - fix env in runner
* systemd_info - rename runner and get_version
* systemd_info - change args runner, fix fragment, add botmeta
* systemd_info - merge type args
2025-03-15 07:36:16 +01:00
Felix Fontein
fdbc06c714
CI: Add FreeBSD 13.5 ( #9872 )
...
Add FreeBSD 13.5.
2025-03-12 07:28:25 +01:00
Alexei Znamensky
710dc5df86
pacemaker unit test: passing null with UTHelper ( #9858 )
2025-03-11 16:14:41 +13:00
Abhijeet Kasurde
86dea88cb6
dnf_versionlock: add support for Fedora 41 and dnf5 ( #9846 )
...
Fixes : #9556
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-03-09 17:23:40 +01:00
Florian Apolloner
7d5357d74c
Fix roles/policies normalization in consul_token. ( #9845 )
...
* Fix roles/policies normalization in consul_token.
* Update changelogs/fragments/9845-consul_token_idempotency.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-03-09 17:22:50 +01:00
Felix Fontein
eff25c8a6e
Fix/improve tests ( #9859 )
...
* Fix tests.
* Improve callback tests.
2025-03-09 16:48:36 +01:00
Felix Fontein
4727fb77b3
cmd_runner tests: fix reliance on unspecified behavior ( #9853 )
...
Fix reliance on unspecified behavior.
2025-03-09 08:49:23 +01:00
Felix Fontein
9df8465476
Improve/fix unit tests ( #9850 )
...
* Improve/fix tests.
* Fix cargo test.
2025-03-08 16:26:09 +01:00
Felix Fontein
c46575cf06
Simplify module_utils unit tests ( #9842 )
...
Simplify module_utils unit tests.
2025-03-07 18:25:24 +01:00
Felix Fontein
a1781d09dd
Unit tests: make set_module_args() a context manager, and remove copies of it in some tests ( #9838 )
...
Make set_module_args() a context manager, and remove copies of set_module_args().
Prepares for Data Tagging.
2025-03-07 07:21:03 +01:00
Dexter
402f725424
add pacemaker_resource plugin ( #9531 )
...
* Add initial pacemaker resource
* Additional fixes on pacemaker_resource
* Fix up module parameters
* fix doc and lint
* fix group command build
* Apply suggestions for removing status and improve descriptions
* fix cmd builder list
* Apply suggestions and add initial unit tests
* Fix unit tests expected output
* Initial refactor on pacemaker resource
Refactorization on pacemaker_resource to utilize module helpers.
* Apply suggestions and fix up initial unit test
* Apply suggestions from code review
* Fix pep8 format for utils
* Fix unit tests for pacemaker resource
* Add botmeta maintainers for new moduules
* Apply suggestions from code review
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
* Apply unit test suggestion
* Add disable and enable states for pacemaker_resource
* Fix state names and add cli_action for runner
* Remove unnecessary variables
* Fix documentation example playbook
* Fix IP Address for resource_option
* Refactor and remove unnecessary facts
* Apply suggestions from code review
---------
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-03-05 21:08:42 +01:00
brad2014
c43289b8f1
homebrew: Do not crash when package names include tap prefix. ( #9803 )
...
* homebrew: Do not crash when package names include tap prefix.
Fixes #9777
* homebrew: PR #9803 minor update: removed trailing whitespace
* Update changelogs/fragments/9777-homebrew-fix-crash-when-packages-include-tap.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Apply suggestions from code review
Co-authored-by: Thibaut Decombe <68703331+UnknownPlatypus@users.noreply.github.com>
* Update plugins/modules/homebrew.py
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Thibaut Decombe <68703331+UnknownPlatypus@users.noreply.github.com>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-03-05 21:07:08 +01:00
Felix Fontein
77dc086896
homebrew_services: skip tests on macOS 13.2 and 14.3 ( #9828 )
...
Skip tests on macOS 13.2 and 14.3.
2025-03-03 21:22:31 +01:00
raoufnezhad
20069dce8c
Fix trailing whitespace err in test_proxmox_backup_schedule.py
2025-03-03 09:02:08 +03:30
raoufnezhad
cf99474d1c
Update test_proxmox_backup_schedule.py
2025-03-03 08:32:47 +03:30
Felix Fontein
dd4268e0d9
CI: Add macOS 15.3 ( #9805 )
...
* Add macOS 15.3.
* Install setuptools on macOS 15.
2025-02-26 21:30:22 +01:00
rt-vnx
e8e3e5c2b0
Allow Xen Host and/or Xen VM names instead of their UUIDs ( #9787 )
...
* Allow using Xen Host and/or Xen VM names instead of their UUIDs for inventory
* xen_orchestra inventory plugin allow using vm and host names instead of UUID inventory
* Update changelog fragment with correct PR number
* Set missing inventory attributes in unit test
* Add version_added suggestion as per github comments
* Description update.
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-02-24 06:09:51 +01:00
Nocchia
8425464c0a
Add new systemd_info module ( #9764 )
...
* add systemd_info module
* fix object results
* apply review changes
* apply module change and add doc_fragments
* removed use_unsafe_shell and doc_fragments/systemd
* fix unitname description doc
* fixed doc, replaced systemctl show syntax, added base prop result doc
* fix documentation
* fix RV values in description
* fix RV() description values
* add get_bin_path try/fail and remove list()
* fix doc, removed try block
* add Archlinux in integration test
2025-02-23 17:39:52 +01:00
Felix Fontein
217a18839d
locale_gen: enable tests for Arch Linux, make sure they don't even try to run on RHEL and Fedora VMs ( #9796 )
...
Enable locale_gen tests for Arch Linux, make sure they don't even try to run on RHEL and Fedora VMs.
2025-02-23 15:17:49 +01:00
Stephen Bradshaw
961c9b7f4c
Ssh config other options ( #9684 )
...
* Add other_options support to ssh_config module
* Changelog fragment
* Fix missing and modified stuff
* Minor changes
* Update fragment with PR URL
* Fix PEP8 issue
* Fix idempotency issue
* Update changelogs/fragments/ssh_config_add_other_options.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/ssh_config.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/ssh_config.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Incorporate suggestions
* Missed removing str conversion
* PEP8
* Update plugins/modules/ssh_config.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Add fail condition, fix codestyle
* Force lower case key values only
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-02-22 08:41:05 +01:00
Felix Fontein
a3fd357d81
Make apache2_mod_proxy work with Python 3, half-way modern Apache 2 versions, and add basic tests ( #9762 )
...
* Move Apache 2 installation to setup role.
* Make module work with Python 3.
* Add basic tests.
* Add changelog fragment.
* Simplify change.
* Pass referer.
2025-02-18 07:12:44 +01:00
Jonas
410999dffa
bitwarden lookup: add options to filter by collection_name and validate number of results ( #9728 )
...
* feat(lookups/bitwarden): add collection_name filter
* feat(lookups/bitwarden): add result_count check
* docs(lookups/bitwarden): add changelog fragment
* Update changelogs/fragments/9728-bitwarden-collection-name-filter.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/lookup/bitwarden.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/lookup/bitwarden.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/lookup/bitwarden.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/lookup/bitwarden.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* fix(lookups/bitwarden): fix result_count check for multiple terms
* fix(lookups/bitwarden): Enforce mutual exclusion of 'collection_name' and 'collection_id'
* formatting(lookups/bitwarden): remove trailing whitespace
* Update plugins/lookup/bitwarden.py
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
* Update plugins/lookup/bitwarden.py
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
* Update plugins/lookup/bitwarden.py
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
* formatting(lookups/bitwarden): remove trailing whitespace
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-02-16 12:11:04 +01:00
Mark Armstrong
910c57aaa0
keycloak: repair integration tests by removing jinja2 templating from conditionals ( #9726 ) ( #9727 )
...
* fix: remove jinja2 templating from conditionals in keycloak_role module integration tests (#9726 )
* fix: remove jinja2 templating in conditional in keycloak clientsecret info integration test (#9726 )
This test needs a further fix; see #9744 . Left for a future PR for now.
* fix: remove jinja2 templating in conditional in keycloak clientsecret regenerate integration test (#9726 )
* chore: remove jinja2 templating in conditional in keycloak user federation integration test (#9726 )
These instances of templating were not causing failures,
but this removes the warnings.
* chore: remove jinja2 templating in conditional in keycloak user rolemapping integration test (#9726 )
These instances of templating were not causing failures,
but this removes the warnings.
* docs: add changelog fragment (#9726 )
* docs: repair changelog fragment yaml (#9726 )
* docs: actually repair changelog fragment yaml (#9726 )
* chore: remove changelog fragment for test only pr (#9726 )
2025-02-15 22:53:23 +13:00
raoufnezhad
4f8a3efe22
Merge branch 'main' into pb_schedule
2025-02-15 09:09:45 +03:30
Alexei Znamensky
8e324881a6
rename test helper ( #9736 )
...
* rename test helper
* update ignore lines
2025-02-15 18:26:25 +13:00
Marcel Freundl
1beee87961
lvg: Add parameter to disable removal of extra physical volumes ( #9698 )
...
* Add parameter to disable removal of extra physical volumes
Signed-off-by: Massl123 <Massl123@users.noreply.github.com>
* Set PR number in changelog fragment
Signed-off-by: Massl123 <Massl123@users.noreply.github.com>
* Fix tests
Signed-off-by: Massl123 <Massl123@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
* Add comment in pvs
Signed-off-by: Massl123 <Massl123@users.noreply.github.com>
---------
Signed-off-by: Massl123 <Massl123@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-02-10 21:51:45 +01:00
Andreas Karis
a842a26849
Update nmcli.py to support VRF commands ( #9658 )
...
Adding VRF support and documentation to the nmcli module
Signed-off-by: Andreas Karis <ak.karis@gmail.com>
2025-02-10 21:50:30 +01:00