Commit Graph
55095 Commits
Author SHA1 Message Date
Martin KrizekandMatt Davis cc0ef95ce8 csvfile lookup: remove Python 2 compat (#85186)
(cherry picked from commit c6a2e5ea75)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 8bbc43efd0 Limit SSH agent DSA testing to RHEL 9 (#85193)
(cherry picked from commit 6a1c24ca99)
2025-06-03 15:49:22 -07:00
Jordan BoreanandMatt Davis 880b584124 Add support for Windows App Control/WDAC (#84898)
* Add support for Windows App Control/WDAC

Adds preview support for Windows App Control, formerly known as WDAC.
This is a tech preview feature and is designed to test out improvements
needed in future versions of Ansible.

* Use psd1 and parse it through the Ast to avoid any unexpected execution results

* Add tests for various manifest permutations

* Ignore test shebang failure

* Apply suggestions from code review

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>

* Use more flexible test expectations

* Add type annotations for shell functions

---------

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
(cherry picked from commit 75f7b2267d)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 895af10b99 ansible-test - Improve deprecated checking type inference (#85159)
* ansible-test - Improve deprecated checking type inference

Also disabled the ``bad-super-call`` pylint rule due to false positives.

* Add type comment support

* Try without using register_transform

(cherry picked from commit e82be177cd)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 638d711a72 ansible-test - Fix option filtering (#85182)
(cherry picked from commit feda0a5c6e)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 1441817ffe Remove unnecessary module shebang (#85183)
(cherry picked from commit 1e64707592)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 01e97d7f80 DTFIX recategorization and error/warning refactor (#85181)
Co-authored-by: Matt Davis <nitzmahone@redhat.com>
(cherry picked from commit 242bb9ebab)
2025-06-03 15:49:22 -07:00
Martin KrizekandMatt Davis 108f349e1d Integration tests clean up (#85130)
* Integration tests clean up

* more

* we only test with Ubuntu 24.04 on the controller

(cherry picked from commit 40c919d7bd)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 35a951b611 Expand scope of black sanity test (#85169)
(cherry picked from commit 97dd5f104c)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 76fa45895d Code formatting for .azure-pipelines/ (#85166)
(cherry picked from commit 14bf64ddf8)
2025-06-03 15:49:22 -07:00
Lee GarrettandMatt Davis 1381fc30a3 Mark integration tests as needs/root (#84487)
For calling setup_test_user, which adds a user to the system (and thus requiring
root):
- become
- become_su
- become_sudo
- slurp

And also:
- apt, which installs/removes system packages
- deb822_repository, which adds/removes apt repos
- hardware_facts calls losetup, which requires root
- package_facts, which installs/removes system packages

Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu>
(cherry picked from commit ebd022ee42)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis f771784853 Code formatting for packaging/cli-doc/ (#85167)
(cherry picked from commit 930ffd1a83)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 46cc5d6b90 Code formatting for packaging/release.py (#85168)
(cherry picked from commit ed0e78fd9c)
2025-06-03 15:49:22 -07:00
Matt ClayandMatt Davis 0ba6145aa8 Code formatting for test/sanity/code-smell/ (#85165)
(cherry picked from commit 460343510c)
2025-06-03 15:49:22 -07:00
Jordan BoreanandMatt Davis 1bd8ed4437 Fix constructable inventory default keyed group (#85002)
Fix the logic for a constructable inventory `keyed_groups` entry to use
the `default_value` if the ``key` expression result is `None` or `omit`
and not just an empty string. This bug was introduced with the changes
in data tagging and goes back to the original behaviour.

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit fe2d9e316a)
2025-06-03 15:49:22 -07:00
Matt Clay 33c3844daa ansible-test - Update default containers (#85161)
(cherry picked from commit 7ac74ab591)
2025-05-14 22:08:42 -07:00
Matt Clay b6fad7bbb8 ansible-test - Update sanity requirements (#85160)
(cherry picked from commit 588410fe50)
2025-05-14 22:08:42 -07:00
Matt DavisandMatt Clay 3a2248a992 recategorize pass over DTFIX-MERGE entries post b4 (#85155)
(cherry picked from commit f5a85493c1)
2025-05-14 22:08:42 -07:00
Matt Clay 134c8ec093 Add missing cache plugin test scenarios (#85154)
(cherry picked from commit 567fda6906)
2025-05-14 22:08:42 -07:00
Matt DavisandMatt Clay fddda73042 ensure builtin tests always return bool (#85149)
* added unit test validation and coverage enforcement

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit e5476972da)
2025-05-14 22:08:42 -07:00
Matt DavisandMatt Clay 60ddb2954b misc changelog and docstring cleanup (#85148)
* deferred listify_lookup_plugin_terms deprecation

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit 7be1359841)
2025-05-14 22:08:42 -07:00
Matt Clay b2699fade5 release.py - Remove email announcement support (#85060)
Also add missing git and run overloads.

(cherry picked from commit 93aa611435)
2025-05-12 11:06:16 -07:00
Matt ClayandGitHub 5e0733288e Update Ansible release version to v2.19.0b4.post0. (#85137) 2025-05-12 18:03:53 +00:00
Matt ClayandGitHub 731b4d0242 New release v2.19.0b4 (#85133) v2.19.0b4 2025-05-12 10:20:45 -07:00
Matt DavisandMatt Clay d6a8582da7 fix ensure_type to support vaulted values (#85129)
* restored parity with 2.18

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit 9a426fe303)
2025-05-12 09:15:48 -07:00
Matt DavisandMatt Clay 204cdcee67 ensure that all config return values are Origin-tagged (#85127)
Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit fc8a227647)
2025-05-12 09:15:48 -07:00
Matt DavisandMatt Clay df214f93a7 apply trust to declarative plugin config (#85126)
* trust strings in loaded doc fragments
* added tests
* added hard_fail_context test mechanism

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit 9efba4f972)
2025-05-12 09:15:48 -07:00
Lorenzo TanganelliandMatt Clay 27aca0abd3 facts: CloudStack KVM Hypervisor to Linux virtual fact (#85117)
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 8a4fb78988)
2025-05-12 09:15:48 -07:00
Matt Clay 38ef2b8c25 ansible-test - Relax some deprecation checks (#85122)
(cherry picked from commit 7b69cf3266)
2025-05-12 09:15:48 -07:00
Matt Clay 23f935eb0d template module - render None as empty string (#85121)
* template module - render `None` as empty string

* Update changelogs/fragments/template-none.yml

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>

---------

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
(cherry picked from commit 4fe9606530)
2025-05-12 09:15:48 -07:00
Matt DavisandMatt Clay 9fff6d433d Misc config type coercion fixes (#85119)
* remove dead config comment noise

* update `list` typed config defaults to be lists

* fix tag preservation/propagation in config
* numerous other ensure_type bugfixes
* 100% unit test coverage of ensure_type
* emit warnings on template_default failures
* fix unhandled exception in convert_bool on unhashable inputs

Co-authored-by: Matt Clay <matt@mystile.com>

---------

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit d33bedc48f)
2025-05-12 09:15:48 -07:00
j-dr3andMatt Clay e8d914e992 sysvinit: make examples consistent (#85108)
(cherry picked from commit dcc5dac184)
2025-05-12 09:15:48 -07:00
omahsandMatt Clay 121871af86 Fix typos (#85107)
(cherry picked from commit 471c5229a7)
2025-05-12 09:15:48 -07:00
Martin KrizekandMatt Davis f70dbc15e5 Passing warnings to exit/fail_json is deprecated. (#85109)
(cherry picked from commit 8b9ddf5544)
2025-05-07 11:08:16 -07:00
Matt DavisandMatt Davis 80af44d822 add fuzzy matching to package_data sanity (#85103)
* add fuzzy matching to package_data sanity

* relaxes exact directory matches for license files to allow setuptools > 72 to pass

* sanity

(cherry picked from commit 7e00053a30)
2025-05-07 11:08:16 -07:00
Martin KrizekandMatt Davis da59710961 dnf5: skip pkgs that don't satisfy bugfix/security when specified (#85111)
(cherry picked from commit 107842fd7d)
2025-05-07 11:08:16 -07:00
Matt DavisandGitHub c83b70a04c Update Ansible release version to v2.19.0b3.post0. (#85102) 2025-05-06 19:11:59 +00:00
Matt DavisandGitHub c742fdc66c New release v2.19.0b3 (#85101) v2.19.0b3 2025-05-06 11:29:47 -07:00
pollenJP(@'ω'@)andMatt Davis 7a932a93b0 get_url: missing closing brace in docs (#85096)
(cherry picked from commit 1c29910087)
2025-05-06 09:49:16 -07:00
Matt DavisandMatt Davis 8c8717a8e4 Switch to stackwalk caller ID (#85095)
* See changelog fragment for most changes.
* Defer early config warnings until display is functioning, eliminating related fallback display logic.
* Added more type annotations and docstrings.
* ansible-test - pylint sanity for deprecations improved.
* Refactored inline legacy resolutions in PluginLoader.

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit ff6998f2b9)
2025-05-06 09:49:16 -07:00
Jordan BoreanandMatt Martz 6054b29cb7 Add win_script become tests (#85079)
(cherry picked from commit e4cac2ac33)
2025-04-30 16:13:50 -05:00
Brian CocaandMatt Martz 131175a5a6 ensure predictable permissions on module artifacts (#84948)
and test it!

(cherry picked from commit 9f894b81c2)
2025-04-30 16:13:50 -05:00
Martin KrizekandMatt Martz 0aab250fbc dnf5: avoid generating excessive history entries (#85065)
Fixes #85046

(cherry picked from commit cff49a62ec)
2025-04-30 16:13:50 -05:00
Martin KrizekandMatt Martz dcec78b0f9 async_status: fix example to use finished test (#85066)
Fixes #85048

(cherry picked from commit dbf131c07d)
2025-04-30 16:13:50 -05:00
Brian CocaandMatt Martz ea22e5d0dd show internal but not hidden config options, while still hiding test options (#84997)
(cherry picked from commit aab732cb82)
2025-04-30 16:13:50 -05:00
Brian CocaandMatt Martz 867d9d3096 These actions do not support until (#84847)
(cherry picked from commit 8ab342f8cc)
2025-04-30 16:13:50 -05:00
Matt ClayandGitHub e0e286c009 [stable-2.19] ansible-test - Use -t for container stop timeout (#85019) (#85055)
(cherry picked from commit 0aa8afbaf4)
2025-04-29 04:48:04 +00:00
Matt ClayandGitHub 1c1a271b88 Update Ansible release version to v2.19.0b2.post0. (#85041) 2025-04-24 02:33:58 +00:00
Matt ClayandGitHub 4e861fa9c8 New release v2.19.0b2 (#85040)
* New release v2.19.0b2

* Revert setuptools version bump
v2.19.0b2
2025-04-24 01:58:00 +00:00
Matt DavisandMatt Clay f898f9fec6 Implement TaskResult backward compatibility for callbacks (#85039)
* Implement TaskResult backward compatibility for callbacks
* general API cleanup
* misc deprecations

Co-authored-by: Matt Clay <matt@mystile.com>

* fix v2_on_any deprecation exclusion for base

---------

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit 03181ac87b)
2025-04-23 18:08:29 -07:00