ansible-haproxy
ansible-haproxy copied to clipboard
Test suite
Are you interested to a mini test suite (with TravisCI) following this guide ? https://www.jeffgeerling.com/blog/testing-ansible-roles-travis-ci-github
It will check :
- Syntax error in role
- Idempotences
- Install / restart haproxy with sample configuration like in ./test/integration/default/default.yml
- Get a HTTP 200 response on haproxy Stats URI
I'd be very happy with an automated test suite.
We do some more thorough integration testing in devops-coop.minecraft, but Geerling's examples are a great starting point.
Another suggestion: molecule is a very simple way to run the tests with minimal configuration. Quick start: http://molecule.readthedocs.io/en/v1/#quick-start