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
4 years ago
Steven Robertson
91f55a60bc
vanilla ansible is now running but is really slow; bump timeout
4 years ago
Steven Robertson
90f40ada6c
try vanilla ansible 2.10 on Mac
4 years ago
Steven Robertson
ef029726e2
travis is having trouble running vanilla Ansible so migrating to Azure
4 years ago
Steven Robertson
855750a71f
install all required debops extras for ansible
4 years ago
Steven Robertson
8b845974fb
netaddr needs to be on the Ansible controller, not in target nodes
4 years ago
Steven Robertson
4721334dc9
forgot to update apt cache
4 years ago
Steven Robertson
428f4d8703
turn off host key checking with ad-hoc python-netaddr install and add back in debops command line
4 years ago
Steven Robertson
550265d426
don't need to ci_lib run setting up python-netaddr
4 years ago
Steven Robertson
88dde70b5c
need to specify strategy plugin for ansible ad-hoc
4 years ago
Steven Robertson
db5e7032c8
need python-netaddr in docker target containers for debops
4 years ago
Steven Robertson
ce91d5ee25
make sure to apt-get update first before install
4 years ago
Steven Robertson
c96dddae28
apt needs sudo
4 years ago
Steven Robertson
1dadae03a9
install missing python-netaddr for debops
4 years ago
Steven Robertson
cf3d646613
fix custom_python_new_style_missing_interpreter, looks like Ansible 2.10 changed how new-style module detection works
4 years ago
Steven Robertson
ae4f6ece41
add workaround for TravisCI 4MB log limit job termination
4 years ago
Steven Robertson
a561a8bad2
something broke with Mac 10.14 with dscl, before trying a hack see if OS upgrade works
4 years ago
Steven Robertson
86e63fda85
don't run sshpass install through run
4 years ago
Steven Robertson
ddb87f6b0c
azure tests don't like sshpass v1.06 so pegging to 1.05
4 years ago
Steven Robertson
b68d4e9a7f
fix Error: Calling Non-checksummed download of sshpass formula file from an arbitrary URL is disabled
4 years ago
Steven Robertson
b469da399b
localhost_ansible tests now pass, adding -vvv to ansible_tests to get more debug info there
4 years ago
Steven Robertson
4b37699b45
missed a format call var
4 years ago
Steven Robertson
ce57e81b22
remove ansible from github tag install setup in test config files
4 years ago
Steven Robertson
33e176d62e
add support for ansible_collections site-package (from pip ansible==2.10.0 install) + switch to ansible 2.10.0 rather than github tag
4 years ago
Steven Robertson
207e36194d
try and get some visibility into test failures
4 years ago
Steven Robertson
e1e28f14e3
fix venv install
4 years ago
Steven Robertson
2a06d493de
python3 needs python3-venv
4 years ago
Steven Robertson
d7d29ad9c1
tests are in a bad state...somehow both apt and brew can exist on azure using a linux job with an ubuntu vm image???
4 years ago
Steven Robertson
be70dc9e5d
need to group all python install commands together
4 years ago
Steven Robertson
3404654ab4
python3 tests are broken...
4 years ago
Steven Robertson
7f58af6977
try a different psycopg2 package as well
4 years ago
Steven Robertson
9a34d5c2c9
need to install psycopg2-binary in the created venv
4 years ago
Steven Robertson
9bef6fe784
fix 'struct _is' error hopefully
4 years ago
Steven Robertson
ed2473400b
brew is missing postgresql
4 years ago
Steven Robertson
24c0737d37
awesome, /usr/local/bin/python2.7 already exists
4 years ago
Steven Robertson
3831f691c1
missed a format
4 years ago
Steven Robertson
af08fb1276
wrong letter 🤦 what am I doing
4 years ago
Steven Robertson
1154a979b1
missed a )
4 years ago
Steven Robertson
c73f19f276
missed a ,
4 years ago
Steven Robertson
7507b88255
clean up azure python version used
4 years ago
Steven Robertson
a6c293d100
try running ansible_mitogen 2.10 tests with python3
4 years ago
Steven Robertson
a7705a3435
add back in ansible tests but don't run synchronize
4 years ago
Steven Robertson
ff8a276186
turn off failing Ansible-only tests for now, also raising errors to see what Azure is gonna do with collections
4 years ago
Steven Robertson
f757dbcb82
removed duplicate install and added debug dump of collection loading to see what tests are doing
4 years ago
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
4 years ago
Steven Robertson
2303bef7c8
any amount of v is too much v, even when viewing tests in raw log file mode
4 years ago
Steven Robertson
5aedb5f157
add missing collections 🤦
4 years ago
Steven Robertson
d017b60f47
2 v freezes things...this is impossible to debug
4 years ago
Steven Robertson
40d53bcf96
3 v is too much v for azure devops to render
4 years ago
Steven Robertson
f91cbf4d00
test cleanup and trying to replicate synchronize fails
4 years ago