O'Reilly logo

The Packer Book by James Turnbull

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6 Testing Packer

In the last few chapters we’ve seen how to build images with Packer. Part of that process is provisioning images with the configuration you need. When you’re running scripts, or even using configuration management tools, there’s some risk that the outcomes of your build won’t be what you requested. We can ensure that what we get what we’ve asked for by using software-based tests.

Software tests validate that your software does what it is supposed to do. They are the bread-and-butter validation tools of developers. Loosely, they’re a combination of quality measures and correctness measures. We’re going to apply some of the principles of software testing to our infrastructure. A software unit test, at its heart, confirms that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required