summaryrefslogtreecommitdiffstats
path: root/test/integration/targets (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add support for Windows Server 2025 (#84285)Jordan Borean2024-11-081-1/+1
| | | Adds Windows Server 2025 to the testing matrix.
* ansible-test - Replace FreeBSD 13.3 with 13.4 (#84236)Matt Clay2024-11-075-1/+7
| | | | | * ansible-test - Replace FreeBSD 13.3 with 13.4 * ansible-test - Fix typos in bootstrap.sh * Skip libfaketime on FreeBSD except FreeBSD 14
* 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-061-6/+8
| | | | | | | * 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
* encrypt: raise error on passing unsupported passlib hashtype (#84186)Abhijeet Kasurde2024-10-311-5/+3
| | | | | | * Raise an AnsibleFilterError when unsupported passlib hashtype is provided in do_encrypt. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Add --flush-cache option for ansible and ansible-console (#84149)anvitpusalkar2024-10-301-0/+8
| | | | | * Allow CLIs that accept inventory options to flush the inventory cache(s) and fact cache Fixes #83749
* Fix returning unreachable for looped tasks (#84049)Sloane Hertel2024-10-302-0/+49
| | | | | * Fix returning unreachable for looped tasks Add tests for ignore_unreachable and loop
* Add a test using ignore_errors as a variable (#84175)Sloane Hertel2024-10-294-2/+33
| | | * Add a regression test for https://github.com/ansible/ansible/issues/32384
* Remove deprecated plural form of collection path (#84156)Abhijeet Kasurde2024-10-291-1/+1
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Enable file module to disable diff_mode (#83700)Conner Crosby2024-10-254-0/+51
| | | | | Several tasks within the modification_time.yml and state_link.yml task lists have explicitly enabled diff_mode because these tests previously assumed a diff attribute would always be returned from the file module.
* docs: print deprecation collection name (#84126)Abhijeet Kasurde2024-10-252-1/+4
| | | | | | While showing the deprecation message, mention the collection name from which the module is removed. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Preserve `_ansible_no_log` from action result; fix `include_vars` to set ↵Matt Davis2024-10-2512-43/+148
| | | | | | | | | | | | | | | | properly (#84143) * fixes for CVE-2024-8775 * propagate truthy `_ansible_no_log` in action result (previously superseded by task-calculated value) * always mask entire `include_vars` action result if any file loaded had a false `show_content` flag (previously used only the flag value from the last file loaded) * update no_log tests for CVE-2024-8775 * include validation of _ansible_no_log preservation when set by actions * replace static values with dynamic for increased robustness to logging/display/callback changes (but still using grep counts :( ) * changelog * use ternary, coerce to bool explicitly
* user module avoid conflicts ssh pub key (#84165)Brian Coca2024-10-243-3/+113
| | | | Remove pub key if we are going to generate private fix tests for os X
* Use open with context manager (#83337)Abhijeet Kasurde2024-10-182-6/+4
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Trim `selinux_policytype` @ integration tests (#84136)Sviatoslav Sydorenko (Святослав Сидоренко)2024-10-181-1/+1
| | | | The shell command sometimes prints a trailing whitespace which breaks the tests on old RHELs. This patch is supposed to fix that.
* test: use password to generate random string instead of range (#84129)Colin Watson2024-10-171-1/+1
| | | | * Use password lookup instead of range Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* feat: checksum_algo param for find module (#83014)ShIRann Chen2024-10-111-0/+23
| | | | Co-authored-by: shirann <shirannx@gmail.com> Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <webknjaz@redhat.com>
* service_facts: add FreeBSD support (#82556)Brian Coca2024-10-101-1/+0
| | | | | new freebsd scanner using 'their version' of service cli tool also avoid loading the linuxy service scanner when freebsd
* Update triple single quotes to triple double quotes (#84099)Matt Clay2024-10-09124-471/+471
| | | | | | | | | * Update triple single quotes to triple double quotes This change was fully automated. The updated Python files have been verified to tokenize the same as the originals, except for the expected change in quoting of strings, which were verified through literal_eval. * Manual conversion of docstring quotes
* user module, avoid chmoding symlink'd home file (#83956)Brian Coca2024-10-082-1/+69
| | | | | | | also added tests --------- Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* Implicit flush_handlers inherit play tags (#83968)Martin Krizek2024-10-042-0/+14
|
* Reduce number of implicit meta tasks (#84007)Martin Krizek2024-10-034-4/+44
| | | | | | | | | | | | | | | | | This greatly reduces run time on large inventories since meta tasks are executed in the main process sequentially and just executing them is expensive. This change avoids running the following implicit meta tasks: * ``flush_handlers`` on hosts where no handlers are notified * ``noop`` for the linear strategy's lockstep, instead hosts that are not executing the current task are just not part of the current host loop A playbook consiting of two simple plays both running on ~6000 hosts runs in: devel: 37s this PR: 1.3s Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
* get_url: properly parse filename in content-disposition (#83748)Martin Krizek2024-10-031-0/+20
| | | | | | | | | | Since we don't really care about the type we don't have to query for it and just retrieve the filename value. Unfortunately we cannot use module_utils.urls.get_response_filename as we don't have the response object, so just utilize email.message.Message to parse the filename instead of manually doing the work ourselves. Fixes: #83690
* debconf: set empty password value (#83217)Abhijeet Kasurde2024-10-011-28/+71
| | | | | | Fixes: #83214 --------- Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Prevent condor from being installed and fulfilling libfmt dependency (#84023)Matt Martz2024-09-301-1/+1
|
* Test entry points with editable install (#84002)Matt Clay2024-09-241-17/+32
| | | This allows collection of code coverage for the entry points.
* Ansible Errors, Don't hide stacked messages when yaml (#83933)Brian Coca2024-09-241-1/+3
| | | | | | Also remove redundant msg now that we fixed yaml case So no more need to %s % e. Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* Add basic validation for action_groups (#83965)Felix Fontein2024-09-244-0/+31
| | | Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* dnf5: re-introduce ``state: installed`` alias (#83961)Martin Krizek2024-09-231-1/+1
| | | Fixes #83960
* Do not convert floats to ints when there is truncation (#83864)Brian Coca2024-09-203-81/+1
| | | | | | | Adjusted error messages fixed tests removed py2 compat tests, since no more py2 Co-authored-by: Matt Clay <matt@mystile.com>
* Add mount_facts module (#83508)Sloane Hertel2024-09-193-0/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a mount_facts module capable of gathering mounts skipped by default fact gathering * By default, collect mount facts from standard locations including /etc/mtab, /proc/mounts, /etc/fstab, /etc/mnttab, /etc/vfstab, and on AIX, /etc/filesystems. When no file-based source for the current mounts can be found (like /proc/mounts), the module falls back to using mount as a source. This allows BSD and AIX to collect the existing mounts by default, without causing Linux hosts to use both /proc/mounts and mount output. * Non-standard locations and "mount" can be configured as a sources. * Support returning an aggregate list of mount points in addition to first found. When there are multiple mounts for the same mount point in an individual source, a warning is given if the include_aggregate_mounts option is not configured. * Add options to filter on fstypes and devices (supporting UNIX shell wildcards). * Support configuring a timeout and timeout behavior to make it easier to use the module as a default facts module without risking a hang. * Include the source and line(s) corresponding to a mount for easier debugging. Co-authored-by: Brian Coca <bcoca@users.noreply.github.com> Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
* timedout extended (#83953)Brian Coca2024-09-181-0/+15
| | | | | * timedout extended * add timedout test
* fact gathering, mounts, fixes for single proc code and tests (#83866)Brian Coca2024-09-104-32/+0
| | | | | | | | | * Fact gathering fix 'no shm' branhc * Use concurrent.futures instead of multiprocessing This entirely avoids the need for fallback logic since the concurrent.futures thread pool does not depend on `/dev/shm`. Co-authored-by: Matt Clay <matt@mystile.com>
* Replace binary_modules Makefile with Python script (#83925)Matt Clay2024-09-102-18/+41
| | | | | | Also update the platform list: * Remove linux ppc64le * Add darwin arm64
* loop_control "early exit" feature (#62151)Brian Coca2024-09-052-0/+19
| | | | | | | | | | | | | | | | | * add a loop_control break_when directive to break out of a loop after any item * remove loop var as normal exit would * example usage: - name: generate a random password up to 10 times, until it matches the policy set_fact: password: "{{ lookup('password', '/dev/null', chars=character_set, length=length) }}" loop: "{{ range(0, 10) }}" loop_control: break_when: - password is match(password_policy) Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
* Add location on include_tasks fail inside include (#83876)Jordan Borean2024-09-013-0/+18
| | | | | | Adds the datastore details to the parser error when attempting to include tasks that contain include_tasks without a filename set. This change will now display the exact location of the include_tasks that failed like any normal syntax error.
* Improve testing for Windows SSH and other connection plugins (#83834)Jordan Borean2024-08-286-15/+61
| | | | | | | | | Expands the test matrix used for testing on Windows to cover the three connection plugins we support for all the tasks. This change also changes how raw commands are run over SSH to avoid starting a `powershell.exe` process that was uneeded in the majority of cases used in Ansible. This simplifies our code a bit more by removing extra Windows specific actions in the ssh plugin and improves the efficiency when running tasks.
* Print the name of the option being deprecated (#83761)Martin Krizek2024-08-271-2/+2
| | | Fixes #83759
* fix delegate_to integration test (#83865)Matt Davis2024-08-271-9/+28
| | | * the test was previously passing erroneously due to the `timeout` elapsing in CI, and that the `failed` test does not encompass `unreachable`
* copy, fix permissions and atime on diff partitions (#83824)Brian Coca2024-08-261-0/+42
| | | we just set time also, when on diff partitions
* runtime-metadata sanity test: do not fail deprecation version checks if ↵Felix Fontein2024-08-269-1/+62
| | | | | | | galaxy.yml has empty `version` (#83831) * Do not create invalid SemanticVersion objects. * Fix SemanticVersion.parse(). * Add basic runtime-metadata tests.
* powershell - Improve CLIXML parsing (#83847)Jordan Borean2024-08-231-0/+9
| | | | Improves the logic used when parsing CLIXML to support all escaped character sequences and not just newlines.
* Fix up raw_params for ansible.windows modules (#83830)Jordan Borean2024-08-201-0/+20
| | | | | | | | | | | * Fix up raw_params for ansible.windows modules Fixes up the logic for detecting if using ansible.windows.win_command or ansible.windows.win_shell with _raw_params. These two modules are special in that they can be referenced in 4 different ways but the ansible.windows collection specific prefix needs to be manually added to the list. * Fix up sanity issue
* Gather mount facts, fallback for when multiproc is not feasable (#83750)Brian Coca2024-08-194-0/+33
| | | | | | * fallback to 'single threaded gathering' for when multiproc fails Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
* ssh and psrp - Support more complex characters in fetch_file (#83753)Jordan Borean2024-08-182-5/+25
| | | | | | | | | | | | | | * ssh and psrp - Support more complex chars in fetch_file Fixes the psrp and ssh (with piped) fetch function to work with paths that contains glob like characters in the path. For Windows this was needed when using paths that contain `[]` in the path. For ssh this was a problem with FreeBSD when using the piped transfer method with similar characters. Also tidies up the psrp logic to not inject the paths and buffer size in the script but pass it as an object through an argument/parameter. * Fix sanity check
* Add explicit winrm/psrp tests for HTTP and HTTPS (#83769)Jordan Borean2024-08-162-0/+27
|
* Fix tests when running against SSH targetJordan Borean2024-08-152-1/+10
|