Matt Clay
1ce2ea0b6c
Fix ansible-test handling of deleted test targets.
2017-02-17 11:16:24 -08:00
Matt Clay
2192c1eb02
Fix ansible-test selection of inventory file.
2017-02-16 15:03:27 -08:00
John R Barker
5e28d3a15c
network_cli shouldn't be specified anymore ( #21458 )
2017-02-15 12:58:12 +00:00
Matt Clay
d54bc09fae
Consider module_utils deps when running tests. ( #21382 )
...
* Skip pep8 analysis when --explain is used.
* Fix return type annotations.
* Match line length requirement of PEP 8 config.
* Consider module_utils deps when running tests.
2017-02-13 18:49:36 -08:00
Peter Sprygada
7f1c43e597
updates ios modules to support persistent socket ( #21258 )
...
* updates all ios modules to support persistent socket
* adds ios action plugin to connect to device
* adds exec_command() to ios shared module
* fixes ios_config and ios_template local action
* update all unit test cases
* adds base test module for ios module testing
2017-02-13 15:22:14 +00:00
Matt Clay
4189592701
Revert "Enable process isolation for unit tests."
...
This reverts commit 91526cd9f2
.
Removing this feature primarily because it interferes with
collecting proper code coverage results. I may restore the
feature later if that can be resolved.
2017-02-09 11:10:06 -08:00
Matt Clay
91526cd9f2
Enable process isolation for unit tests.
2017-02-08 14:36:42 -08:00
Matt Clay
f16ee2841b
Add retries to Shippable CI scripts. ( #21108 )
...
* Add retry.py for auto-retry in CI scripts.
* Add retries to other and units CI scripts.
2017-02-07 16:33:45 -08:00
Matt Clay
bce5fc7d96
Use us-east-2 for Windows CI on Shippable.
2017-02-06 15:01:20 -08:00
Matt Clay
309a37de86
Add --debug
option to ansible-test
.
2017-02-01 16:05:03 -08:00
Toshio Kuratomi
1609afbd12
Unittests for some of module_common.py ( #20812 )
...
* Unittests for some of module_common.py
* Port test_run_command to use pytest-mock
The use of addCleanup(patch.stopall) from the unittest idiom was
conflicting with the pytest-mock idiom of closing all patches
automatically. Switching to pytest-mock ensures that the patches are
closed and removing the stopall stops the conflict.
2017-01-30 13:51:27 -08:00
Matt Clay
6ef1a6aeb6
Add pep8
to ansible-test
. ( #20745 )
...
The rule sets and legacy file list are a first draft.
It is likely that they will need to be revised.
2017-01-27 12:34:00 -08:00
Dag Wieers
3a0a74dc18
Make test/runner less verbose when spawning instances
...
As discussed on IRC
2017-01-27 12:27:46 -08:00
Matt Clay
5503b89831
Run fewer tests for winrm config script changes.
2017-01-26 15:54:01 -08:00
Matt Clay
76d563af79
Temporarily switch Windows tests to us-east-1.
...
Will switch back to us-east-2 after AWS limit increase is done.
2017-01-26 07:37:14 -08:00
Matt Clay
fa7f84217b
Add startup checks to ansible-test.
2017-01-24 13:08:04 -08:00
Matt Clay
61e6e7868c
Improve jinja2 test coverage. ( #20533 )
...
* Run `template` test on latest jinja2 version.
* Update jinja2 install for groupby_filter.
* Clean test output dir for each test.
2017-01-20 16:38:52 -08:00
Matt Clay
7ed67746cf
Enable Windows 2016 on Shippable.
...
Also launch Windows instances on us-east-2 and all others on us-east-1.
2017-01-18 18:37:42 -08:00
Matt Clay
4ba9f63afe
Use multiple AWS regions in ansible-test. ( #20429 )
...
* Move ansible-test EnvironmentConfig to util.
* Use multiple AWS regions in ansible-test.
2017-01-18 16:31:34 -08:00
Matt Clay
4673a9c9c2
Generate ssh key once for network tests.
2017-01-18 13:33:12 -08:00
Matt Clay
4c97bad28e
Update ansible-test network change classification.
2017-01-18 12:19:31 -08:00
Matt Clay
89898ed734
Update coverage constraints for ansible-test.
2017-01-17 17:24:54 -08:00
Matt Clay
3c51ce56fd
Enable more network support in ansible-test. ( #20372 )
...
* Only start platform instances with tests selected.
* Enable ios on Shippable.
* Show inventory in explain mode.
* Fix indentation of generated network inventory.
* Update classification of network module_utils.
2017-01-17 16:24:05 -08:00
Matt Clay
dbb89549ff
Improve ansible-test error handling and timeouts. ( #20328 )
...
* Eliminate warning/retry on old instance check.
* Increase instance start timeout for windows.
2017-01-16 18:59:44 -08:00
Matt Clay
55b9a11468
Require coverage < 4.3.2 to avoid bugs.
2017-01-16 18:00:55 -08:00
Matt Clay
b5d5888b6e
Add support for ios to ansible-test.
2017-01-16 15:05:56 -08:00
Matt Clay
e2bd71ac02
Clean up inventory generation in ansible-test. ( #20313 )
2017-01-16 12:31:17 -08:00
Matt Clay
a59ce3a7f9
Add retry on failure to get instance.
2017-01-13 18:35:28 -08:00
Matt Clay
f3130898bb
Retry instance start on error.
2017-01-13 16:49:30 -08:00
Matt Clay
f534573dcf
Enable first network tests on Shippable. ( #20208 )
2017-01-12 18:23:53 -08:00
Matt Clay
d8733a5455
Complete initial network-integration support.
2017-01-12 12:39:00 -08:00
Matt Clay
300181cfd3
Send current winrm config to ansible-core-ci.
2017-01-10 20:05:47 -08:00
Matt Clay
f340b8d14f
Add test support for python 3.6.
2017-01-10 14:34:42 -08:00
Matt Clay
cc3d131f50
Fix group_by test to work with jinja2 >= 2.9.
2017-01-09 15:20:34 -08:00
Matt Clay
7ba47bfd2d
Correct test constraints and add sanity check.
2017-01-08 16:44:31 -08:00
Matt Clay
07c68571b6
Require jinja2 < 2.9 until tests pass on 2.9.
2017-01-08 00:59:56 -08:00
Matt Clay
3ec7243918
Run all win tests for winrm config script changes.
2017-01-08 00:57:51 -08:00
Brian Coca
57f8b791d6
consolidated docs
...
point to new doc locations
removed non existing dirs
2017-01-06 09:16:59 -05:00
Matt Clay
b7780ca530
Pass DOCKER_* env vars to docker in ansible-test.
2017-01-04 13:23:16 -08:00
Robin Roth
9f2d22425b
Run tests on opensuse42.2
...
* add to shippable
* add to completion/readme
* Fixes #18645
2017-01-03 12:20:10 -08:00
Matt Clay
68346b128f
Update Fedora tests to use releases 24 and 25.
2017-01-03 11:12:32 -08:00
Matt Clay
dac226de4a
Improve ansible-test completion and messaging. ( #19627 )
...
* Simplify type annotation of args.docker_util.
* Improve error messaging for ansible-doc test.
* Add completion for docker, remote and windows.
2016-12-22 09:57:17 -08:00
Matt Clay
422857166b
Remove legacy test alias migration script. ( #19629 )
...
* Require code-smell tests to be files.
* Add sanity check for integration test aliases.
* Remove migration script for test aliases.
2016-12-21 16:46:28 -08:00
Matt Clay
9b5c782a0b
Use docker pull
by default in ansible-test.
2016-12-14 20:11:43 -08:00
Matt Clay
f28b5a0ed8
Add --tox-sitepackages option to ansible-test.
2016-12-13 16:57:23 -08:00
Matt Clay
45772b961f
Add private fork CI support to ansible-test.
2016-12-13 15:49:57 -08:00
Matt Clay
1c9a58a885
Run all tests when no last successful commit.
...
(cherry picked from commit 2e56035fddfd04eb084bd977fc1ee2f35c2f5283)
2016-12-08 11:35:20 -05:00
Matt Clay
5628e260f2
Relocate module unit tests. ( #18812 )
...
* Relocate module unit tests.
* Fix classification of unit test changes.
2016-12-08 11:35:20 -05:00
Matt Clay
573078fc6b
Fix unit test directory path target.
2016-12-08 11:35:20 -05:00
Matt Clay
47083f145a
Don't error if pytest skips all unit tests.
2016-12-08 11:35:20 -05:00
Matt Clay
8e951b9f98
Remove legacy test/samples
directory.
2016-12-08 11:35:20 -05:00
Matt Clay
7d3e2b2121
Verify path before assigning to sanity test.
2016-12-08 11:35:19 -05:00
Matt Clay
14a2757116
Correct change classification for network plugins.
2016-12-05 20:07:18 -05:00
Matt Clay
d2af88ba8a
Do not replace existing test skip lists.
2016-12-01 08:45:11 -08:00
Adrian Likins
47a7cb733a
use log attribute %(process)d instead of os.getpid ( #18691 )
2016-11-30 16:26:47 -08:00
Adrian Likins
ba56c87566
Add SSH_AUTH_SOCK to default env
...
So ssh-agent works when using locally.
2016-11-30 15:53:15 -08:00
Matt Clay
bee58fe890
Fix compile skip path handling for targeted tests.
2016-11-30 09:47:56 -08:00
Matt Clay
6bbd92e422
Initial ansible-test implementation. ( #18556 )
2016-11-29 21:21:53 -08:00