Commit Graph

3073 Commits (77f95b1e7ac1c43f03bc885e4c0d931e2b2c00b9)
 

Author SHA1 Message Date
Alex Willmer 77f95b1e7a tests: Disable code coverage 4 years ago
Alex Willmer b250a5756c tests: Throttle docker pulls for Ansible tests
I hope this will prevent AWS Elastic Container Registry returning 429:
Too Many Requests error, due to the burst of activity from multiple VMs,
when a CI build begins.

(cherry picked from commit 25446cd698)
4 years ago
Alex Willmer dd3a6f18d1 tests: docstrings for ci_lib
(cherry picked from commit 99235071a3)
4 years ago
Alex Willmer eabb7e37b6 tests: Use AWS Elastic Container registry for test images
This replaces use of Docker Hub, which now rate limits API calls and
causing CI builds to fail.

refs #791

(cherry picked from commit 1c7e107809)
4 years ago
Alex Willmer eee5006a68 tests: Avoid double docker pull on Azure Pipes
(cherry picked from commit adbed36dd9)
4 years ago
Alex Willmer 642bb35973 Fix DjangoMixin test imports for setuptools >= 50.0
(cherry picked from commit f162a8a7c5)
4 years ago
Alex Willmer af987b481b Update badges for new mitogen-hq organisation
Moving the repository from dw/mitogen to mitogen-hq/mitogen has confused a few external services. This is part of the cleanup

(cherry picked from commit 5b56f9a33a)
4 years ago
David Wilson 285ca85cad Bump copyright year and use generic author name (testing Travis)
(cherry picked from commit fad6eb1b47)
4 years ago
Scott Buchanan b7d5c745fd correct latest ansible version supported
(cherry picked from commit fa7c0191ee)
4 years ago
Steven Robertson 27ad214a92
Merge pull request #759 from moreati/callback_me_maybe
tests: Fix AttributeError in callback plugins used by test suite
4 years ago
Alex Willmer 79b4c0f815 tests: Fix AttributeError in callback plugins used by test suite
CALLBACK_VERSION et al are documented as required in
https://docs.ansible.com/ansible/2.10/dev_guide/developing_plugins.html#callback-plugins.
The need for document_fragment is noted in
cfa8075537/lib/ansible/plugins/callback/default.py (L28-L32)

Fixes #758

This addresses the following error, seen while running
`ansible_tests.py`.

```
TASK [Gathering Facts gather_timeout=10, gather_subset=['all']]
****************
task path:
/home/alex/src/mitogen/tests/ansible/regression/issue_109__target_has_old_ansible_installed.yml:4
[WARNING]: Failure using method (v2_runner_on_start) in callback plugin
(<ansible.plugins.callback.nice_stdout.CallbackModule object at
0x7f76b3dad090>): 'show_per_host_start'
Callback Exception:
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py",
line 372, in send_callback
    method(*new_args, **kwargs)
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/default.py",
line 240, in v2_runner_on_start
    if self.get_option('show_per_host_start'):
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/__init__.py",
line 91, in get_option
    return self._plugin_options[k]
Callback Exception:
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py",
line 372, in send_callback
    method(*new_args, **kwargs)
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/default.py",
line 240, in v2_runner_on_start
    if self.get_option('show_per_host_start'):
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/__init__.py",
line 91, in get_option
    return self._plugin_options[k]
[task 339882] 00:00:08.172036 D ansible_mitogen.affinity: CPU mask for
WorkerProcess: 0x000004
Callback Exception:
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py",
line 372, in send_callback
    method(*new_args, **kwargs)
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/default.py",
line 240, in v2_runner_on_start
    if self.get_option('show_per_host_start'):
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/__init__.py",
line 91, in get_option
    return self._plugin_options[k]
```
4 years ago
Steven Robertson 5942bfb7d5
Merge pull request #757 from moreati/issue756
ssh: Match newer ssh host key prompt that accepts the fingerprint
4 years ago
Alex Willmer b0ce29dcfd ssh: Match newer ssh host key prompt that accepts the fingerprint
This fixes an ERROR in test_accept_enforce_host_keys() while running the
test suite.

