English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 49m | 255 MB
How do you apply test-driven development (TDD) principles to infrastructure as code when utilizing an automation framework like Chef? Join instructor Robin Beck in this training course to explore the infrastructure testing tools that ship with the Chef Development Kit (ChefDK). For integration testing, Robin introduces Test Kitchen, which allows you to verify your cookbook integrity by deploying code in isolation to a test environment, such as a virtual machine, Docker container, or cloud instance. He also reviews InSpec, the language for evaluating security and compliance issues. Finally, Robin demonstrates unit testing with ChefSpec, a fork of the popular RSpec framework that can verify the functionality of code in memory.
With a focus on practical exercises, this course guides developers through a workflow that helps you reduce errors and produce production-ready infrastructure—before your cookbooks ever enter the pipeline.
Topics include:
- Writing tests before code
- Chef-generated tests
- Integration testing
- Mutation testing
- Unit testing
- Refactoring
Table of Contents
Introduction
1 Transform your infrastructure with Chef
2 What you should know
3 Getting set up
Tools and Techniques
4 Test-driven infrastructure
5 Behavior before function
6 Writing tests first
7 Know your ChefDK
8 Chef-generated tests
Integration with Test Kitchen
9 Integration tests
10 Inspect InSpec
11 The role of database
12 Our first test
13 Skip the line and test now
14 The .kitchen.yml
15 Red light
16 Function before form
17 Create the database
18 Tuning Kitchen
19 Create the database user
20 Green light
21 Create converge verify and destroy
The Fundamental Unit Test
22 Unit tests
23 RSpec and ChefSpec
24 Tests don t have to be scary
25 Describe the specs
26 Short-term memory
27 Fake it with Fauxhai
28 Refactor to node attributes
29 Integration
Conclusion
30 Next steps
Resolve the captcha to access the links!