This message was deleted.
# voxpupuli
s
This message was deleted.
y
it depends šŸ˜„
there are different tests: • unit tests for ruby and puppet code (rspec, puppet-rspec) • acceptance tests for a module behaviour (beaker)
šŸ‘ 1
PDK allows you to do unit tests easily (as well as overall validation)
acceptance tests may need some more work because such test is actually applying your module and checking it works in reality
I learnt things by reading other tests and trying to implement what I’d like to do.. rspec-puppet is simplest, rspec for ruby code may need some specific googling/RTFM-ing
acceptance tests with beaker may need some source reading too sometimes šŸ˜„
c
yeah acceptance tests are a different beast, I guess I'll leave that for later. I have two goals here, one would be to learn the basics, the other to hopefully start applying them to a large codebase that is essentially void of any sort of testing, which may be difficult to do
y
I can share my own module with puppet and acceptance tests enabled: https://github.com/jay7x/puppet-vaultbot
And there is kind of control repo with PDK and tests: https://github.com/jay7x/puppetbolt-control_repo
c
thanks for that! will definitely take a look