Test-driven development with Chef

As we are trying to specify our infrastructure as code, it would be prudent of us to take some good stuff from devs practices and incorporate them into our coding practices. The following figure illustrates a few such ideas:

Test-driven development with Chef

Ops:

  • TDD: Test-Driven Development
  • CI: Continuous Integration
  • CD: Continuous Delivery/Deployment

Development without TDD

The usual practice followed by operations people can be understood from this flow chart:

Development without TDD

Development with TDD

With TDD practices in use, the following is how the development cycle looks: ...

Get Mastering Chef now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.