summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/provider/layout/ansible.py
Commit message (Collapse)AuthorAgeFilesLines
* ansible-test - Fix traceback when mixing sources (#80801)Matt Clay2023-05-171-0/+15
| | | | | * ansible-test - Fix traceback when mixing sources * ansible-test - Refactor layout error handling
* ansible-test - Improve code formatting (#79983)Matt Clay2023-02-131-20/+22
| | | | | | | | | | | | | | | | | * ansible-test - Add blank lines after docstrings * ansible-test - Preserve formatting of arg pairs * ansible-test - Remove unused string * ansible-test - Remove pointless dict() usage * ansible-test - Clean up initial func arg indenting * ansible-test - Clean up constructor arg indenting * ansible-test - Clean up func arg wrapping * ansible-test - Clean up comma and paren placement
* ansible-test - Avoid use of deprecated type hints. (#78456)Matt Clay2022-08-041-2/+1
| | | | | | | | | * ansible-test - Avoid use of deprecated type hints. PEP 585 deprecated many container types in the `typing` module in favor of the actual types, which support subscripting as of Python 3.9. Conversion of `t.Type` was skipped since PyCharm does not currently recognize it. * ansible-test - Fix `t` and `c` imports/shadowing.
* ansible-test - Use more native type hints. (#78435)Matt Clay2022-08-031-2/+2
| | | | | | | | | | | | | | | | | * ansible-test - Use more native type hints. Simple search and replace to switch from comments to native type hints for return types of functions with no arguments. * ansible-test - Use more native type hints. Conversion of simple single-line function annotation type comments to native type hints. * ansible-test - Use more native type hints. Conversion of single-line function annotation type comments with default values to native type hints. * ansible-test - Use more native type hints. Manual conversion of type annotation comments for functions which have pylint directives.
* ansible-test - split controller/target testing (#75605)Matt Clay2021-09-201-4/+2
|
* Update collections integration targets path. (#61523)Matt Clay2019-08-291-0/+3
| | | | | | | | | | | | * Update collections integration targets path. * Fix integration path handling. * Add collections test target fallback. Also add warnings and errors for common path mistakes. * Improve role target detection.
* Simplify ansible-test target processing. (#61506)Matt Clay2019-08-281-0/+2
| | | | | | | | | | | | * Clean up layout paths for integration tests. * Remove "special" integration test target type. * Remove unnecessary role detection logic. * Remove support for non-sh runme scripts. * Simplify reading of aliases.
* More ansible-test path handling updates. (#61484)Matt Clay2019-08-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move test results vars into layout. * Add test_path to layout. * Add sanity_path to layout. * Clean up layout. * Update change classification. * Improve classification layout. * Relocate common classification code. * Use is_subdir for relocated code. * Relocate ansible test/units/compat/ hack. * Fix variable shadowing. * Remove unused code. * Fix ordering of path tests. * Clean up ansible classification. * Fix hard-coded plugin paths in classification. * Relocate more common classification. * Fix logic. * Fix pylint issue. * Add missing licenses classification.
* Overhaul ansible-test test path handling. (#61416)Matt Clay2019-08-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove .keep files from test/results/ dirs. * Remove classification of test/results/ dir. * Add results_relative to data context. * Use variables in delegation paths. * Standardize file writing and results paths. * Fix issues reported by PyCharm. * Clean up invocation of coverage command. It now runs through the injector. * Hack to allow intercept_command in cover.py. * Simplify git ignore for test results. * Use test result tmp dir instead of cache dir. * Remove old .pytest_cache reference. * Fix unit test docker delegation. * Show HTML report link. * Clean up more results references. * Move import sanity test output to .tmp dir. * Exclude test results dir from coverage. * Fix import sanity test lib paths. * Fix hard-coded import test paths. * Fix most hard-coded integration test paths. * Fix PyCharm warnings. * Fix import placement. * Fix integration test dir path. * Fix Shippable scripts. * Fix Shippable matrix check. * Overhaul key pair management.
* Prepare ansible-test for inclusion in setup.py (#60294)Matt Clay2019-08-081-5/+0
| | | | | | | | | | | | | | | | | * Cache ansible version lookup. * Fix method of determining ANSIBLE_ROOT. * Clean up based on PyCharm inspections. * Generate minimal PKG-INFO without setup.py. * Use ANSIBLE_LIB_ROOT where possible. * Use import instead of subprocess to get version. * Fix install layout type. * Correct required paths message for installs. * Update list of files copied during delegation. * Fix ansible-test entry point. * Fix pylint issue. * Fix version lookup on Python 2.x. * Fix pylint issue. * Remove unwanted print statement.
* Fix ansible-test layout path generation.Matt Clay2019-08-061-9/+1
|
* Relocate ansible-test code. (#60147)Matt Clay2019-08-061-0/+50
* Initial move of `test/runner/` content. `test/runner/lib/` -> `test/lib/ansible_test/_internal/` `test/runner/` -> `test/lib/ansible_test/_internal/data/` * Initial move of `test/sanity/` content. `test/sanity/` -> `test/lib/ansible_test/_internal/data/sanity/` (except `test/sanity/ignore.txt`) * Initial move of `test/units/pytest/` content. `test/units/pytest/` -> `test/lib/ansible_test/_internal/data/pytest/` * Follow-up move of `test/runner/unit/` content. `test/lib/ansible_test/_internal/data/unit/` -> `test/lib/ansible_test/tests/unit/` * Initial move of `ansible.cfg` content. `test/units/ansible.cfg` -> `test/lib/ansible_test/_internal/data/units/ansible.cfg` `test/env/ansible.cfg` -> `test/lib/ansible_test/_internal/data/env/ansible.cfg` * Follow-up move of `data` directory. `test/lib/ansible_test/_internal/data/` -> `test/lib/ansible_test/_data/` * Update import statements. * Add missing __init__.py for unit tests. * Fix path references and miscellaneous issues.