Chapter 15. Approaches for Testing Infrastructure Code

TODO

Consider chapter sequencing to clarify the relationship between this chapter and [Link to Come].

Some code (or pseudo-code) examples of different types of tests, e.g. static analysis, stack tests, integration tests.

Look at https://github.com/sigstore/cosign, https://github.com/sigstore/sigstore or https://in-toto.io/)

Continuously testing and delivering changes to infrastructure code is the second of the three core practices of Infrastructure as Code that I described in Chapter 1 (“Core Practices for Infrastructure as Code”), along with defining everything as code and building infrastructure from small, simple pieces.

If a strong focus on testing creates good results when writing application code, it’s reasonable to expect it to be useful for infrastructure code as well. This chapter explores challenges and approaches with testing infrastructure code. It draws heavily ...

Get Infrastructure as Code, 3rd Edition 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.