Well phrased Brian, that was my point which I was having trouble trying to share.
The name "unit testing" versus "integration testing" (especially what happens in stage environments) or "monitoring" is vitally important. You can trust that the "file" module works, so it's great if you test whether the application is operational at the end and things like that. We also have some integration tests for ansible modules that are going to be rolled into our buildsystem and project soon that are more intrusive than our core unit tests. But what you want in production to make sure you have an app running before moving to the next rolling update slice is not a unit test, but something higher level Ansible makes this easy by following a "fail first" mode, if something happens along the way, you don't end up with a system that is only 45% configured and then returned success because it evaluated part of the DAG -- it makes you fix all your problems, and this makes it very very stable in a rolling update process. The modules are all coded to fail when they hit error conditions. On Wed, Dec 11, 2013 at 2:39 PM, Brian Coca <[email protected]> wrote: > FYI, there are quite a few unit test already that verify that 'the file > module' works as advertised, you can run 'make tests' in an ansible > checkout to get them. There should be no need to do this per playbook. > > not all modules or cases are covered but if you want to add tests at this > level I suggest looking into the 'test' dir in the ansible checkout. > > Do you tests all core java libraries when you deploy a war to tomcat? > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Michael DeHaan <[email protected]> CTO, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
