Matt Clay
39a5b08ca6
ansible-test - Update base and default container ( #80058 )
2 years ago
Sviatoslav Sydorenko
c05d813661
Fix #80020 typos confusing `pylint` for `pytest` ( #80056 )
2 years ago
Matt Clay
ecf66c6f82
ansible-test - Update mypy and pylint requirements ( #80049 )
2 years ago
Matt Clay
5e3db6e441
ansible-test - Show Python version before install ( #80022 )
...
Always indicate the Python version being used before installing requirements.
2 years ago
Matt Clay
e6cffce0eb
ansible-test - Allow target prefixes to use `_` ( #80021 )
...
Integration test target prefixes defined in a `tests/integration/target-prefixes.{group}` file can now contain an underscore (`_`) character.
2 years ago
Matt Clay
fe2732b91e
ansible-test - Support pylint assertion rewriting ( #80020 )
...
Add support for `pylint` assertion rewriting when running unit tests on Python 3.5 and later.
2 years ago
devon-mar
2f8f7fba4c
Update lookup to use positional only arg for name to avoid conflicts ( #79839 )
2 years ago
Anže Luzar
122de95d85
Add Steampunk Spotter to Other tools list ( #80006 )
2 years ago
Miklos Sagi
b7ef2c1589
ansible-playbook -K breaks when passwords have quotes ( #79837 )
...
Now only 'unquote' when ini config file is the source
2 years ago
Matt Clay
72c59cfd98
Avoid trailing spaces in unit test ( #80033 )
2 years ago
Matt Clay
21fc699b77
Remove trailing spaces from lines in YAML ( #80032 )
2 years ago
Matt Clay
a4248a63aa
Add missing newlines to YAML files ( #80031 )
2 years ago
Sandra McCann
967a88963f
Update docs requirements to latest package versions ( #79930 )
...
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Sandra McCann
f841c2803a
update banner' ( #79971 )
2 years ago
Matt Martz
54ff9afa10
Data tagging delayed to 2.16 ( #80011 )
2 years ago
Jordan Borean
1e6b8249e7
Add condition that causes a when to skip a task to output msg ( #78918 )
...
* Add condition that causes a when to skip a task
* Fix up tests
* Use false_condition instead of failed_condition
* Remove formatting accidentially added
* Fix sanity
2 years ago
Martin Krizek
bd329dc543
Make using blocks as handlers a parser error ( #79993 )
...
Fixes #79968
2 years ago
Matt Clay
117cf0a44b
ansible-test - Disable the pep8 E203 rule ( #79966 )
...
The `E203` rule in `pycodestyle` is not fully PEP 8 compliant.
Disabling it provides compatibility with the output of the `black` code formatter.
2 years ago
Matt Clay
67d49734f7
ansible-test - Support Podman 4.4.0+
2 years ago
Matt Clay
930c2137d3
Revert "Disable F37 podman tests for ansible-test ( #79998 )"
...
This reverts commit 875a4ec242
.
2 years ago
Matt Clay
d67b436eba
ansible-test - Improve pylint backwards compat ( #79997 )
2 years ago
Matt Clay
875a4ec242
Disable F37 podman tests for ansible-test ( #79998 )
...
The recent update from podman 4.3.1 to 4.4.1 has broken container management.
Removing the tests from the CI matrix until the issue is resolved.
2 years ago
Alicia Cozine
75274021d3
fixes typo in Ansible 7 roadmap ( #79996 )
...
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
2 years ago
Alicia Cozine
0946ee2f14
adds roadmap for Ansible 8 ( #79598 )
2 years ago
Sloane Hertel
556dadba6d
user - fix comparing existing group names to group IDs ( #79981 )
2 years ago
Matt Clay
715ab99462
ansible-test - Improve code formatting ( #79983 )
...
* ansible-test - Add blank lines after docstrings
* ansible-test - Preserve formatting of arg pairs
* ansible-test - Remove unused string
* ansible-test - Remove pointless dict() usage
* ansible-test - Clean up initial func arg indenting
* ansible-test - Clean up constructor arg indenting
* ansible-test - Clean up func arg wrapping
* ansible-test - Clean up comma and paren placement
2 years ago
Matt Clay
43487c6581
ansible-test - Enable unused-import pylint rule ( #79912 )
...
This was previously enabled for core. This change enables it for collections.
2 years ago
Matt Clay
10bc8af5a2
ansible-test - Remove auto format pylint rule ( #79985 )
2 years ago
Brian Coca
e2f147bcec
ansible-inventory, add --limit option ( #79596 )
...
* ansible-inventory, add --limit option
* also graph
* optimize the when not providing limit
* added tests and clog
* avoid empty groups, fix tests
* i swear there as an ignore_errors there already!!?!?!?
* Fix stdout test fallback
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* simpler approach using subset against inventory directly
* tyupose
* renamed funciton to what it actuall does
got yaml in line with others about removing empty groups
* have graph ignore limts, also note same for --host
* fixed typo long line
* better test
* cause hosvars are not a thing
---------
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
2 years ago
Matt Clay
58d84933fc
ansible-test - Clean up indentation and spaces ( #79980 )
2 years ago
Matt Clay
71f2e777ed
Update mypy to version 1.0.0 ( #79963 )
2 years ago
Sandra McCann
d47a848219
fix core devel doc output ( #79902 )
2 years ago
Mark Chappell
ceafb5411a
Add an integration test to ensure that defaults don't count towards mutually exclusive ( #79949 )
2 years ago
Sebastian Gumprich
b5ff981369
Change `yes` to `true` in uri-module ( #79934 )
2 years ago
Martin Krizek
d43d8274b1
Remove unneeded fallback code for nested defined/undefined tests ( #79960 )
...
* Remove unneeded fallback code for nested defined/undefined tests
The code used to handle defined/undefined tests on objects containing
nested undefined variables. Due to changes in lazy evalution of Jinja2
expressions it is no longer needed, see #56116 .
2 years ago
Matt Martz
243d1b5e3d
Replace deprecated stacked `@classmethod` and `@property` ( #79952 )
2 years ago
Martin Krizek
09e0fb3516
Change ansible_job_id format ( #79951 )
...
* Change ansible_job_id format
...to be something that does not resemble float or other type which
value could be changed by literal_eval that jinja2_native uses.
Specifically the format of '%d.%d' is converted from str to float and
then back to float which may result in truncating the number resulting
in the job not being found because the job id does not exist.
2 years ago
Matt Davis
e1d298ed61
don't ignore templated _raw_params that k=v parser failed to parse ( #79913 )
...
fixes #79862
2 years ago
Matt Clay
2525d0a136
basic.py - Perform Python version check earlier ( #79954 )
2 years ago
Matt Clay
e6900f5cad
pycompat24 - Remove support for Python <= 2.5 ( #79953 )
2 years ago
Sloane Hertel
fcdd7493ae
improve password_hash warning for unsupported algorithms ( #79872 )
...
* password_hash - give a warning for unsupported algorithms (that raise a TypeError)
* add suggested changes, a test and changelog
2 years ago
Matt Clay
9d65e122ff
Fix detection of available hashlib algorithms ( #79946 )
...
* Fix detection of available hashlib algorithms
Detection of hashlib algorithms now works on Python 3.x.
The new implementation works on Python 2.7 and later.
Test coverage is provided by both integration and unit tests.
* Add additional details about hashlib in docs
2 years ago
Sandra McCann
dc99005820
Rst fixes ( #79939 )
...
* fix rstcheck errors for 6.1.1
* spell shell correctly
2 years ago
Felix Fontein
0793833847
ansible-test - Fix collection delegation ( #79947 )
2 years ago
Matt Clay
497d296ed6
Enable pylint rules to detect pointless statements ( #79944 )
...
Also instruct `git blame` to ignore the commit used to convert pointless strings to comments.
2 years ago
Matt Clay
716631189c
Fix "pointless" strings detected by pylint ( #79943 )
...
Convert these strings to comments, since they are not valid docstrings.
2 years ago
Matt Clay
02f6e40534
Clean up pointless statements ( #79941 )
...
* Add ignores for intentional pointless statements
* Remove redundant docstring
* Fix function docstring placement
2 years ago
Matt Clay
1ba100a3b4
Fix pointless statements in unit tests ( #79940 )
2 years ago
Sloane Hertel
fa1564c548
include_vars - document hash_behaviour + dir ( #79790 )
...
* document that hash_behaviour does not apply to individual files of variables when using the dir option
* add tests
2 years ago
Matt Clay
c8c1402ff6
ansible-test - Fix file permissions for delegation ( #79932 )
...
* ansible-test - Fix file permissions for delegation
* Set more restrictive permissions for SSH key
* Check all execute bits, not just owner
* Add a breaking_changes changelog entry
2 years ago