summaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ansible-test - Update utility containers (#84545)Matt Clay2025-01-113-3/+3
|
* fix warnings about reserved variable names to cover all sources (#84432)Brian Coca2025-01-107-5/+50
| | | | | | | Also remove redundant check from tqm Now covers module output (set_fact/include_vars) Includes play objects at any stage (tasks that error were not covered) Added tests, moved them to role structure
* Use ECR Public for container test (#84537)Matt Clay2025-01-101-1/+1
|
* ansible-test - Fix FreeBSD instance CA certs (#84529)Matt Clay2025-01-081-0/+1
| | | | | Some versions and architectures come with `ca_root_nss` pre-installed. However, at least FreeBSD 13.4 on aarch64 does not. This change ensures the certificates will always be installed.
* ansible-test - Replace FreeBSD 14.1 with 14.2 (#84527)Matt Clay2025-01-083-11/+5
| | | | | * ansible-test - Replace FreeBSD 14.1 with 14.2 * Remove cron faketime testing from FreeBSD
* ansible-test - Replace RHEL 9.4 with 9.5 (#84526)Matt Clay2025-01-081-1/+1
|
* ansible-test - Replace Alpine 3.20 with 3.21 (#84525)Matt Clay2025-01-072-2/+2
|
* ansible-test - Replace Fedora 40 with 41 (#84281)Matt Clay2025-01-079-67/+50
| | | | | | | | | | | | | | | | | | | | | * ansible-test - Replace Fedora 40 with 41 Also update other distro containers to remove unnecessary packages: * apache2 * subversion * ruby * Fix subversion test on Ubuntu Also remove obsolete vars files from subversion test. * Skip dnf test on Fedora 41+ The dnf5 test is all that is needed. * Support dnf5 for the package test * Extend unix-chkpwd work-around for Fedora
* Fix uri integration test on Python 3.13 (#84518)Matt Clay2025-01-071-20/+85
|
* ansible-test - Update nios-test-container to 7.0.0 (#84517)Matt Clay2025-01-071-1/+1
|
* Fix result_pickle_error integration test (#84506)Matt Clay2025-01-032-3/+7
| | | | | The test has been updated to use a custom type which does not support pickling, instead of relying on Jinja's `Undefined` type. As of Jinja 3.1.5 that type now supports pickle, which breaks the original implementation of the test.
* test: Update regex for required and default in FieldAttributes (#84209)Abhijeet Kasurde2025-01-032-11/+16
| | | | | Fixes: #61460 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* gather_facts, fix 'smart' handling with network os and 'setup' (#84425)Brian Coca2024-12-171-0/+6
| | | | | | | gather_facts, fix network_os and smart logic and defaults setup will be default for smart only if network_os is not set, now you get warnings and errors when missing a valid facts module for a network os Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* adding option for form-multipart data to switch multipart encoding (#80566)David Lassig2024-12-103-1/+25
| | | | | | | * adding option for form-multipart data to switch multipart encoding from default base64 to 7or8bit encoding Co-authored-by: davlas <david.lassig@bwi.de> Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com> Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* copy, prevent internal options in task (#84422)Brian Coca2024-12-101-0/+14
| | | | | * copy, prevent internal options in task fixes #84367
* csvfile - let the config system do the typecasting (#82263)Herman van Rink2024-12-061-1/+13
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* lookup_template: added trim_blocks option (#84254)Abhijeet Kasurde2024-12-065-0/+44
| | | | | | | | | * Allow user to control the trimming of blocks while templating * Added tests * Updated documentation and example Fixes: #75962 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* test: Remove dead code (#84436)Abhijeet Kasurde2024-12-051-17/+4
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* unarchive: Clamp zip timestamps on 32-bit time_t (#84409)Stefano Rivera2024-12-051-1/+9
| | | | | | | | | | | | Clamp zip timestamps to representible values when unpacking zip files on platforms that use 32-bit time_t (e.g. Debian i386). This is a non-issue in practice (in 2024), but should allow the test suite to pass on Debian i386. We use a round value of 2038-01-01 00:00:00 for simplicity, and to avoid running into timezone offsets closer to the actual limit. MR #81520 introduced sanity-checking tests that used dates not representable with a 32-bit time_t.
* wait_for_connection - test connection=local does not emit warning (#84438)Sloane Hertel2024-12-051-0/+11
| | | Add test for PR 84421
* fix reset_connection with templated connection variables (#84240)Alex Willmer2024-12-052-0/+8
| | | | | | | | | * ssh: Test reset_connection with templated ansible_ssh_executable Add failing test to confirm subsequent fixes are necessary & sufficient. * ssh: Fix reset_connection with templated ansible_ssh_executable Signed-off-by: Alex Willmer <alex@moreati.org.uk>
* config lookup, fixes and tests (#84398)Abhijeet Kasurde2024-12-054-0/+92
| | | | | * Integration tests for lookup_config Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Fix non-root integration tests failure (#84378)Lee Garrett2024-12-059-18/+35
| | | | | | | | | | | | | | | | | | | | * Fix callback_default integration test for non-root users This test compares the test output to previously collected output. However, this previously assumed that the tests are run as root, even though needs/root in aliases is not set. So instead parameterize the output, and use sed to replace the value that diverge when running it as different users. * integration tests: Ensure temp file removal doesn't fail as non-root user * Don't fail when ansible-galaxy integration test runs as non-root * Update integration test callback list --------- Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu>
* Coverage for virtual/sunos.py (#84357)Abhijeet Kasurde2024-12-031-0/+191
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Coverage for virtual/hpux.py (#84362)Abhijeet Kasurde2024-12-031-0/+82
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* test coverage for virtual/sysctl.py (#84356)Abhijeet Kasurde2024-12-031-0/+144
| | | | | * test coverage for virtual/sysctl.py Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Additional tests for lookup_sequence (#84315)Abhijeet Kasurde2024-12-031-0/+13
| | | | | | | | | * Additional tests for lookup_sequence * Follow up for https://github.com/ansible/ansible/pull/83758, to add tests for stride parameter. --------- Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Removed deprecated include_delegate_to param (#84306)Abhijeet Kasurde2024-12-031-1/+0
| | | | | | | | | | | | * Removed deprecated include_delegate_to param * Remove deprecated include_delegate_to param from get_vars API in manager.py Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Make ignore.txt Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* ansible-test - fix coverage for test modules (#84366)Jordan Borean2024-11-278-5/+79
| | | | | | Fixes the coverage path translation for modules located in integration test paths. Instead of trying to match by the unique temporary path name that the module is executed as, the reporting tool will translate it to the static path that the module is actually located under.
* Test aliases fix (#84377)Lee Garrett2024-11-2615-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * integrity tests: Tag (destructive) root tests as such - apt_key needs root to touch the apt key database - debconf needs root to change debconf values of system packages - gathering writes to /etc/ansible/*, writeable only to root - group creates system groups - noexec mounts/umounts a ramdisk - systemd requires root to start/stop services Mark all except noexec as "destructive" as they change the state of the system. * integration test cron requires root, as it calls setup_cron * integration test dpkg_selection runs dpkg as root * integration test facts_linux_network requires root It adds/removes IP addresses from network interfaces, requiring root for that. * integration test package requires root installs/removes system packages * Integration test service requires root Creates/starts/stops/removes systemd services * integration test user requires root to create users * integration tests using setup_test_user require root --------- Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu>
* dnf5,apt: add auto_install_module_deps option (#84292)Martin Krizek2024-11-212-10/+39
| | | | | * dnf5,apt: add auto_install_module_deps option Fixes #84206
* ansible-test - Improve container network detection (#84323)Matt Clay2024-11-191-4/+7
| | | | When detection of the current container network fails, a warning is now issued and execution continues. This simplifies usage in cases where the current container cannot be inspected, such as when running in GitHub Codespaces.
* dnf5 - consolidate package resolving settings (#84335)Martin Krizek2024-11-191-0/+23
| | | Fixes #84334
* dnf5: fix is_installed check (#84275)Martin Krizek2024-11-192-1/+56
| | | Fixes #84259
* include_vars - fix including new hash variables when hash_behaviour is set ↵Sloane Hertel2024-11-141-0/+2
| | | | to merge (#84303)
* Sequence query fix (#83758)James Ramsaran2024-11-141-0/+29
| | | | Co-authored-by: flowerysong <junk+github@flowerysong.com>
* Add tests for deprecations (#84284)Abhijeet Kasurde2024-11-122-3/+12
| | | | | | | * Check for module deprecation * Check for module option deprecation * Check for plugin deprecation Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* package_facts fix empty packages on foreign mgr (#83855)Brian Coca2024-11-121-0/+40
| | | | | | | * package_facts fix empty packages on foreign mgr return the first package manager that provides output add tests with fake rpm on apt machines
* ansible-test - align 2025 connection defaults to CI matrix (#84291)Jordan Borean2024-11-111-1/+1
|
* Increase scope of mypy sanity test (#84288)Matt Clay2024-11-0916-170/+104
| | | | | * Increase scope of mypy sanity test * Fix issues reported by mypy
* Add support for Windows Server 2025 (#84285)Jordan Borean2024-11-082-1/+2
| | | Adds Windows Server 2025 to the testing matrix.
* ansible-test - Replace FreeBSD 13.3 with 13.4 (#84236)Matt Clay2024-11-077-16/+14
| | | | | * ansible-test - Replace FreeBSD 13.3 with 13.4 * ansible-test - Fix typos in bootstrap.sh * Skip libfaketime on FreeBSD except FreeBSD 14
* remove ignore clauses for module uri (#83642)Alexei Znamensky2024-11-071-1/+0
| | | Co-authored-by: flowerysong <junk+github@flowerysong.com>
* Add --flush-cache option to ansible-pull (#84211)Sloane Hertel2024-11-063-0/+13
|
* update ansible-galaxy resolvelib requirement to >= 0.5.3, < 2.0.0 (#84218)Sloane Hertel2024-11-062-7/+9
| | | | | | | * Update resolvelib upperbound to 2.0.0 Minor SemVer releases should not contain breaking changes * Test the latest minor release and reduce number of resolvelib versions tested for efficiency
* ansible-test - Fix interactive cmd traceback (#84264)Matt Clay2024-11-064-5/+41
|
* Fixed ipv6 pattern in parse_address (#84237)spyinx2024-11-051-0/+2
|
* test: fix check_required_by (#84153)Abhijeet Kasurde2024-11-021-21/+8
| | | | | | * Update the documentation for check_required_by * Fix return value for check_required_by (now returns empty list on success) Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Remove encrypt unit tests for undocumented algorithms, which are disallowed ↵Sloane Hertel2024-11-011-7/+0
| | | | in 2.19. (#84219)
* encrypt: raise error on passing unsupported passlib hashtype (#84186)Abhijeet Kasurde2024-10-312-6/+3
| | | | | | * Raise an AnsibleFilterError when unsupported passlib hashtype is provided in do_encrypt. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>