Matt Clay
d910c971b4
Minor ansible-test code cleanup. ( #59052 )
...
* Minor ansible-test code cleanup.
* Fix type annotations.
5 years ago
Matt Clay
6645054329
Code cleanup for test infrastructure. ( #59046 )
...
* Remove useless object inheritance in test code.
* Remove unnecessary pass statements from test code.
* Comment on why certain pylint rules are ignored.
* Add more pylint test contexts.
* Fix import order.
* Remove unused variables.
* Remove unnecessary pass statement.
* Fix bad continuations.
* Remove unnecessary elif.
* Allow legitimate broad except statements.
* Allow legitimate protected access.
* Clean up names to make pylint pass.
5 years ago
Matt Clay
3f2b766d10
Add future and metaclass boilerplate to test code.
...
Continue to ignore:
- test/integration/
- test/legacy/
- test/units/
5 years ago
Matt Clay
bc3a599678
Fix invalid type hints in ansible-test.
5 years ago
Matt Clay
86ad4c99ba
Reorganize util code in ansible-test.
...
Code in util.py that depends on CommonConfig is now in util_common.py.
5 years ago
Matt Clay
520af5cb47
Sanity test fixes for future collections support.
5 years ago
Matt Clay
1e1463401d
Prepare ansible-test for supporting collections. ( #58886 )
...
This is a small but incomplete set of the initial changes for supporting testing of collections with ansible-test.
5 years ago
Sam Doran
8cfd0ba039
Allow for test groups with double digits ( #58532 )
5 years ago
Matt Clay
b06f5634c5
Simplify ansible-test target expansion.
...
Targets are always expanded to full lists now instead of optimizing
for shorter lists by collapsing directories.
This change only affects unit tests and the ansible-doc sanity test,
as they were the only remaining tests using the old behavior.
5 years ago
Matt Clay
535e646a66
Add test for invalid ignore entries.
5 years ago
Matt Clay
817ec5ab48
Add PyYAML check for libyaml support.
6 years ago
Matt Clay
d758d5bab1
Disable code-smell tests on Python 2.6.
6 years ago
Jordan Borean
04cae4134f
Bump deps for ntlm-auth and PSScriptAnalyzer ( #55269 )
6 years ago
Matt Clay
ade6977d66
Fix typo in doc_fragments path.
6 years ago
Jordan Borean
0bf14d61d0
Add PSCustomUseLiteralPath and update PSSA for pslint ( #54080 )
6 years ago
Matt Clay
63ce588382
Update pylint and split runs more to avoid hangs.
6 years ago
Matt Martz
07ff2a6494
cliconf and httpapi are documentable plugins now
6 years ago
Matt Clay
a8e328f474
Overhaul ansible-test code coverage and injector. ( #53510 )
6 years ago
Matt Martz
a639dc6d88
Add a new check to ensure that module arguments are valid python identifiers ( #53278 )
...
* Add a new check to ensure that module arguments are valid python identifiers
* Move the check up higher, out of the if docs block
* Skip validate-modules on py2
* Remove errant alias
6 years ago
Matt Clay
06d83bae05
Support `ignore_changes` in code-smell tests.
6 years ago
Brian Coca
96b3ef5553
Doc fragments to plugins ( #50172 )
...
* promote doc_fragments into actual plugins
change tests hardcoded path to doc fragments
avoid sanity in fragments
avoid improper testing of doc_fragments
also change runner paths
fix botmeta
updated comment for fragments
updated docs
6 years ago
Matt Clay
38eba60849
Fix ansible-test --exclude with delegation.
...
Previously the option worked with integration commands but not units or sanity.
6 years ago
Matt Clay
76bf861308
Upgrade pylint to version 2.1.1. ( #47036 )
...
* Fix issues reported by the latest pylint.
* Split pylint runs into more contexts.
* Upgrade pylint.
6 years ago
Matt Clay
e2b6047514
Add symlinks sanity test. ( #46467 )
...
* Add symlinks sanity test.
* Replace legacy test symlinks with actual content.
* Remove dir symlink from template_jinja2_latest.
* Update import test to use generated library dir.
* Fix copy test symlink setup.
6 years ago
Matt Clay
33a8be9109
Add file exists check in integration-aliases test.
6 years ago
Matt Clay
e53390b3b1
Fix ansible-test multi-group smoke test handling. ( #46363 )
...
* Fix ansible-test smoke tests across groups.
* Fix ansible-test list arg defaults.
* Fix ansible-test require and exclude delegation.
* Fix detection of Windows specific changes.
* Add minimal Windows testing for Python 3.7.
6 years ago
Matt Clay
ac492476e5
Bug fixes and cleanup for ansible-test. ( #45991 )
...
* Remove unused imports.
* Clean up ConfigParser usage in ansible-test.
* Fix bare except statements in ansible-test.
* Miscellaneous cleanup from PyCharm inspections.
* Enable pylint no-self-use for ansible-test.
* Remove obsolete pylint ignores for Python 3.7.
* Fix shellcheck issuers under newer shellcheck.
* Use newer path for ansible-test.
* Fix issues in code-smell tests.
6 years ago
Matt Clay
2056c981ae
Improve ansible-test match error handling.
6 years ago
Matt Clay
5a3000af19
Support comments in ansible-test flat files.
6 years ago
Matt Clay
998badbda5
Fix ansible-test virtualenv use in import test.
6 years ago
Matt Clay
4e489d1be8
Update Shippable integration test groups. ( #43118 )
...
* Update Shippable integration test groups.
* Update integration test group aliases.
* Rebalance AWS and Azure tests with extra group.
* Rebalance Windows tests with another group.
6 years ago
Matt Clay
dff662fa0f
Add plugins to ansible-doc test and fix issues.
7 years ago
Matt Clay
15b6837daf
Add yamllint for plugin docs and fix issues.
7 years ago
Matt Clay
a7d7df1450
Make docs-build sanity test disabled by default.
7 years ago
Matt Clay
8a223009ca
Improve handling of integration test aliases. ( #38698 )
...
* Include change classification data in metadata.
* Add support for disabled tests.
* Add support for unstable tests.
* Add support for unsupported tests.
* Overhaul integration aliases sanity test.
* Update Shippable scripts to handle unstable tests.
* Mark unstable Azure tests.
* Mark unstable Windows tests.
* Mark disabled tests.
7 years ago
Matt Clay
a5cbc0a2c8
Multiple ansible-test fixes. ( #38247 )
...
* Add ansible-test integration --allow-root option.
* Fix destructive target override.
* Fix bad type hint SanityResult -> TestResult.
* Fix skip/python3 filtering with --docker option.
7 years ago
Matt Clay
05220d693d
Complete updates of remaining code-smell tests. ( #37743 )
...
* Add text/binary file support to code smell tests.
* Enhance line-endings code smell test.
* Enhance no-smart-quotes code-smell test.
* Enhance shebang code-smell test.
7 years ago
Matt Clay
a8487feb70
Fix ansible-test python and pip executable search.
7 years ago
Matt Clay
b9b8081a87
Cleanup and enhancements for ansible-test. ( #37142 )
...
* Fix type hint typos.
* Add one-time cloud env setup after delegation.
* Add generate_password to util.
* Add username/password support to HttpClient.
* Avoid pip requirement for ansible-test shell.
* Support provisioning Tower instances.
7 years ago
Matt Clay
dc71c2197f
More code-smell sanity test updates. ( #36830 )
...
* Add test for missing Azure requirements.
* Improve readability.
* Enhance no-unicode-literals code-smell test.
7 years ago
Matt Clay
ac1698099d
Overhaul additional sanity tests. ( #36803 )
...
* Remove unnecessary sys.exit calls.
* Add files filtering for code-smell tests.
* Enhance test-constraints code-smell test.
* Simplify compile sanity test.
* Pass paths to importer on stdin.
* Pass paths to yamllinter on stdin.
* Add work-around for unicode path filtering.
* Enhance configure-remoting-ps1 code-smell test.
* Enhance integration-aliases code-smell test.
* Enhance azure-requirements code-smell test.
* Enhance no-illegal-filenames code-smell test.
7 years ago
Matt Clay
60a24bbdaa
Pass code-smell paths on stdin.
7 years ago
Matt Clay
2b6ac4561b
Add support for enhanced code-smell tests. ( #36332 )
...
* Add support for enhanced code-smell tests:
- Path selection handled by ansible-test.
- Optional path filtering based on extension.
- Optional path filtering based on prefixes.
- Optional lint friendly output.
* Enhance no-assert code-smell test.
* Enhance no-tests-as-filters code-smell test.
7 years ago
Matt Clay
a9b58b84d8
Fix path handling in validate-modules sanity test.
7 years ago
Matt Clay
f46f6c8dec
Temp install of setuptools for import coverage. ( #35752 )
7 years ago
Matt Clay
b9c5147be2
Move import sanity test files into own directory. ( #35593 )
7 years ago
Matt Clay
2d565d14ed
Add pslint sanity test settings.
...
Globally ignore rule: PSUseShouldProcessForStateChangingFunctions
7 years ago
Matt Clay
7abdab6c9e
Convert ansible-test compile into a sanity test.
7 years ago
Matt Clay
e0010f15e4
Add pslint sanity test. ( #35303 )
...
* Add pslint sanity test.
* Fix `no-smart-quotes` sanity test.
* Add docs for `pslint` sanity test.
7 years ago
Matt Clay
8ea0bfe9a3
Miscellaneous test fixes. ( #35301 )
...
* Add missing pylint test for invalid path.
* Fix syntax in integration test.
* Use Write-Output in win_script test script.
* Fix pylint in explain mode.
7 years ago