I'm writing an inventory plugin that gets a list of online machines from an 
active directory OU structure and dynamically creates groups and host 
details from it.

However, as I write it - I'd like to be able to test the incremental 
changes by just calling parser() directly.

Does anyone have an example call to parser() to test plugins?  For example 
- my definition is :

def parse(self, inventory, loader, path, cache=True):

I temporarily removed all the required variables in order to call it, but 
I'm now at a point I need to test the inventory calls.

Also. any guidance on testing of plugins would be appreciated.

Thanks,

Josh


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to