Commit Graph

3064 Commits (27ad214a92a93fe6604ac4d322944ea930809d47)
 

Author SHA1 Message Date
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
4 years ago
Steven Robertson 81076c9da8 fixes setup module relative import fail on some pythons 4 years ago
Steven Robertson 67f1ca97c4
Merge pull request #722 from luizribeiro/patch-1
Fix mitogen_ssh_keepalive_interval documentation
4 years ago
Luiz Ribeiro 0e47280e43
Fix mitogen_ssh_keepalive_interval documentation 4 years ago
Steven Robertson 921f3aa98c
Merge pull request #717 from s1113950/issue716
Handles no tmpdir in fetch command for old ansible versions
4 years ago
Steven Robertson e632310fc4 no tmpdir to remove for old ansible versions in fetch command 4 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
4 years ago
Steven Robertson acde13f9d6 handles a 'wait_for_connection' call right after a task caused a shutdown 4 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
4 years ago
Steven Robertson c12e3d0f92 disable flaky test on py3.6 4 years ago
Steven Robertson 9b1b5c5fb6 fix comment 4 years ago
Steven Robertson 573a3c6161 have to number format option for python2.6 4 years ago
Steven Robertson 54f1b9ca39 bionic doesn't have python2.6... sticking with trusty and downgrading to python3.6 4 years ago
Steven Robertson 6bdcbff7b2 upgrade to ubuntu 18 might fix keyserver thing 4 years ago
Steven Robertson 070fde16f3 upgrade to ubuntu bionic for python3.7 support 4 years ago
Steven Robertson e0666edaac fix formatting 4 years ago
Steven Robertson 530f5e6412 read in ansible installation version always 4 years ago
Steven Robertson db386a0350 enable ansible 2.9.6 tests 4 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
4 years ago
Steven Robertson 957e295ba9 google will always be up, just use that 4 years ago
Steven Robertson 40946277c3 actual link 4 years ago
Steven Robertson 1ce0091dbc github url changed, switch to taco pic because tacos are delicious 4 years ago
Steven Robertson 595569eeab don't run flaky test on python 2.6 4 years ago
Steven Robertson 101e200538 disabled flaky test 4 years ago
Steven Robertson 1f61b9ee67 making commit to retrigger tests' 4 years ago
Steven Robertson 5bf327649f add missing / to python paths 4 years ago
Steven Robertson 2d7e019dd2
Update docs/ansible_detailed.rst
Co-Authored-By: Jacob Floyd <cognifloyd@gmail.com>
4 years ago
Steven Robertson 05f74e3b30 since correctly detecting python3 now, makes 'def disconnect_all()' python3-safe 4 years ago
Steven Robertson 5196fbbadf missed a few more tests 4 years ago
Steven Robertson bc87fb0c5d change more tests to compare to 'discovered_interpreter' for python_path 4 years ago
Steven Robertson 389cee8c70 fix assertion of python_path, it should be always what 'discovered_interpreter' is 4 years ago
Steven Robertson e7e1c3bc86 note on changed interpreter value functionality, need to fix the test 4 years ago
Steven Robertson c959ce010b created temp action obj for 'meta: reset_connection' python interpreter discovery 4 years ago
Steven Robertson 5b8c9da769 _execute_meta doesn't have an Action nooooo this breaks 'meta: reset_connection' because interpreter_discovery needs an Action 4 years ago
Steven Robertson 33e7d0804f fixed tests, and removed the action hack code 4 years ago
Steven Robertson 7411057ba8 adding in python3 as a possible_pythons option for rhel8 4 years ago
Steven Robertson 89d87445c8 able to pass tests running interpreter detection in rhel8 container 4 years ago
Steven Robertson 7d6d76e444 trying to get docker rhel8 working on a Mac host 4 years ago
Steven Robertson cd3b88d9e3 ignore the source command for now; Mac 10.14 uses /bin/sh rather than /bin/sh pointing to /bin/bash and we can't edit it because of SIP 4 years ago
Steven Robertson f2f1a530a6 disabling another test that passes locally on Mac 4 years ago
Steven Robertson a94e3d08f9 didn't need to update all the way to 10.15; since tests pass locally on 10.14.4 will switch to 10.14 4 years ago
Steven Robertson 2fb6f880f3 remove aliasing sh to bash because I can't disable SIP which means /bin isn't writeable 4 years ago