Matt Clay
99a79e1969
ansible-test - Move code from _data to _util. ( #75495 )
...
* Update paths to match relocated files.
* Update ansible-test symlink paths.
* Update path classification.
* Update MANIFEST.in
* Update sanity test context paths.
* Update sanity ignores.
* Update shebang sanity test.
* Update configure-remoting-ps1 sanity test.
* Update BOTMETA.yml to reflect new paths.
* Update paths in collection loader comments.
* Update Makefile for ansible-test.
* Update docs.
* Add changelog fragment.
3 years ago
Matt Clay
2b463ef197
ansible-test - Upgrade pylint to 2.9.3. ( #75480 )
...
* ansible-test - Upgrade `pylint` to 2.9.3.
* Update pylint ignores due to rule name change.
* Disable pylint deprecated-class for compat code.
* Add pylint ignores for test support content.
* Add ignores for arguments-renamed in lib/ansible/
* Add pylint ignores for collection_loader.
* ansible-test - Ignore deprecations in legacy collection loader.
* ansible-test - Suppress pylint consider-using-with
* ansible-test - Suppress pylint false positive.
* ansible-test - Suppress pylint consider-using-with.
* ansible-test - Suppress pylint deprecated-module
* Disable some of the new pylint suggestions.
* Remove unnecessary six usage from string_format pylint plugin.
* Remove obsolete ignore entry.
3 years ago
Matt Clay
7450e87615
Fix up string splitting to prepare for pylint update. ( #75479 )
...
* Use rsplit with maxsplit in BaseCacheModule.
* Use maxsplit for accessing first item.
* ansible-test - More efficient splitting.
3 years ago
Matt Clay
ca2d2c5f38
ansible-test - Cleanup to prepare for pylint update. ( #75469 )
...
* ansible-test - Fix use of abstractproperty
* ansible-test - Use dict.items() where possible.
* ansible-test - Remove unused code.
* ansible-test - Cleanup issues reported by pylint.
* ansible-test - Use dict.items() where possible.
* ansible-test - Use generator.
3 years ago
Sam Doran
1d2af0b89e
ansible-test - allow for the same listening port on multiple interfaces ( #75387 )
3 years ago
Sam Doran
d8dcfe737a
ansible-test - add ssh debugging logging ( #75374 )
3 years ago
Martin Krizek
8ab418f41b
Disable jinja2_native warning in CI ( #75214 )
3 years ago
Gonéri Le Bouder
5b8fb4dcd3
ansible-test: exposes tiny_prefix variable
...
ansible-test aws provider now creates and exposes a new tiny_prefix
variable to provide a shorter prefix for the AWS tests.
3 years ago
Matt Clay
adc9e4a023
Updated ansible-test azure plugin help message.
4 years ago
Matt Clay
397d3763ea
ansible-test - Do not downgrade cryptography.
4 years ago
Matt Clay
787f722d94
Fix combined coverage file detection.
...
Resolves an issue introduced with https://github.com/ansible/ansible/pull/74719
4 years ago
Matt Clay
ce04056797
Expand delegation options for coverage commands.
4 years ago
Jordan Borean
e875e91363
ansible-test - use pwsh to generate stubs ( #74271 )
4 years ago
Mark Mercado
1906d75907
Adding DigitalOcean cloud support to ansible-test ( #74222 )
4 years ago
Matt Clay
51fd05e76b
Add support for testing with Python 3.10.
4 years ago
Matt Clay
e6d7aecbe4
Reorganize more ansible-test code. ( #74611 )
...
* Split out shell command.
* Relocate ansible-test integration code.
4 years ago
Matt Clay
065fc3ca17
Remove check for legacy core and extras dirs.
4 years ago
Matt Clay
07fb6f7547
Fix imports for the previous commit.
...
Also add a changelog entry.
4 years ago
Matt Clay
92c40f6365
Relocate change classification files.
4 years ago
Matt Clay
5dfc7ee078
Remove Shippable CI provider from ansible-test.
4 years ago
Matt Clay
df2ae06d46
Fix ansible-test imports and paths after refactor.
...
Also include a changelog entry covering this commit and the previous.
4 years ago
Matt Clay
bb3904d299
Reorganize command implementations.
...
This commit only renames existing files.
Changes to adapt imports will occur in a follow-up commit.
4 years ago
Matt Clay
fb0d5609cb
Code cleanup in ansible-test. ( #74529 )
...
* Fix get_available_python_versions calls.
* Make run_playbook vars optional.
* Use ansible_pipelining in inventory.
* Fix type hint.
* Fix order of conditional evaluation.
* Remove unused ibmi platform.
* Add changelog fragment.
4 years ago
Matt Clay
877e5b3dfe
Fix ansible-test AZP build lookup.
4 years ago
Matt Clay
c4e76a7f80
Add collection config support to ansible-test.
4 years ago
Matt Clay
cb7f4f1971
Fix pypi-test-container port conflict.
4 years ago
Matt Clay
6cfe36fa1f
Set ansible-test min controller Python to 3.8. ( #74395 )
...
- Version neutral sanity tests now require Python 3.8 or later.
- Unit tests for controller-only code now require Python 3.8 or later.
4 years ago
Matt Clay
14ff5e213c
Fix ansible-test docker container IP detection.
4 years ago
Matt Clay
e6af2d6827
Fix ansible-test coverage traceback when no data.
...
If no coverage directory exists, ansible-test coverage would traceback.
Now it silently continues just as if the directory was present but empty.
4 years ago
Matt Clay
7786dbbdc1
Split out module/module_utils unit test execution.
...
- Unit tests for `modules` and `module_utils` are now limited to importing only `ansible.module_utils` from the `ansible` module.
- Unit tests other than `modules` and `module_utils` are now run only on Python versions supported by the controller (Python 3.8+).
- Unit tests are now run in separate contexts (`controller`, `modules`, `module_utils`), each using separate invocations of `pytest`.
4 years ago
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.
4 years ago
Matt Clay
b752d07163
Overhaul ansible-test container management.
...
This brings ansible-test closer to being able to support split controller/remote testing.
4 years ago
Matt Clay
becf941673
Add PyPI proxy container for tests on Python 2.6.
4 years ago
Sam Doran
4df9ea86c2
ansible-test - change diff mathching regexp so prefixes are optional
...
The `a/` and `b/` prefixes can be disabled in the `git diff` output by setting
`diff.noprefix` to `true`. The output is still a valid diff, but `ansible-test` would
raise an exception since without the prefixes, it thought the diff line was invalid.
4 years ago
Sam Doran
7b79b69369
ansible-test - ensure trailing separator is added for connection unit test target ( #74176 )
...
For connection units tests, if the `__init__.py` file is modified, the trailing separator was
not added, making the target invalid.
4 years ago
Matt Clay
b75844af45
Fix ansible-test coverage exporting.
...
ci_complete
ci_coverage
4 years ago
Mark Chappell
ed18fcac3b
Ensure unit test paths for connection and inventory plugins are based on the context ( #73877 )
4 years ago
Matt Clay
15064c7a42
Update `resource_prefix` syntax for ansible-test.
4 years ago
Felix Fontein
29aef842d7
ansible-test: make sure tests are also run for the new plugin types ( #73599 )
...
* Make sure tests are also run for the new plugin types.
* New plugin types are not documentable.
4 years ago
Matt Clay
d092356fc5
Fix ansible-test handling of egg-info.
...
Resolves https://github.com/ansible/ansible/issues/67990
4 years ago
Felix Fontein
1f3a90270b
Import sanity test for plugins ( #72497 )
4 years ago
Matt Clay
f533d46572
Fix ansible-test constraints issues. ( #73578 )
...
* Silence Python 3.5 EOL notice in pip.
* Skip import test on compat/selinux.py utils.
* Improve Python version skip warning.
* Use Python 3.6 as minimum Python for sanity tests.
* Improve min Python handling for code-smell tests.
* Overhaul test-constraints sanity test.
* Merge sanity test constraints with requirements.
* Remove legacy content specific constraints.
* Add changelog fragment.
4 years ago
Matt Clay
8a175f59c9
Upgrade pylint used by ansible-test. ( #70155 )
...
* Upgrade pylint and deps in ansible-test.
* Enable pylint on Python 3.9.
* Update pylint config.
* Add ignore for vendored six.
* Add ignores for support plugins.
* Fix issue reported by pylint.
4 years ago
Matt Clay
1a2da990a4
Temporary fix for cryptography issues. ( #73530 )
4 years ago
Florian Heiderich
8f887b7adb
add self-signed https endpoint for ansible-test ( #73463 )
...
* introduce self-signed.ansible.http.tests
* forwarding of port 444
* forward port 8444 to port 444 on http test container
* Fix port forwarding for Windows under docker
* add changelog fragment
Co-authored-by: Jordan Borean <jborean93@gmail.com>
4 years ago
Matt Clay
a9b5bebab3
Overhaul ansible-test SSH key management. ( #73451 )
...
* Pass remote.sh to shell over stdin.
* Pass docker.sh to shell over stdin.
* Standardize SSH key management.
* Update docker containers.
4 years ago
Matt Clay
c7cb944315
Always use python exec wrapper in ansible-test.
4 years ago
Matt Clay
ded2d0b90e
Use `sh` for ansible-test raw remote shell.
4 years ago
Matt Clay
418b9b781d
No longer warn about missing pip/python pair.
...
This warning was intended to help improve test environment configuration.
However, it has ended up producing mostly non-actionable warning noise instead.
In most situations a missing pip or python should result in test failures.
Reporting a missing pip also implies that it should be used by tests, which is not the case.
Tests should be invoking pip as a python module with the appropriate python interpreter instead.
4 years ago
Matt Clay
672941fb0d
Add test support for Python 3.8 on RHEL and FreeBSD. ( #73393 )
...
* Support Python 3.8 on RHEL 8.2+ in ansible-test.
* Support Python 3.8 on FreeBSD in ansible-test.
* Use libyaml with PyYAML on FreeBSD.
4 years ago