Alex Willmer
572636a9d3
Merge pull request #964 from moreati/test-tweaks
...
Test tweaks
2 years ago
Alex Willmer
a3a10cb32e
tests: Upgrade coverage dependency
2 years ago
Alex Willmer
7d79c56cb6
tests: Clarify skipped Poller test reasons
2 years ago
Alex Willmer
edd2868ef6
tests: Don't rely on facts when setting become
...
They won't be available if the play is first, and hence no facts have been
gather in previous play(s), e.g. due to --start-at-task
2 years ago
Alex Willmer
1ed932e8d5
tests: Eliminate MITOGEN_INVENTORY_FILE
...
Replaced with ansible_inventory_sources.
2 years ago
Alex Willmer
900760e913
tests: Increase Ansible timeout to reduce false positives
...
Was failing on my dsktop PC, with a spinning rust HDD
2 years ago
Alex Willmer
526422b74b
tests: Name tasks
...
For easier grep, and easier identification in task_profiler summaries.
2 years ago
Alex Willmer
2e8bf73877
tests: Print filename of a failed task (Ansible >= 2.11)
2 years ago
Alex Willmer
99fe9d48e6
tests: Print task durations
2 years ago
Alex Willmer
4a5d52961f
Merge pull request #959 from adone/mitogen_ssh_options_doc
...
add SSH args into options documentation
2 years ago
Artem Nistratov
00dab14111
add SSH args into options documentation
2 years ago
Alex Willmer
39dfd2dfe8
ci: Upgrade VM Images to macOS 11 and Ubuntu 20.04
2 years ago
Alex Willmer
8cda5f5537
Merge pull request #933 from moreati/ansible6
...
Ansible 6 support
2 years ago
Alex Willmer
f1503874de
ansible_mitogen: Correct ansible_become_pass/ansible_become_password precendence
...
Until Ansible 2.9 it looks like ansible_become_password had higher priority.
From Ansible 2.10 ansible_become_pass has higher priority [1]. Mitogen was not
respecting this.
I may need to rework this further, instatiating the become plugin may have
slowed down execution.
[1] Based on testing with
```
[ubuntus]
become-pass-pass ansible_become_pass=1234
become-pass-password ansible_become_password=1234
become-pass-both ansible_become_password=wrong ansible_become_pass=1234
[ubuntus:vars]
ansible_host=ubuntu2004.local
ansible_user=ubuntu
```
```
- hosts: ubuntus
gather_facts: false
become: true
tasks:
- ping:
```
2 years ago
Alex Willmer
ad4b686836
master.PkgutilMethod: Skip module loaders that raise ValueError
...
e.g. in Ansible 6, ansible-core 2.13
```
[mux 2717] 23:39:11.342416 D mitogen: PkgutilMethod(): _AnsibleCollectionLoader(path=None).get_file_name('ansible.plugins') failed: ValueError('_AnsibleCollectionLoader(path=None) cannot find files for ansible.plugins, only ansible_collections.ansible.builtin.plugins')
```
2 years ago
Alex Willmer
e8ad12e881
Ansible 6 support
...
fixes #929
2 years ago
Alex Willmer
195b400087
ci: Drop Ansible 3 tests to free up CI capacity
2 years ago
Alex Willmer
db114d3bb2
ci: Bump Ansible releases used in tests
2 years ago
Alex Willmer
63e39c1ac5
ci: Remove traces of Ansible < 2.10 (not supported in 0.3.x)
2 years ago
Alex Willmer
e36bbde9ac
tests: Replace uses of assertTrue() with specific methods
2 years ago
Alex Willmer
eb4a7e0ad5
tests: cleanup subprocess file handles in create_child_test
2 years ago
Alex Willmer
64819ecb5f
tests: Regression test for #776 (package/yum/dnf module called twice)
2 years ago
Alex Willmer
24c845379a
tests: Remove redundant regression tags
...
The tag is applied by the playbook that imports this one.
2 years ago
Alex Willmer
db0ffae352
tests: Enable stricter error handling, fix resulting failures
2 years ago
Alex Willmer
c32577295a
tests: Check and/or suppress stderr of subprocesses, reduce shell=True uses
2 years ago
Alex Willmer
216e7c9150
tests: Correct Ansible targets
2 years ago
Alex Willmer
8e79488768
tests: Mark or avoid sudo tasks on localhost
2 years ago
Alex Willmer
f070767dad
tests: Use meaningful play names
2 years ago
SAADY Yousef
c1e72b8225
Fix typo changelog.rst
2 years ago
David Mehren
a30a743ce7
Add ansible.builtin.dnf to ALWAYS_FORK_MODULES
...
The new fully qualified name of the DNF module needs to also be added to the list.
Fixes #832
2 years ago
Alex Willmer
d71fb672e8
Begin v0.3.4.dev0
3 years ago
Alex Willmer
c0d3deeac5
Prepare v0.3.3
3 years ago
Felix Stupp
b1e67cc7df
tests/ansible/README: Replace reference with actual link
...
- working for GitHub and similar Markdown engines
3 years ago
Alex Willmer
89c0cc94d1
Merge pull request #923 from moreati/issue915
...
Fix [DEPRECATION WARNING]: The '_remote_checksum()' method is deprecated.
3 years ago
Alex Willmer
25ea6dde02
ansible_mitogen: Allow mitogen_fetch to bypass slurp module
...
This reapplies an earlier change, when this plugin was first introduced to
Mitogen. The plugin was updated to fix
[DEPRECATION WARNING]: The '_remote_checksum()' method is deprecated.
I've elected to short-circuit the if statemtn logic, rather than
deleting/unindenting, to make the code delta much smaller. This should make it
easier to maintain/update.
Fixes #915
3 years ago
Alex Willmer
0ff9c6e579
ansible_mitogen: Replace fetch action plug from upstream
...
From
be0cdc0ea2/lib/ansible/plugins/action/fetch.py
3 years ago
Alex Willmer
11a61acb32
Merge pull request #922 from moreati/functools.wraps
...
mitogen.utils: Preserve docstring of functions decorated @with_router
3 years ago
Alex Willmer
e101cc4f44
mitogen.utils: Preserve docstring of functions decorated @with_router
...
Co-authored-by: Rezart Qelibari <gast-kontakt+mitogen@astzweig.de>
Replaces #837
Fixes #836
3 years ago
Alex Willmer
a743e831c6
Merge pull request #921 from moreati/import-cleanups
...
Cleanup imports in mitogen, ansible_mitogen, & tests
3 years ago
Alex Willmer
31b3a4eb4a
ansible_mitogen: Standardise __future__ imports to match Ansible
...
Some modules additionally enable unicode_literals (which Ansible doesn't do).
I've chosen not to change that, for now.
3 years ago
Alex Willmer
3dbb0e28ce
tests: List leaked file descriptors
3 years ago
Alex Willmer
109feec6d5
Fix lints found by flake8
3 years ago
Alex Willmer
18c89de5a9
Remove unused module imports
3 years ago
Alex Willmer
566d75d82f
Merge pull request #920 from moreati/unittest-deprecations
...
Add Ansible podman connection support
3 years ago
Alex Willmer
db9e52ce8e
tests: Run containers on macOS with podman, instead of Docker
3 years ago
Alex Willmer
96e20a09d6
ansible_mitogen: Add podman connection plugin
3 years ago
Alex Willmer
0417d4d73a
Replace os.system() with subprocess.check_call()
...
Non-zero return codes should raise an exception, not pass silently.
3 years ago
Alex Willmer
1287d58a54
Use with open(): ... to ensure file objects get closed
3 years ago
Alex Willmer
65809a6f0f
mitogen: Handle Python 3.10 threading depreactions
3 years ago
Alex Willmer
caa20be43e
tests: Use TestCase.assertEqual()
...
assertEquals() is deperecated in unittest
3 years ago