cookiecutter-django-ansible icon indicating copy to clipboard operation
cookiecutter-django-ansible copied to clipboard

Test the ansible code

Open Ivaylo-Bachvarov opened this issue 8 years ago • 1 comments

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

Ivaylo-Bachvarov avatar Sep 03 '16 10:09 Ivaylo-Bachvarov

It seems like a good idea to have an integration test with the following scenario:

  1. Cookiecut a django project
  2. Cookiecut an ansible project
  3. Deploy the project

This may test if the cookiecutter-django-asnible is compatible with cookiecutter-django

Ivaylo-Bachvarov avatar Sep 07 '16 10:09 Ivaylo-Bachvarov