The closest I could get until now is something like this link about using vagrant: http://blog.codecentric.de/en/2012/02/automated-virtual-test-environments-with-vagrant-and-puppet/
In one way or another, it looks like the real test has to be done in a (let's say linux) box without a specific tool. Does anyone have a better idea ? Em quarta-feira, 10 de abril de 2013 09h19min35s UTC-3, Bernardo Costa escreveu: > > Hey Joe ! > > I am kind of new on developing configs on puppet. I have already taken a > look at rspec-puppet. It looks fine but doesn't seems to be what I really > need. These two passages above tells me that rspec-puppet is related to > module testing. What it automates is a test like this: whether your module > can produce a valid configuration or not. My configuration is a bunch of > static classes. What I'd like to test is the result of this classes I have > built. I don't even know if this is possible or not but I suppose it is in > some way. How do people do this kind of test ? Would it be called > accpetance tests ? Is there a way to automate this ? > > See the links: > > on https://puppetlabs.com/blog/test-driven-development-with-puppet/ > > "...It’s true that, if you have a manifest that simply contained a > collection of static resources, rspec-puppet doesn’t provide much > additional value. It shines when you start developing define resources, > parametrized classes, or any module that contains complex logic..." > > on http://rspec-puppet.com/tutorial/ > > "What should you be testing? > > There are a lot of people confused by the purpose of these tests as they > can’t test the result of the manifest on a live system. That is not the > point of rspec-puppet..." > > Em terça-feira, 9 de abril de 2013 20h41min34s UTC-3, joe escreveu: >> >> Testing of puppet manifests is done using rspec. >> >> http://rspec-puppet.com/ >> >> https://puppetlabs.com/blog/the-next-generation-of-puppet-module-testing/ >> >> On Tuesday, April 9, 2013 1:46:32 PM UTC-6, Bernardo Costa wrote: >>> >>> I would like to know how do people test a manifest that is basically >>> static without any parameter. By testing it, I mean not only check the >>> syntax or any invalid directive, but if the configuration there written is >>> implementing the expected behaviour when used. Of course, one way is just >>> point a machine to my puppet master and see that it has the right >>> configuration. But wouldn't exist another way to check this ? >> >> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
