Martin Krizek
eb19692f48
Properly disable modularity tests for dnf5 only ( #81195 )
1 year ago
Martin Krizek
7b2647f3b2
Re-introduce RHEL 9 modularity testing in CI ( #81160 )
1 year ago
Matt Clay
f4ff6768f3
ansible-test - Remove old pytest-forked constraint ( #81185 )
1 year ago
Matt Clay
3d2ff64264
ansible-test - Fix import sanity test for targets ( #81184 )
1 year ago
Martin Krizek
ca3ffbf4c2
ansible-test - remove test remotes: rhel 8.7/9.1 ( #81065 )
...
Fixes #80419
Fixes #80420
1 year ago
Brian Coca
ad0e082ac0
script inventory plugin, link to dev script howto docs ( #80796 )
1 year ago
Felix Fontein
5cf58f9a15
Use semantic markup for docs fragments ( #81152 )
1 year ago
Sloane Hertel
73dde45f0f
ansible-galaxy - add pre-release hint to dependency resolution error ( #81147 )
...
* add pre-release hint to dependency resolution error if --pre wasn't provided
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
1 year ago
Matt Clay
f1ddcb4ae4
Simplify release name tracking and testing ( #81151 )
...
Convert the release names list from YAML to plain text, removing the need for YAML parsing in the sanity test.
1 year ago
Matt Clay
8c9f5c9106
Remove unused unit test code ( #81150 )
1 year ago
Norman Ziegner
bcdb82992a
user - add parameter for password expiration warning days ( #79884 )
...
* user - add parameter to set number of warning days before password expires
Signed-off-by: Norman Ziegner <norman.ziegner@ufz.de>
1 year ago
Matt Clay
b06f7de24a
Remove unused strategy plugin unit tests ( #81146 )
1 year ago
Martin Krizek
0cc50e0673
dnf5: enable now implemented cacheonly functionality ( #81141 )
...
Note that this also fixes a traceback caused by backwards incompatible
change in dnf5 where cacheonly was changed from bool to string:
https://github.com/rpm-software-management/dnf5/pull/665/files#diff-ab65249ff7fccadfb2864b6826f6559f7f16fad43fd3bf2da0b4fe8db790d59aR179
1 year ago
Matt Clay
63946eaed6
Remove unreachable code in curses unit test ( #81138 )
1 year ago
Matt Clay
5f58775a1f
More unit test code coverage improvements ( #81136 )
1 year ago
steve12512
a5a4903b03
edited the documentation for 'groups' in user.py ( #81114 )
...
* edited the documentation for 'groups' in user.py
* Update user.py
1 year ago
Everson Leal
2f820381ea
Inventory Script Plugin: raise execution error ( #81104 )
...
It adds exception treatment when execute a inventory based on script with the --host argument
---------
Co-authored-by: Everson Leal <everson.leal@sonda.com>
1 year ago
Sloane Hertel
ed8a404f4a
add coverage for Python 3.12 ( #81125 )
1 year ago
Sloane Hertel
e780b5e56d
ansible-galaxy - add config option for the default ansible-galaxy timeout ( #81108 )
...
allow configuring the default server timeout via env/ini
1 year ago
Brian Coca
e22fe9be56
ansible-test add alpine 3.18 as remote ( #81109 )
...
* add crun to avoid runc
1 year ago
Matt Clay
e535eb625b
Remove long obsolete hacking/get_library.py ( #81122 )
1 year ago
Matt Clay
5b586096b3
Remove hacking/fix_test_syntax.py ( #81121 )
...
This script is no longer needed, since using tests as filters was removed in 2.9.
1 year ago
Matt Clay
7e2b25beac
Revert "Add a custom policy for hackers using ansible-test ( #68535 )" ( #81120 )
...
This reverts commit bd9e31fcb0
.
1 year ago
Matt Clay
82b5544b09
Improve code coverage of unit tests ( #81119 )
...
- Remove unused code
- Remove unnecessary code
- Ignore coverage for unreachable code
- Use previously unused code to increase coverage
1 year ago
Matt Clay
da2cd157f1
Fix arg splitting and key/value parsing ( #80030 )
...
* Improve readability of unit test output
This drops the trailing `-expectedXXX` suffixes from test names generated by parametrize.
* Add more splitter unit tests
This fills in code coverage gaps in the exising unit tests.
* Bug fixes and code cleanup
- Fix IndexError exceptions caused by parsing a leading newline, space or escaped space.
- Fix an AttributeError exception in `parse_args` when parsing `None`.
- Fix incorrect parsing of multi-line Jinja2 blocks, which resulted in doubling newlines.
- Remove unreachable exception handlers in the `parse_kv` function.
The unreachable code was verified through analysis of the code as well as use of the `atheris` fuzzer.
- Remove unnecessary code in the `split_args` function.
- Add an optimization to `split_args` for the empty args case.
* Add unit tests for bug fixes
The splitter code is now fully covered by unit tests.
* Add another issue ref in changelog
1 year ago
Jordan Borean
98d1cf7aa2
Deprecate plural collections_paths option ( #81063 )
...
* Deprecate plural collections_paths option
* Fix test assumption
1 year ago
Brian Coca
a7d2a4e032
display, also proxy warnings and deprecations ( #81060 )
...
Use generic proxy for display methods with decorator
1 year ago
Brian Coca
38067860e2
template escaping: use configured variable start instead of default one ( #81001 )
...
this will handle escaping correctly in tempaltes that override the default jinja variable tokens
also fix optimization for single var path when overrides happen
1 year ago
Matt Clay
c3926268e2
ansible-test - Avoid using atexit module ( #81096 )
1 year ago
Giovanni Toraldo
1f9836fe9a
Fix typo in to_yaml filter examples ( #81094 )
1 year ago
Maxwell G
bd5b0b4293
Avoid deprecated importlib.abc.TraversableResources ( #81082 )
...
* Avoid usage of deprecated importlib.abc.TraversableResources
This fixes ansible-compat test failures with Python 3.12.
* Add deprecated: marker for compat code
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
* add declarative deprecation comment to < 3.9 case
Co-authored-by: Matt Clay <matt@mystile.com>
---------
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
Co-authored-by: Matt Clay <matt@mystile.com>
1 year ago
Abhijeet Kasurde
c69951daca
ansible-test: remove Ubuntu 20.04 LTS ( #81070 )
1 year ago
Abhijeet Kasurde
bc68ae8b97
ansible-test: Added Fedora 38 ( #81074 )
1 year ago
Matt Martz
56b67cccc5
Resolve issues on python pre-3.10.6 with collection dirs longer than 100 characters ( #81061 )
1 year ago
Matt Martz
6fead15334
Pylint deprecated comment checker ( #81071 )
...
Co-authored-by: Matt Clay <matt@mystile.com>
1 year ago
Brian Coca
534f688a53
remove Freebsd 13.1 from test matrix ( #81058 )
...
* remove Freebsd 13.1 from test matrix
fixes #80416
Co-authored-by: Matt Clay <matt@mystile.com>
1 year ago
Martin Krizek
cde15f3c81
Add test support for Python 3.11 on RHEL 8.8/9.2 ( #80990 )
...
Fixes #80412
Fixes #80413
1 year ago
Abhijeet Kasurde
c1bc445aa7
ansible-test - Update openSUSE containers ( #81062 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
1 year ago
Sloane Hertel
ecbbd7e5d1
Remove Python 3.5 support ( #80972 )
...
* Remove Python 3.5 support
* changelog
* add requested changes
* Update changelogs/fragments/remove-python3.5.yml
Co-authored-by: Matt Clay <matt@mystile.com>
* remove Python3 < 3.5 error handling
* remove Python3 < 3.5 error handling in TE too
---------
Co-authored-by: Matt Clay <matt@mystile.com>
1 year ago
James Cammarata
660f1726c8
Register handlers immediately if currently iterating handlers ( #80898 )
...
This fixes the issue where handlers notifying other handlers are
not properly run because the notification is not registered unless
another flush_handlers occurs. Instead, if the current host state
is iterating handlers we immediately register the handler to be
run so the notification is not lost.
Fixes #80880
1 year ago
Matt Martz
73e04ef2d6
Don't mutate templar.environment, only overlay on local myenv ( #81005 )
1 year ago
Abhijeet Kasurde
cf803d6d58
Improved return docs ( #81006 )
...
* Improved the return docs for modules `sysvinit`
and `systemd_service`
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
1 year ago
Martin Krizek
f13e35cbf9
dnf5 - enable env groups testing in CI ( #81032 )
...
Implemented in https://github.com/rpm-software-management/dnf5/pull/585
1 year ago
Felix Fontein
440b5fd040
Make sure that values that should be strings are actually strings. ( #81029 )
1 year ago
Abhijeet Kasurde
ce55e0faf5
Update example in apt_key module ( #81017 )
...
* Verify checksum of downloaded key
Fixes : #79892
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
1 year ago
Matt Davis
9117762358
define code owners to support branch-protection rules on docs ( #81041 )
...
* during interim docs/ (and related dirs) split to separate repo, prevent merges that might require a rebase of the target repo
1 year ago
Sviatoslav Sydorenko
796d41ff18
Bump azure-pipelines-test-container to v4.0.1 @ CI ( #80916 )
...
This patch updates the test container used in CI to the new v4 that
defaults to using Python 3.10 and is based on Ubuntu 22.04 Jammy[[1]].
[1]: https://github.com/ansible/azure-pipelines-test-container/pull/17
1 year ago
Sviatoslav Sydorenko
42ca0803a1
Bump azure-pipelines-test-container to v4.0.1 @ CI ( #80916 )
...
* Bump azure-pipelines-test-container to v4.0.1 @ CI
This patch updates the test container used in CI to the new v4 that
defaults to using Python 3.10 and is based on Ubuntu 22.04 Jammy[[1]].
[1]: https://github.com/ansible/azure-pipelines-test-container/pull/17
1 year ago
Matt Clay
cf4d4577ac
Remove hacking dir dependency from build backend ( #81021 )
...
* Copy man generation files into build backend
* Use copied files in build backend
1 year ago
Felix Stupp
a473bb798d
modules/find: param contains: Describe matching behavior ( #80744 )
1 year ago