Matt Clay
277a06f641
Clean up ansible-test cloud plugins. ( #74322 )
...
- Improve code reuse.
- Add missing type hints, fix existing ones and convert them to PEP 484 style.
- Add missing imports and clean up existing ones.
- Add missing docstrings and clean up existing ones.
2021-04-16 18:49:22 -07:00
Matt Clay
b752d07163
Overhaul ansible-test container management.
...
This brings ansible-test closer to being able to support split controller/remote testing.
2021-04-12 12:40:36 -07:00
Matt Clay
73fadc5e97
Clean up code in ansible-test. ( #73379 )
...
* Relocate code to fix type dependencies.
* Fix missing and unused imports.
* Fix type hints.
* Suppress PyCharm false positives.
* Avoid shadowing `file` built-in.
* Use json.JSONEncoder directly instead of super().
This matches the recommended usage and avoids a PyCharm warning.
* Remove redundant regex escape.
* Remove redundant find_python call.
* Use tarfile.open directly.
* Add changelog fragment.
2021-01-26 14:02:08 -08:00
Matt Clay
21f1811ddf
Cleanup provisioning code in ansible-test. ( #73207 )
...
* Remove unused code in ansible-test.
* Remove obsolete endpoint logic from ansible-test.
* Remove obsolete region selection in ansible-test.
* Remove obsolete port logic in ansible-test.
* Clean up ansible-test remote providers.
2021-01-12 16:18:28 -08:00
Matt Clay
d8e0aadc0d
Update ansible-test support for CI providers.
...
Refactored CI provider code to simplify multiple provider support and addition of new providers.
2020-05-14 17:08:30 -07:00
Jill R
96244c4cde
Make AWS test plugin to refer to the aws-permissions-for-integration-tests ( #67665 )
...
Make AWS test plugin to refer to the aws-permissions-for-integration-tests section of the AWS devel docs now that we have them, rather than suggesting to flag down specific users.
2020-02-24 11:56:58 -07:00
Matt Clay
b73e7721df
Mark AWS credentials in ansible-test as sensitive.
...
This avoids displaying the credentials in CI when retrying tests at maximum verbosity.
2019-09-16 20:21:23 -07:00
Matt Clay
d651bda123
Relocate ansible-test code. ( #60147 )
...
* 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.
2019-08-06 14:43:29 -07:00