From the course: Puppet Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Beaker testing

Beaker testing - Puppet Tutorial

From the course: Puppet Essential Training

Start my 1-month free trial

Beaker testing

- [Instructor] We've already looked at how to test code in terms of syntax and content, but what about testing if it actually does what it's supposed to do? That's where Beaker comes in. Beaker is a tool developed by the makers of Puppet that is used for testing Puppet itself and for testing supported modules. Beaker works by actually running Puppet against your code on a test system. In our case we'll be using Vagrant for the Beaker test systems, but Beaker supports quite a few options including Docker and Cloud-based systems. Let's go back to our sieve analogy for a second. Remember how syntax and lint checks were taking out the big rocks, and then unit and integration tests like Puppet rspec are there for the medium-sized ones. Beaker is the last layer, the fine mesh that is very slow and expensive but will catch everything else we don't want and just leave good code. There's a reason to put Beaker at the bottom because it's much slower than the other options. Linting usually takes…

Contents