Test Driven Cookbooks

Chef 13.6.4
  • 14 Videos | 1h 23m 8s
  • Includes Assessment
  • Earns a Badge
Likes 10 Likes 10
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 development
    identify the Chef Development Kit tools used for unit and integration testing
    generate unit and integration tests inside of a cookbook
    list the components of the .kitchen.yml file
    configure a Test Kitchen driver to support deploying to physical, virtual, or cloud machines
    execute the chef-client on a virtual machine generated by Test Kitchen
    define an integration test and verify the results with kitchen login
  • use the InSpec compliance language to write simple integration tests
    refactor a recipe and run kitchen verify with a test-driven approach
    execute the RSpec utility to test Chef recipes in memory
    utilize a simple formula to write ChefSpec tests
    configure the Pry Ruby gem to insert a breakpoint into a recipe
    use ChefSpec to check case statement evaluation of node attributes
    use Test Kitchen to verify a simple Apache cookbook on Ubuntu and Centos

IN THIS COURSE

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Likes 75 Likes 75  
Likes 0 Likes 0  
Likes 279 Likes 279  

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Likes 65 Likes 65  
Likes 94 Likes 94  
Likes 294 Likes 294