Test Driven Cookbooks
Chef 13.6.4
| Intermediate
- 14 videos | 1h 16m 38s
- Includes Assessment
- Earns a Badge
The most important role of a Cookbook developer is to test a code before it enters production. Explore how to test Chef cookbooks consistently and effectively.
WHAT YOU WILL LEARN
-
Use behavior-driven development (bdd) in the context of chef cookbook developmentIdentify the chef development kit tools used for unit and integration testingGenerate unit and integration tests inside of a cookbookList the components of the .kitchen.yml fileConfigure a test kitchen driver to support deploying to physical, virtual, or cloud machinesExecute the chef-client on a virtual machine generated by test kitchenDefine an integration test and verify the results with kitchen login
-
Use the inspec compliance language to write simple integration testsRefactor a recipe and run kitchen verify with a test-driven approachExecute the rspec utility to test chef recipes in memoryUtilize a simple formula to write chefspec testsConfigure the pry ruby gem to insert a breakpoint into a recipeUse chefspec to check case statement evaluation of node attributesUse test kitchen to verify a simple apache cookbook on ubuntu and centos
IN THIS COURSE
-
5m 25sDuring this video, you will learn how to use Behavior-Driven Development (BDD) in the context of Chef cookbook development. FREE ACCESS
-
5m 18sIn this video, find out how to identify the Chef Development Kit tools used for unit and integration testing. FREE ACCESS
-
4m 55sIn this video, learn how to generate unit and integration tests for a cookbook. FREE ACCESS
-
5m 46sUpon completion of this video, you will be able to list the components of the .kitchen.yml file. FREE ACCESS
-
5m 21sIn this video, you will learn how to configure a Test Kitchen driver to support deploying to physical, virtual, or cloud machines. FREE ACCESS
-
4m 39sIn this video, find out how to run the chef-client on a virtual machine generated by Test Kitchen. FREE ACCESS
-
5m 46sIn this video, learn how to define an integration test and verify the results with kitchen login. FREE ACCESS
-
5m 8sDuring this video, you will learn how to use the InSpec compliance language to write simple integration tests. FREE ACCESS
-
6mIn this video, you will refactor a recipe using a test-driven approach, and then run kitchen verify. FREE ACCESS
-
5m 43sLearn how to use the RSpec utility to test Chef recipes in memory. FREE ACCESS
-
5m 9sFind out how to use a simple formula to write ChefSpec tests. FREE ACCESS
-
5m 2sIn this video, learn how to configure the Pry Ruby gem to insert a breakpoint into your code. FREE ACCESS
-
5m 47sLearn how to use ChefSpec to check case statement evaluation of node attributes. FREE ACCESS
-
6m 39sDuring this video, you will learn how to use Test Kitchen to verify a simple Apache cookbook on Ubuntu and CentOS. FREE ACCESS
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.