[openstack-dev] [openstack-ansible][openstack-infra] Ansible Role Testing

Jesse Pretorius jesse.pretorius at gmail.com
Mon Nov 2 15:21:39 UTC 2015


Hi everyone,

Currently there are jenkins macros for Ansible role testing that cover
syntax [1] and lint [2] tests. I'd like to add a generic ansible playbook
'run' test which executes a test playbook for the role, and perhaps an
'idempotence' test which executes the test playbook twice and checks that
the role does not change anything on the second run.

It should be straightforward enough to do this using the established
tests/test.yml playbook referred to by the syntax macro.

Before I go ahead and do this, are there any concerns that I may not be
aware of that may cause a conflict here? Are there any additional
suggestions or requirements that should be included?

Are there any better suggestions for the naming of the job - for now my
thinking is simply for the job names to be:
 - ansible-playbook-run
 - ansible-playbook-idempotence

[1]
https://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/macros.yaml#n315
[2]
https://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/macros.yaml#n330

-- 
Jesse
IRC: odyssey4me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151102/6deae690/attachment.html>


More information about the OpenStack-dev mailing list