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.
2019-10-30 09:48:21 -07:00
..
__init__.py Fix issues with ansible-test --venv option. (#62033) 2019-09-09 18:32:29 -07:00
ansible_doc.py Fix ansible-doc traceback and sanity test. (#62040) 2019-09-10 00:29:34 -07:00
bin_symlinks.py Additional ansible-test path fixes. (#60300) 2019-08-08 23:51:03 -07:00
compile.py
ignores.py
import.py Fix various import sanity test issues. 2019-10-22 23:00:35 -07:00
integration_aliases.py Overhaul ansible-test test path handling. (#61416) 2019-08-27 23:40:06 -07:00
pep8.py
pslint.py
pylint.py Use .cfg extension for pylint configs. 2019-08-24 07:25:19 -07:00
rstcheck.py
sanity_docs.py
shellcheck.py
validate_modules.py Fixes for validate-modules import handling. (#63932) 2019-10-30 09:48:21 -07:00
yamllint.py