Commit Graph

32 Commits

Author SHA1 Message Date
Alex Willmer d5e9186289 ansible_mitogen: Fix --ask-become-pass, add test coverage
Previously f1503874de fixed the priority of
ansible_become_pass over ansible_become_password, but broke --ask-become-pass.
Fixes #952.
2024-04-12 10:47:45 +01:00
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
2022-09-12 19:59:51 +01:00
Alex Willmer 64819ecb5f tests: Regression test for #776 (package/yum/dnf module called twice) 2022-07-17 13:44:05 +01:00
Alex Willmer 18c89de5a9 Remove unused module imports 2022-04-23 10:01:06 +01:00
Alex Willmer 3ba1625a99 ci: Reduce verbosity of Ansible integration tests 2021-11-09 19:22:37 +00:00
Alex Willmer a64e966ab9 tests: Add unofficial Tox environments for Ansible tests
These are not part of the official testing regime (tests run for pull
requests). I find them convenient for local development.

Limitations
- Python 2.7+ only. No Python 2.4, 2.5, or 2.6.
- Requires Pythons pre-installed (e.g. DeadSnakes, pyenv)
- No coverage of alternate controller OS (e.g. MacOS)

The environments tested by default are

py27-mode_ansible-ansible2.10
py36-mode_ansible-ansible2.10
py39-mode_ansible-ansible2.10
py27-mode_mitogen
py36-mode_mitogen
py39-mode_mitogen
py27-mode_mitogen-distro_centos7
py36-mode_mitogen-distro_centos7
py39-mode_mitogen-distro_centos7
2021-01-18 21:52:22 +00:00
Steven Robertson b469da399b localhost_ansible tests now pass, adding -vvv to ansible_tests to get more debug info there 2020-10-18 23:25:24 -07:00
Steven Robertson 5fa9f97b66 ansible.posix.synchronize isn't being loaded in tests but is locally, reducing v count to get around azure devops scroll bug 2020-09-20 21:11:04 -07:00
Steven Robertson 8d95172821 warnings silenced, see if can put back in vvv 2020-09-09 23:44:16 -07:00
Steven Robertson 0a46a4e47b logs too verbose, unable to load test page 2020-09-09 23:21:33 -07:00
Steven Robertson b3c94867e2 run tests with verbose logging 2020-09-09 21:28:33 -07:00
Steven Robertson dc94633011 ansible_install.py already installs ansible and collections, so don't need to in ansible_tests.py 2020-09-06 14:32:56 -07:00
Steven Robertson 2c9b6433ef fix another encoding place 2020-09-06 14:25:17 -07:00
Steven Robertson 55c5a274cc install community.general collection 2020-09-03 22:20:51 -07:00
Steven Robertson 5dee6fb891 fix ansible install, also TODO: why do we have 3 almost the same install scripts... 2020-09-03 21:50:19 -07:00
Steven Robertson 6bdcbff7b2 upgrade to ubuntu 18 might fix keyserver thing 2020-04-24 16:12:58 -07:00
Steven Robertson 39b55796c5 forgot sudo 2020-02-18 15:18:14 -08:00
Steven Robertson 57d56a63c0 apt deb should be in cassandra.list 2020-02-18 15:07:40 -08:00
Steven Robertson a8888916b1 sources.list not what was expected, debug commit to find the bad deb entry 2020-02-18 15:01:38 -08:00
Steven Robertson f14144fb9e try and fix bad cassandra apt-get update on azure ubuntu 16.04 vm 2020-02-18 14:56:54 -08:00
Steven Robertson 3d28ed11b7 added wrong key for debian 9 test container 2020-02-16 02:01:17 -08:00
Steven Robertson e407172aa8 add missing apt key 2020-02-16 01:15:28 -08:00
David Wilson 7ca073cdf8 issue #482: ci: add stray process checks to all jobs
List of interesting processes can probably expand more over time.
2019-08-09 20:19:16 +01:00
David Wilson d981a382c9 ci: work around various broken aspects of Travis VM image
- Symlink broken Ubuntu Python package pieces back together. See many
  Google hits about this issue.
- Remove apt sources that can no longer be updated.
2019-06-04 13:38:33 +01:00
David Wilson 838742f000 issue #587: support pausing ansible_tests if flag file exists
To support debugging on Azure
2019-05-27 20:14:36 +01:00
David Wilson 73a0c485cf tests: CI should symlink all contents of ansible/hosts/ 2019-01-22 00:24:43 +00:00
David Wilson 81c93e173f ci: remove duplicate /usr/bin/time call 2019-01-19 02:01:55 +00:00
David Wilson e12c963279 issue #426: make ansible_tests use python_path 2018-11-07 00:52:20 +00:00
David Wilson 8df895a8ac issue #426: make ansible_tests dump inventory. 2018-11-07 00:41:13 +00:00
David Wilson 2a6dbb038f Pythonize, split out and parallelize all jobs. 2018-11-06 18:16:20 +00:00
David Wilson 0b86c4e45f tests: basic (incomplete) Azure Pipelines config 2018-11-06 03:40:56 +00:00
David Wilson 3f414d5967 tests: rename .travis -> .ci, move Azure config into .ci 2018-11-06 01:50:11 +00:00