You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/lib/ansible_test/_internal/sanity
Matt Clay e9f8a34dce
Fixes for validate-modules import handling. (#63932)
* Fix validate-modules support for collections.

- Relative imports now work correctly.
- The collection loader is now used.
- Modules are invoked as `__main__`.

* Remove obsolete validate-modules code ignores.

* Handle sys.exit in validate-modules.

* Add check for AnsibleModule initialization.

* Remove `missing-module-utils-import` check.

This check does not support relative imports or collections.

Instead of trying to overhaul the test, we can rely on the `ansible-module-not-initialized` test instead.

* Fix badly named error codes with `c#` in the name.

The `#` conflicts with comments in the sanity test ignore files.

* Add changelog entries.
5 years ago
..
__init__.py Fix issues with ansible-test --venv option. (#62033) 5 years ago
ansible_doc.py Fix ansible-doc traceback and sanity test. (#62040) 5 years ago
bin_symlinks.py Additional ansible-test path fixes. (#60300) 5 years ago
compile.py Relocate ansible-test code. (#60147) 5 years ago
ignores.py Relocate ansible-test code. (#60147) 5 years ago
import.py Fix various import sanity test issues. 5 years ago
integration_aliases.py Overhaul ansible-test test path handling. (#61416) 5 years ago
pep8.py Relocate ansible-test code. (#60147) 5 years ago
pslint.py Relocate ansible-test code. (#60147) 5 years ago
pylint.py Use `.cfg` extension for pylint configs. 5 years ago
rstcheck.py Relocate ansible-test code. (#60147) 5 years ago
sanity_docs.py Relocate ansible-test code. (#60147) 5 years ago
shellcheck.py Relocate ansible-test code. (#60147) 5 years ago
validate_modules.py Fixes for validate-modules import handling. (#63932) 5 years ago
yamllint.py Relocate ansible-test code. (#60147) 5 years ago