Matt Clay
d19b506ce8
ansible-test - Clean up future boilerplate. ( #76874 )
...
* ansible-test - Clarify need for empty __init__.py
* ansible-test - Update code-smell boilerplate.
* Update code-smell boilerplate for core.
* Update future boilerplate test for ansible-test.
All ansible-test code (except for targets) and core-specific sanity tests now use the same boilerplate.
The test also checks for unwanted `__future__` and `metaclass` boilerplate.
* Relocate target tools to the correct directory.
Several tools used on target Python versions were incorrectly placed in the controller directory.
3 years ago
Dimitri Savineau
a0f6747f07
ansible-test: fix typo in validate-modules ( #76765 )
...
The correct error strategy for the to_text method is surrogate_or_strict
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
3 years ago
Matt Clay
aa67ff2cf2
Remove shebangs from core Python modules. ( #76664 )
...
* Remove module shebangs.
* Relax shebang check in validate-modules.
* Add changelog fragment.
3 years ago
Matt Clay
16cdac66fe
ansible-test - Use ansible-core for docs links.
3 years ago
Matt Clay
41ee4a5b12
ansible-test - Fix traceback in validate-modules test.
3 years ago
Felix Fontein
fe77bc9e3c
Validate some markup in documentation in validate-modules ( #76262 )
...
* Validate some markup in documentation.
* Add changelog fragment.
* Use urlparse instead of URL regex.
* Document new error code.
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
3 years ago
Jordan Borean
9985b8a975
ansible-test pssa update and new rules ( #76256 )
3 years ago
Matt Clay
cae7d2a671
Overhaul ansible-test integration tests. ( #76111 )
...
* Overhaul ansible-test integration tests.
* ansible-test - Fix import test pyyaml usage.
* ansible-test - Remove unused import.
* ansible-test - Fix traceback when pip is unavailable.
* ansible-test - Fix typo in port forwarding message.
* ansible-test - Fix controller logic in requirements install.
* Fix unit tests in ansible-test integration test.
Unit tests are now run for available Python versions which
provide `virtualenv` (Python 2.x) or `venv` (Python 3.x).
3 years ago
Matt Clay
b9694ce4fb
ansible-test - Remove duplicate code.
3 years ago
Matt Clay
b4cbe1adcf
ansible-test - Fix Python real prefix detection.
3 years ago
Matt Martz
66a83314b9
Modernize install ( #76021 )
...
Co-authored-by: Matt Clay <matt@mystile.com>
Co-authored-by: Matt Davis <mrd@redhat.com>
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
3 years ago
Felix Fontein
227f4398c2
Fix choices for return values. ( #76070 )
3 years ago
Felix Fontein
7a28246248
validate_modules: allow 'choices' for return values ( #76009 )
...
* Allow 'choices' for return values.
3 years ago
Jordan Borean
7e19957afa
ansible-test pslint - fix warning with nested objects ( #75792 )
...
* ansible-test pslint - fix warning with nested objects
3 years ago
Matt Clay
1932f0008b
ansible-core - Remove support for Python 2.6. ( #75853 )
3 years ago
Matt Clay
68ab92e22a
ansible-test - Remove support for Python 2.6.
...
Deferring removal of obsolete constraints until container updates are required.
3 years ago
Matt Clay
0d5a9f2138
ansible-test - More PEP 484 type hints.
3 years ago
Jordan Borean
43e1cba8c1
Fix up validate-modules sanity check for PowerShell - ci_complete
3 years ago
Felix Fontein
67ca455829
attributes: support extra value 'not applicable' for support ( #75751 )
...
* Support two extra values 'unknown' and 'not applicable' for support.
* Simplify to only one new state: 'n/a'
* Adhere to the IBM style guide.
3 years ago
Brian Coca
c5d8dc0e11
Add attributes 2/x ( #75619 )
...
* Added attribute information to more modules
rearranged the shared data
platform revamped
use 'details' and avoid overriding description
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/plugins/doc_fragments/action_core.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/plugins/doc_fragments/action_core.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/plugins/doc_fragments/action_core.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/plugins/doc_fragments/action_core.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/plugins/doc_fragments/action_core.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/modules/fail.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/modules/debug.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/modules/command.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/modules/assert.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/plugins/doc_fragments/action_core.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/modules/gather_facts.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/modules/include_vars.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/modules/meta.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/modules/meta.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/plugins/doc_fragments/action_common_attributes.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/plugins/doc_fragments/action_common_attributes.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update lib/ansible/plugins/doc_fragments/action_common_attributes.py
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
3 years ago
Matt Clay
5cb54e8c58
ansible-test - Create injector scripts at runtime. ( #75761 )
...
* ansible-test - Create injector scripts at runtime.
* Set bootstrap.sh shebang at runtime.
* Remove shebang and execute bit from importer.
* Update shebang sanity test.
* Preserve line numbers.
3 years ago
Matt Clay
4ea8d9a782
ansible-test - split controller/target testing ( #75605 )
3 years ago
Matt Clay
99a79e1969
ansible-test - Move code from _data to _util. ( #75495 )
...
* Update paths to match relocated files.
* Update ansible-test symlink paths.
* Update path classification.
* Update MANIFEST.in
* Update sanity test context paths.
* Update sanity ignores.
* Update shebang sanity test.
* Update configure-remoting-ps1 sanity test.
* Update BOTMETA.yml to reflect new paths.
* Update paths in collection loader comments.
* Update Makefile for ansible-test.
* Update docs.
* Add changelog fragment.
3 years ago