Alex Willmer
cfa5888547
tests: Print variables on failure of assert tasks
...
Fixes #852
3 years ago
Alex Willmer
ac7505d624
tests: Add centos 8; debian 10, 11; ubuntu 16.04, 18.04, 20.04 test images
4 years ago
Alex Willmer
a8e8cf91cb
tests: Rebuild Docker containers
...
A few changes are bundled in this
- Ansible 2.10.x and Mitogen 0.3.x are used to build nearly all images
(Ansile 2.3.x is retained for CentOS 5, because it uses Python 2.4).
- Tox is used to install/run Ansible, replacing build_docker_images.py
- A static inventory, identifying containers by name rather than ID.
- debian-test image is renamed to debian9-test
- debian9-test image is now based on debian:9
- centos6-test image is now based on moreati/centos6-vault
following the same scheme as centos5-test.
- Images are now uploaded to Amazon Elastic Container Registry (ECR).
See #809 .
- Debian recommended packages aren't installed (e.g. build-essential)
- Python 2.x and Python 3.x are installed wherever available.
- Python Virtualenv is installed wherever available.
4 years ago
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
5a0da02e6c
code review changes, using when statements and adding trailing comma
4 years ago
Steven Robertson
741e99f698
ansible 2.10 no longer has a at the end of the error msg... 🤦
4 years ago
Steven Robertson
e6d7cd3aff
skip vanilla Ansible 2.10 hanging task if not is_mitogen
4 years ago
Steven Robertson
a3b9622f8b
result length is 3 in Azure, 4 on local Mac
4 years ago
Steven Robertson
9f04d6713b
fixed ansible_become_pass test, looks like regression on Ansible's end
4 years ago
Steven Robertson
aac1e7f76a
fix yml parsing
4 years ago
Steven Robertson
fbcf765fb2
oops, yml file can't be empty
4 years ago
Steven Robertson
31670ff993
ignore another flaky test that works locally
4 years ago
Steven Robertson
d978dffe4e
fix ansible version check error
4 years ago
Steven Robertson
5b40b8d155
fix runner_one_job ansible version comparison
4 years ago
Steven Robertson
24d716aab9
oops, 0664 not 0666
4 years ago
Steven Robertson
355e2ffba2
fix fixup_perms2() test
4 years ago
Steven Robertson
22bc5448b1
default copy perms look like 0644 now based on ansible source and docs
4 years ago
Steven Robertson
8481c50a59
ignore synchronize for now, made ticket
4 years ago
Steven Robertson
a7705a3435
add back in ansible tests but don't run synchronize
4 years ago
Steven Robertson
b26a636bba
remove ansible 2.4-specific test
4 years ago
Steven Robertson
fbb92e461f
fix fixup_perms2 default file mode
4 years ago
Steven Robertson
957e295ba9
google will always be up, just use that
5 years ago
Steven Robertson
40946277c3
actual link
5 years ago
Steven Robertson
1ce0091dbc
github url changed, switch to taco pic because tacos are delicious
5 years ago
Steven Robertson
5196fbbadf
missed a few more tests
5 years ago
Steven Robertson
bc87fb0c5d
change more tests to compare to 'discovered_interpreter' for python_path
5 years ago
Steven Robertson
389cee8c70
fix assertion of python_path, it should be always what 'discovered_interpreter' is
5 years ago
Steven Robertson
e7e1c3bc86
note on changed interpreter value functionality, need to fix the test
5 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
5 years ago
Steven Robertson
f2f1a530a6
disabling another test that passes locally on Mac
5 years ago
Steven Robertson
2fb6f880f3
remove aliasing sh to bash because I can't disable SIP which means /bin isn't writeable
5 years ago
Steven Robertson
769cdf93b7
disabling another test
5 years ago
Steven Robertson
378f6d3f77
disabling another test for now
5 years ago
Steven Robertson
6fb0bec4ea
another disable
5 years ago
Steven Robertson
2ceb44c337
another disable
5 years ago
Steven Robertson
0ab5bdb7f9
disabling another test
5 years ago
Steven Robertson
8925f8a9d7
disabled another issue with sudo on this test
5 years ago
Steven Robertson
ebf628a812
disabling another test
5 years ago
Steven Robertson
ecb15cd5f0
disable failing Azure test but that works locally
5 years ago
Steven Robertson
f90ec39ba6
add 'validate_certs: no' for get_url old versions of python
5 years ago
Steven Robertson
cfb5ebbdd3
ansible < 2.5 didn't have version, but had version_compare
5 years ago
Steven Robertson
38939b2c1b
can't run ansible 2.8.0+ tests on ansible < 2.8.0
5 years ago
Steven Robertson
633675ecfc
ensure that /bin/sh is executable
5 years ago
Steven Robertson
79b8814142
bump macOS test vm to replicate what passes locally
5 years ago
Steven Robertson
a7fe74cdba
forgot to dump gid info
5 years ago
Steven Robertson
96f896b56c
added debugging to figure out what's up with become_user and sudo runas gid not found
5 years ago
Steven Robertson
4776074e42
set up symlink to bash for source test
5 years ago
Steven Robertson
ea245bbff2
don't set global executable...
5 years ago
Steven Robertson
c010feec59
to not have to manage various python installs, use simplified 'source' test
5 years ago
Steven Robertson
552ae9c6d3
need become: yes for package install
5 years ago