Matt Clay
79dfe14adf
More integration tests for import sanity test. ( #79532 )
3 years ago
Matt Clay
31f9d60b8d
Don't use color in jinja_plugins test.
...
This should prevent color codes from interfering with string matches.
3 years ago
Matt Martz
9acca5b3b9
Allow test to run on system with selinux enabled. Fixes #77564 ( #79510 )
3 years ago
Brian Coca
5b51b560d0
Removed sorting to preserve original order ( #74839 )
...
updated tests to reflect new order
3 years ago
Matt Martz
1998521e2d
Always create new role ( #78661 )
...
Don't use role cache for determining whether to create a new instance of role
3 years ago
Matt Clay
f9715f436c
ansible-test - Avoid direct use of `errno`.
...
Error handling on Python 3.x no longer requires the use of `errno` to identify specific errors.
3 years ago
Matt Clay
cda16cc5e9
ansible-test - Improve container management. ( #78550 )
...
See changelogs/fragments/ansible-test-container-management.yml for details.
3 years ago
Martin Krizek
3bda4eae6f
Fix repr(Task) to check action when testing for a meta task ( #79464 )
...
Fixes #79459
3 years ago
Gaudenz Steinlin
c33a782a9c
Fix password lookup rewrites file when using encrypt ( #79431 )
...
* Remove unused mock from test_password_already_created_encrypt
The _get_paths mock is never used in the
test_password_already_created_encrypt test case.
* Add test to assert the password file is not rewritten
If the password file already contains the salt and the hasing algorithm
does not use the ident parameter, the password lookup should not write
to the password file.
* Fix "changed" if using "encrypt" in password lookup
When using the "encrypt" parameter to the password lookup without the
ident parameter, the password file was always marked as "changed". This
caused the file to be rewritten with the same content. This is fixed by
only marking the file as changed, if an "ident" value needs to be added
to the file.
Fixes #79430 .
Add changelog entry
3 years ago
sbettid
3936b5c471
Fix file touch check mode result ( #79360 ) ( #79422 )
...
Fixes #79360
3 years ago
Maxwell G
ab76916b14
galaxy: Add license_file to manifest directives ( #79420 )
...
* galaxy: Add license_file to manifest directives
* ag collection build: Test license handling
This adds tests to ensure that
- REUSE licensing files: .reuse/dep5, LICENSES/*, anyfile.license
- galaxy.yml license_file
are always included in the manifest.
3 years ago
Matt Clay
38fe34244c
ansible-test - Fix completion error in Python 3.11.
3 years ago
Christian Loos
f79a54ae22
Update vendored distro ( #79227 )
...
Commit bb35d41 in branch python2.7-support from 2022-10-10:
https://github.com/python-distro/distro/commit/bb35d41
3 years ago
Wong Hoi Sing Edison
b148fd8dd7
ansible-galaxy - support ``resolvelib >= 0.5.3, < 0.10.0`` ( #79399 )
...
* Upgrade `resolvelib >= 0.5.3, < 0.10.0`
https://pypi.org/project/resolvelib/0.9.0/ released on 2022-11-17:
* https://github.com/sarugaku/resolvelib/blob/master/CHANGELOG.rst#090-2022-11-17
* https://github.com/sarugaku/resolvelib/releases/tag/0.9.0
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
3 years ago
Brian Coca
1bda6750f5
fix reject list ( #79391 )
3 years ago
Matt Martz
d925ece764
Allow pip like version syntax for installing collections ( #79405 )
3 years ago
Matt Martz
7d35f70caf
Add tests to validate vars_files first found behavior ( #79386 )
3 years ago
Sandra McCann
ec3f6ed9b9
update antsibull-docs to 1.7.3 ( #79395 )
...
* update antsibull-docs to 1.7.3
* remove extraneous changes
3 years ago
Felix Fontein
1705ec98cd
ansible-doc and validate-modules: remove underscore deprecation handling for collections ( #79362 )
...
* Remove underscore deprecation handling for collections.
* Also consider ansible.legacy.
3 years ago
Tom Page
d72326b6af
Allow force deletion of group ( #78172 )
...
* Allow force deletion of group
* Update version_added
Co-authored-by: Jordan Borean <jborean93@gmail.com>
3 years ago
Roy Lenferink
a3531ac422
Refactor structure of group module integration tests ( #78652 )
...
This to match the structure with the tests for the user module. When having the tests available as stand-alone tests, it will be easier to add more integration tests in the future.
3 years ago
Felix Fontein
e0118d9d03
The attribute was renamed to 'action' and the extra data was not used anymore. ( #79317 )
3 years ago
Louis Mandel
0ae963a311
Add missing type to the `reference` option of the documentation of the `git` module ( #79305 )
...
* Add missing type to the `reference` option of the `git` module
* No more doc-missing-type error in validate-modules
3 years ago
Matt Clay
938c0fa944
ansible-test - Fix and update documentation links.
3 years ago
inifares23lab
e2450d4886
added --allow-change-held-packages for apt remove ( #78203 )
...
* added --allow-change-held-packages for apt remove
* add tests for apt remove (allow_change_held_packages=yes)
* add changelog for apt remove (allow-change-held-packages=yes)
* update tests for apt remove (allow_change_held_packages=yes)
3 years ago
Sloane Hertel
26a4775611
[CI] Move running `reboot` integration test to group 2
...
PR #79289 , follow-up for #78402 .
It was breaking the integration-aliases sanity test, but only
became apparent post-merge. This patch fixes that.
3 years ago
Sviatoslav Sydorenko
bb7ad0f0d8
Enable the `reboot` integration test in CI
...
Co-Authored-By: Matt Clay <matt@mystile.com>
3 years ago
Jordan Borean
698da30c1e
ansible-test - Update test container to 7.4.0 ( #79281 )
3 years ago
Jordan Borean
6def4a3180
Fix up sanity problems
3 years ago
Jordan Borean
4ad02dc6e3
ansible-test - Update PSScriptAnalyzer to 1.21.0
3 years ago
Felix Fontein
6e379e5d65
validate-modules: do not treat falsy non-`False` defaults as `None` ( #79267 )
...
* Do not treat falsy non-False defaults as None.
* Fix various instances of this in modules.
* Add changelog fragment.
3 years ago
Sviatoslav Sydorenko
6674c43edd
Log `runme.sh` execution in integration tests ( #79263 )
...
* Log `runme.sh` execution in integration tests
This patch adds `set -x` where it's missing in the integration tests.
It also enables `pipefail` in `runme.sh` scripts that use pipes.
* Add a change note for PR #79263
3 years ago
Brian Coca
0f18ddca9f
mention acl in permissions errors ( #79209 )
...
as chmod/mode is not the only thing we attempt and Ubuntu not shipping acl
in newer versions can lead to some confusion
fixes #79146
3 years ago
Matt Clay
d55423f5a4
ansible-test - Update default container.
3 years ago
Felix Fontein
74b80c3193
Bump antsibull-docs version from 1.6.1 to 1.7.0. ( #79071 )
3 years ago
Matt Clay
4fb5240af2
ansible-test - Update base and default containers.
3 years ago
Matt Clay
4202acb41b
Fix ansible-test-git test for newer git versions.
...
The latest versions of `git` include a fix for CVE-2022-39253. The fix blocks the file protocol by default.
See: 45c9f05c44/Documentation/RelNotes/2.30.6.txt
3 years ago
Matt Clay
645b6b8581
ansible-test - Fix pylint support on Python 3.11.
3 years ago
Sviatoslav Sydorenko
a76bbb18a5
Restrict `wheel` below v0.38.0 under Pythons < 3.7 ( #79187 )
...
* Restrict `wheel` below v0.38.0 under Pythons < 3.7
* Add a change note for PR #79187
* Update changelogs/fragments/79187--wheel-0.38.0.yml
Co-authored-by: Matt Clay <matt@mystile.com>
* Use constraints file when installing wheel.
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Sloane Hertel
89d682464b
Fix isinstance check ( #79159 )
...
Use GalaxyAPI for isinstance check instead of RoleDistributionServer, since the latter is defined in __main__ sometimes (when running integration tests or ansible-galaxy from source) and importing from ansible.cli.galaxy won't reference the same object.
3 years ago
Brian Coca
f66016df0e
copy, avoid moving non temp remote 'non' files ( #79102 )
...
* copy, avoid moving non temp remote files that are not dirs/files
fix tests
3 years ago
Sloane Hertel
cb2e434dd2
ansible-galaxy install - fix unnecessary api check when installing a role from git repo ( #79090 )
...
* delay server api evaluation until a GalaxyRole needs to make an api call for info, list, and install
3 years ago
Martin Krizek
3a6eca6670
Fix test for jinja2_native preserve quotes ( #79131 )
...
Fixes https://github.com/ansible/ansible/pull/79119#discussion_r993752129
3 years ago
Matt Martz
f53dbf90ea
Don't assume column index for netmask and broadcast ( #79121 )
...
* Don't assume column index for netmask and broadcast. Fixes #79117
* fix typo
3 years ago
Sloane Hertel
c4d6629bce
fix password unit tests ( #79113 )
3 years ago
Martin Krizek
d34b578685
jinja2_native: preserve quotes in strings ( #79119 )
...
Fixes #79083
3 years ago
Sloane Hertel
f9cb679675
compile role with all parents in the dep chain ( #79079 )
...
fix inheriting from parents when role depth exceeds 3
Fixes #47023
3 years ago
Brian Coca
5d253a1380
fix password lookup's use of f=v settings ( #76551 )
...
update tests
3 years ago
Matt Clay
14e7f05318
ansible-test - Update pylint to 2.15.4.
3 years ago
Sloane Hertel
e208fe5932
copy module - fix copying directories recursively with remote_src=True ( #76997 )
...
* copy module - fix copying directories containing modified subdirs with remote_src=True. Previously, the first changed subdir would prevent recursively checking for changes for in subdirs at the same level.
* Fix reporting changed for copying empty directories with remote_src=True. If a directory is created on the remote but nothing else, changed is True.
3 years ago