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
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
..
cloud prepare_vmware_tests: use module_defaults (#63209) 5 years ago
integration Fix ansible-test integration temp dir location. 5 years ago
provider Add missing var for format string in ansible-test. 5 years ago
sanity Fixes for validate-modules import handling. (#63932) 5 years ago
units Fix ansible-test pytest plugin loading. (#62119) 5 years ago
__init__.py Relocate ansible-test code. (#60147) 5 years ago
ansible_util.py Fix ansible-test PYTHONPATH handling. 5 years ago
cache.py Relocate ansible-test code. (#60147) 5 years ago
changes.py Relocate ansible-test code. (#60147) 5 years ago
classification.py Fix ansible-test collections requirements installation. (#62181) 5 years ago
cli.py Redact sensitive values by default in ansible-test 5 years ago
config.py Add a --venv option to ansible-test. (#61422) 5 years ago
constants.py Relocate ansible-test code. (#60147) 5 years ago
core_ci.py Work around ssh-keygen issue in ansible-test. (#63211) 5 years ago
cover.py Fix ansible-test integration temp dir location. 5 years ago
coverage_util.py Properly exclude tests/output/ from code coverage. 5 years ago
csharp_import_analysis.py Change collection PS util import pattern (#61307) 5 years ago
data.py More ansible-test path handling updates. (#61484) 5 years ago
delegation.py Exclude tmp dir from ansible-test results copy. 5 years ago
diff.py Relocate ansible-test code. (#60147) 5 years ago
docker_util.py Relocate ansible-test code. (#60147) 5 years ago
env.py Overhaul ansible-test test path handling. (#61416) 5 years ago
executor.py fix default collection resolution in adhoc (#63298) 5 years ago
git.py ansible-test - Continue if the git command returns an error (#61605) 5 years ago
http.py Relocate ansible-test code. (#60147) 5 years ago
import_analysis.py More ansible-test path handling updates. (#61484) 5 years ago
init.py Relocate ansible-test code. (#60147) 5 years ago
manage_ci.py Move ansible-test coverage config to test/lib/ 5 years ago
metadata.py Overhaul ansible-test test path handling. (#61416) 5 years ago
payload.py Support delegation testing collections with deps. 5 years ago
powershell_import_analysis.py Change collection PS util import pattern (#61307) 5 years ago
target.py Update collections integration targets path. (#61523) 5 years ago
test.py Fix display of sanity test doc links. 5 years ago
thread.py Relocate ansible-test code. (#60147) 5 years ago
types.py Overhaul ansible-test test path handling. (#61416) 5 years ago
util.py Redact sensitive values by default in ansible-test 5 years ago
util_common.py Fix ansible-test env var mixing running commands. 5 years ago
venv.py Fix ansible-test virtualenv real python search. 5 years ago