| Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
* 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
Fixes #84206
|
|
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.
|
|
Fixes #84334
|
|
Fixes #84259
|
|
to merge (#84303)
|
|
Co-authored-by: flowerysong <junk+github@flowerysong.com>
|
|
also ref each other in seealso as they will commonly be used toghether
|
|
* Deprecated libvirt_lxc_noseclabel config
* deprecate moved libvirt_lxc_noseclabel config
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Make CI green I
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
---------
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
* 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
return the first package manager that provides output
add tests with fake rpm on apt machines
|
|
Fixes the logic when attempting to become the SYSTEM user using the
runas plugin. It was incorrectly assumed that calling LogonUser with the
SYSTEM username would produce a new token with all the privileges but
instead it creates a copy of the existing token. This reverts the logic
back to the original process and adds in new logic to avoid any tokens
that are restricted from creating new processes.
|
|
|
|
* Increase scope of mypy sanity test
* Fix issues reported by mypy
|
|
Adds Windows Server 2025 to the testing matrix.
|
|
though the previous docs were the 'intended' outcome,
the current behaviour has been active for a long time and should
not be removed due to backward compatibility issues.
One thing we can do going forward is deprecate substitution enabled by default.
|
|
* ansible-test - Replace FreeBSD 13.3 with 13.4
* ansible-test - Fix typos in bootstrap.sh
* Skip libfaketime on FreeBSD except FreeBSD 14
|
|
Co-authored-by: flowerysong <junk+github@flowerysong.com>
|
|
Fixes: #83665
|
|
|
|
* 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
|
|
|
|
|
|
Fixes: #84220
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
|
|
|
|
* 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>
|
|
* Improve error handling for create-bulk-issues.py
* Add support for setting assignee
* Add example YAML to feature --help output.
* Add additional help message for token issues.
|
|
in 2.19. (#84219)
|
|
* Raise an AnsibleFilterError when unsupported passlib hashtype is
provided in do_encrypt.
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
* Allow CLIs that accept inventory options to flush the inventory cache(s) and fact cache
Fixes #83749
|
|
* Fix returning unreachable for looped tasks
Add tests for ignore_unreachable and loop
|
|
* Add a regression test for https://github.com/ansible/ansible/issues/32384
|
|
* Removed deprecated pycompat24 and importlib
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Make CI green
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Ignore basic.py
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Make CI green III
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Make CI green IV
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
---------
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
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.
|
|
While showing the deprecation message, mention the collection name
from which the module is removed.
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
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
|
|
Remove pub key if we are going to generate private
fix tests for os X
|
|
* Removed files related to selector compat
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
* Add `match=` in pytest.raises
* Remove redundant assert statements
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Matt Clay <matt@mystile.com>
|
|
variable_manager unit tests are unreachable. These tests
are already covered in integration tests.
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
The shell command sometimes prints a trailing whitespace which breaks
the tests on old RHELs. This patch is supposed to fix that.
|
|
* Use password lookup instead of range
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
In ``Handler.notify_host`` we ensure that ``Handler.notified_hosts`` can contain
particular host at most once. Therefore for removing a host it should be
faster to use ``list.remove`` which removes the first item in the list,
as opposed to using list comprehension removing all such items.
|
|
ansible-config supports plugin types. (#84130)
|
|
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|