ansible-haproxy icon indicating copy to clipboard operation
ansible-haproxy copied to clipboard

Test suite

Open reminec opened this issue 8 years ago • 2 comments

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

reminec avatar May 22 '17 12:05 reminec

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.

benwebber avatar May 23 '17 17:05 benwebber

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

publicarray avatar Jun 21 '17 07:06 publicarray