Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Test the ansible code #27

Open
Ivaylo-Bachvarov opened this issue Sep 3, 2016 · 1 comment
Open

Test the ansible code #27

Ivaylo-Bachvarov opened this issue Sep 3, 2016 · 1 comment

Comments

@Ivaylo-Bachvarov
Copy link
Member

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
Copy link
Member Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant