Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
Is there a library/framework that enables me to do unit testing to Ansible playbooks?
58 views
Skip to first unread message
Sean
unread,
Mar 23, 2015, 7:53:50 PM
3/23/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
In Chef's world, there exists ChefSpec, which basically enables writing and running of 'unit-tests' against the Chef Cookbooks.
Is there a counterpart in Ansible community? (If not, how hard to write one as an engineering exercise?)
Thanks,
Sean
Brian Coca
unread,
Mar 23, 2015, 8:56:54 PM
3/23/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
if you look at test/ in the repo you'll see we use ansible itself to
test, mostly centered around the assert module.
--
Brian Coca
Jonathan Davila
unread,
Mar 24, 2015, 9:39:24 AM
3/24/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
To add to Brian's response, here is a link to the documentation where a few strategies are enumerated along with example
http://docs.ansible.com/test_strategies.html
Reply all
Reply to author
Forward
0 new messages