cookiecutter-django-ansible
cookiecutter-django-ansible copied to clipboard
Test the ansible code
What to test?
Like every testing strategy, we need to know what to test.
- Make sure the role syntax is correct.
- Does the role run through all tasks without failing
- Is the role build in an idempotent way? ( a second run cannot create new changes )
- Did the role everything we wanted
I want to generate .travis.yml file for the Ansible project.
I want to improve the cookiecutter-django-ansible's .travis.yml file to check if the generated code is ok.
Reference: https://www.michaelrigart.be/en/blog/testing-ansible-roles-with-travis-ci.html
It seems like a good idea to have an integration test with the following scenario:
- Cookiecut a django project
- Cookiecut an ansible project
- Deploy the project
This may test if the cookiecutter-django-asnible is compatible with cookiecutter-django