Fixes #756
4 years ago
Steven Robertson a60c6c14a2
Merge pull request #723 from s1113950/fixTests
Fixes tests
4 years ago
Steven Robertson bacc752ff2 Pegs python 2 version, removes unused imports, fixes sudden ssh dir with bad perms, generates key for sudo user as well in tests 4 years ago
Steven Robertson a18be5afef
Merge pull request #728 from nmattia/nm-fix-typo
Fix typo in Ansible documentation
4 years ago
Nicolas Mattia 4d48f140a8 Fix typo in Ansible documentation 4 years ago
Steven Robertson 3a52b44b6b
Merge pull request #719 from s1113950/issue672
Resolves ansible 2.9+, Mitogen, and Python 3.5 setup module issue
5 years ago
Steven Robertson 81076c9da8 fixes setup module relative import fail on some pythons 5 years ago
Steven Robertson 67f1ca97c4
Merge pull request #722 from luizribeiro/patch-1
Fix mitogen_ssh_keepalive_interval documentation
5 years ago
Luiz Ribeiro 0e47280e43
Fix mitogen_ssh_keepalive_interval documentation 5 years ago
Steven Robertson 921f3aa98c
Merge pull request #717 from s1113950/issue716
Handles no tmpdir in fetch command for old ansible versions
5 years ago
Steven Robertson e632310fc4 no tmpdir to remove for old ansible versions in fetch command 5 years ago
Steven Robertson 74b7934e37
Merge pull request #710 from s1113950/issue655
Handles a `wait_for_connection` call right after a task caused a shutdown
5 years ago
Steven Robertson acde13f9d6 handles a 'wait_for_connection' call right after a task caused a shutdown 5 years ago
Steven Robertson cee088fa80
Merge pull request #705 from s1113950/ansible2.9.6
Adds basic Ansible 2.9.6 support, tests use desired Ansible version now, and disabled flaky test on py3.6
5 years ago
Steven Robertson c12e3d0f92 disable flaky test on py3.6 5 years ago
Steven Robertson 9b1b5c5fb6 fix comment 5 years ago
Steven Robertson 573a3c6161 have to number format option for python2.6 5 years ago
Steven Robertson 54f1b9ca39 bionic doesn't have python2.6... sticking with trusty and downgrading to python3.6 5 years ago
Steven Robertson 6bdcbff7b2 upgrade to ubuntu 18 might fix keyserver thing 5 years ago
Steven Robertson 070fde16f3 upgrade to ubuntu bionic for python3.7 support 5 years ago
Steven Robertson e0666edaac fix formatting 5 years ago
Steven Robertson 530f5e6412 read in ansible installation version always 5 years ago
Steven Robertson db386a0350 enable ansible 2.9.6 tests 5 years ago
Steven Robertson a5fe4a9fac
Merge pull request #658 from s1113950/complexAnsiblePythonInterpreterArg
Adds support for special ansible_python_interpreter values, ansible_python_interpreter discovery, and fixes tests
5 years ago
Steven Robertson 957e295ba9 google will always be up, just use that 5 years ago
Steven Robertson 40946277c3 actual link 5 years ago
Steven Robertson 1ce0091dbc github url changed, switch to taco pic because tacos are delicious 5 years ago
Steven Robertson 595569eeab don't run flaky test on python 2.6 5 years ago
Steven Robertson 101e200538 disabled flaky test 5 years ago
Steven Robertson 1f61b9ee67 making commit to retrigger tests' 5 years ago
Steven Robertson 5bf327649f add missing / to python paths 5 years ago
Steven Robertson 2d7e019dd2
Update docs/ansible_detailed.rst
Co-Authored-By: Jacob Floyd <cognifloyd@gmail.com>
5 years ago
Steven Robertson 05f74e3b30 since correctly detecting python3 now, makes 'def disconnect_all()' python3-safe 5 years ago
Steven Robertson 5196fbbadf missed a few more tests 5 years ago
Steven Robertson bc87fb0c5d change more tests to compare to 'discovered_interpreter' for python_path 5 years ago
Steven Robertson 389cee8c70 fix assertion of python_path, it should be always what 'discovered_interpreter' is 5 years ago
Steven Robertson e7e1c3bc86 note on changed interpreter value functionality, need to fix the test 5 years ago
Steven Robertson c959ce010b created temp action obj for 'meta: reset_connection' python interpreter discovery 5 years ago