Hi,

I've got some defines that have different behaviour depending on what tags 
a node has been tagged with (one class adds some tags to enable support for 
something else).

Has anyone got any advice on how best to test this with rspec-puppet?

I've spent quite a bit of time trying to add tag support to rspec-puppet 
myself but it seems that by the time I can add tags to the catalog, the 
tagged function has already been evaluated (though tbh, I'm really not 
familiar with either the puppet or rspec-puppet code bases so I might be 
just doing something wrong).

I'm looking at just creating some node fixtures now and doing the tagging 
from within the node manifest itself, but this means I'm testing defines 
(or classes) in node specs - doesn't feel right. Any thoughts?

Thanks,

John.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/BZyRQRIuB3MJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to