Commit Graph

20 Commits (93fed65ea22571f3cd2dbc70a355c19b631319a3)

Author SHA1 Message Date
kkjang dd20427db9 Fix expect for python 3 (#24912)
* Fix expect for python 3

- Change generator next to python 3 compatible
- Added tests for expect

* Add pexpect to integration.txt

- add pexpect library to requirements for integration tests

* Use ansible_python_interpreter in integration tests for expect

* Use double-quotes for expect integration tests

* Cast user input to string for expect integration tests

* Cast user input to string earlier in expect integration tests

* Use ansible.module_utils.six.moves input for expect integration tests

* Fix yamllint errors in the expect test

* Use cat to trigger timeout for expect integration tests

* Use realpath filter in expect integration tests

(cherry picked from commit daada2000c)
9 years ago
Matt Clay 3a6fd9448e Limit sphinx version on python 2.6. (#24678)
* Limit sphinx version on python 2.6.
* Fix issues identified by rstcheck.

(cherry picked from commit 9178e176b5)
9 years ago
Matt Clay 126878488f Fix bugs in ansible-test units command. (#24044)
* Handle old versions of coverage.
* Handle old versions of setuptools.
* Detect python version for docker/remote units.
* Add sanity override for test constraints.

(cherry picked from commit d662f6f0db)
9 years ago
Matt Clay 06be3c56a9 Add rstcheck to ansible-test and correct issues. (#23550)
* Add rstcheck to ansible-test.
* Fix rst code-block languages and syntax errors.
* Fix rst inline literals.
* Update python 2 code block to pass tests on py 3.

(cherry picked from commit cb1f57d4e5)
9 years ago
Matt Clay 6883cad07e Temporarily cap pylint version < 1.7.0 in tests.
(cherry picked from commit 4ee96b20a3)
9 years ago
Matt Clay 92c4a3319c Initial pylint support for ansible-test sanity.
(cherry picked from commit 1daa69d685)
9 years ago
Matt Clay c72ac9b230 Add test verification to ansible-test. (#22636)
* Add unified git diff parser.
* Add metadata and diff handling.
* Add test confidence/verification to bot output.

(cherry picked from commit 869449e288)
9 years ago
Matt Clay a7bb04800d Add boto to units requirements for s3 test. 9 years ago
Matt Clay fcac261eef Run unit tests in isolation w/ coverage support. 9 years ago
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.
9 years ago
Matt Clay 91526cd9f2 Enable process isolation for unit tests. 9 years ago
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.
9 years ago
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.
9 years ago
Matt Clay 89898ed734 Update coverage constraints for ansible-test. 9 years ago
Matt Clay 55b9a11468 Require coverage < 4.3.2 to avoid bugs. 9 years ago
Matt Clay f534573dcf Enable first network tests on Shippable. (#20208) 9 years ago
Matt Clay cc3d131f50 Fix group_by test to work with jinja2 >= 2.9. 9 years ago
Matt Clay 7ba47bfd2d Correct test constraints and add sanity check. 9 years ago
Matt Clay 07c68571b6 Require jinja2 < 2.9 until tests pass on 2.9. 9 years ago
Matt Clay 6bbd92e422 Initial ansible-test implementation. (#18556) 9 years ago