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
Felix Stupp
b1e67cc7df
tests/ansible/README: Replace reference with actual link
...
- working for GitHub and similar Markdown engines
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
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
3dbb0e28ce
tests: List leaked file descriptors
3 years ago
Alex Willmer
18c89de5a9
Remove unused module imports
3 years ago
Alex Willmer
db9e52ce8e
tests: Run containers on macOS with podman, instead of Docker
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
Alex Willmer
a8317c2393
tests: Remove unittest2, use stdlib unittest
...
unittest2 is incomplatible with Python 3.10
3 years ago
Alex Willmer
c87976af40
tests: Fix lingering Python 2 isms
3 years ago
Alex Willmer
5805e30232
tests: Remove unused imports
3 years ago
Alex Willmer
a167f164e4
tests.parent_test: Don't assume interpreter is in /usr/bin
3 years ago
Klaus Zerwes
f1fde91984
Revert "Revert "fixed tests for ansible 2.12""
...
This reverts commit ffb58cd557
.
3 years ago
Klaus Zerwes
2b4f04c554
Revert "Revert "fixed tests for ansible 2.12""
...
This reverts commit 478f286efb
.
3 years ago
Klaus Zerwes
b8dd348b1e
Revert "Revert "fixed tests for ansible 2.12""
...
This reverts commit f82bd3d714
.
3 years ago
Klaus Zerwes
81f075340b
use conditionals in list form
3 years ago
Klaus Zerwes
ffb58cd557
Revert "fixed tests for ansible 2.12"
...
include is deprecated and will be removed in 2.16, so there is some time to fix this left
This reverts commit 19c28b2b1a
.
3 years ago
Klaus Zerwes
f82bd3d714
Revert "fixed tests for ansible 2.12"
...
include is deprecated and will be removed in 2.16, so there is some time to fix this left
This reverts commit 7bc2102d2b
.
3 years ago
Klaus Zerwes
478f286efb
Revert "fixed tests for ansible 2.12"
...
include is deprecated and will be removed in 2.16, so there is some time to fix this left
This reverts commit 2d3970552e
.
3 years ago
Klaus Zerwes
e509c1fb77
Update tests/ansible/integration/interpreter_discovery/ansible_2_8_tests.yml
...
Co-authored-by: Alex Willmer <alex@moreati.org.uk>
3 years ago
Klaus Zerwes
3d450f0f22
fix interpreter discovery tests for changed python interpreter behaviour from ansible 2.12 on
3 years ago
Klaus Zerwes
2d3970552e
fixed tests for ansible 2.12
3 years ago
Klaus Zerwes
7bc2102d2b
fixed tests for ansible 2.12
3 years ago
Klaus Zerwes
19c28b2b1a
fixed tests for ansible 2.12
3 years ago
Alex Willmer
8276b81b7d
ci: Account for pre-existing children in process leak checks
3 years ago
Alex Willmer
d9b8d50d4e
Fix ansible.__version__ comparisons with multi-digit components
...
Ansible 2.8 is older than Ansible 2.10, but `'2.8' < '2.10' == False`
3 years ago
Alex Willmer
e194a6367f
ci: Fix version comparisons involving double digits
...
See https://gist.github.com/moreati/e7507c5b606b12ec0ddafcb7c8debbf1
3 years ago
Alex Willmer
c61c063b4f
Support for Ansible 3 & 4
...
fixes #834
Co-authored-by: Claude Becker (@upekkha)
Co-authored-by: Dolph Mathews (@dolph)
3 years ago
Denis Zalevskiy
84c567e265
Add podman connection support
...
Shameless copy of buildah connection with modifications of invocation to
fit podman CLI.
Signed-off-by: Denis Zalevskiy <dez@aiven.io>
3 years ago
Alex Willmer
da0262cc18
ci: Upgrade faulthandler to non-yanked release
3 years ago
Alex Willmer
1bdf6294e4
ci: Print playbook role execution times
3 years ago
Alex Willmer
9201761348
ci: Format ansible-playbook output as yaml
3 years ago
Alex Willmer
da536e8ae1
Fix stdlib typos that would cause NameError or AttributeError exceptions
3 years ago
Alex Willmer
39d02e9d59
ci: Don't install pycparser and idna seperately
...
AFAICT no longer necessary. These install fine as part of requirements.txt.
3 years ago
Alex Willmer
3c58215a91
tests: Tag Ansible tests
...
This makes it easier to run subsets using ANSIBLE_RUN_TAGS=...
3 years ago
Alex Willmer
147a716b28
CI: Handle NameError traceback on stdout in Ansible 2.10+
3 years ago
Alex Willmer
2b27384a93
CI: Handle variant of unknown user error message seen on MacOS
3 years ago
Alex Willmer
5fc7fcd112
CI: Skip unprivileged become tests on MacOS with Ansible < 2.11
...
Ansible 2.10 and earlier try to use setfacl, which is not present on
MacOS. Ansible 2.11 and later use chmod +a instead.
3 years ago
Dolph Mathews
bd086fd519
fix mac build failure
...
(cherry picked from commit 40b603e098
)
3 years ago
Alex Willmer
042e46682e
Abandon Travis CI We have no credits, and its a PITA to maintain two CI platforms. The tests running on Travis provide very little extra coverage vs Azure Pipelines alone
3 years ago
Alex Willmer
b65b6ae88f
Merge branch 'master' into multi-word-mask
3 years ago