Test Driven Cookbooks

Chef 13.6.4    |    Intermediate
  • 14 videos | 1h 16m 38s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 30 users Rating 4.6 of 30 users (30)
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

  • 5m 25s
    During this video, you will learn how to use Behavior-Driven Development (BDD) in the context of Chef cookbook development. FREE ACCESS
  • 5m 18s
    In this video, find out how to identify the Chef Development Kit tools used for unit and integration testing. FREE ACCESS
  • Locked
    3.  Generating Tests
    4m 55s
    In this video, learn how to generate unit and integration tests for a cookbook. FREE ACCESS
  • Locked
    4.  Test Kitchen Setup
    5m 46s
    Upon completion of this video, you will be able to list the components of the .kitchen.yml file. FREE ACCESS
  • Locked
    5.  The .kitchen.yml Driver
    5m 21s
    In this video, you will learn how to configure a Test Kitchen driver to support deploying to physical, virtual, or cloud machines. FREE ACCESS
  • Locked
    6.  Kitchen Converge
    4m 39s
    In this video, find out how to run the chef-client on a virtual machine generated by Test Kitchen. FREE ACCESS
  • Locked
    7.  Writing the First Test
    5m 46s
    In this video, learn how to define an integration test and verify the results with kitchen login. FREE ACCESS
  • Locked
    8.  InSpec
    5m 8s
    During this video, you will learn how to use the InSpec compliance language to write simple integration tests. FREE ACCESS
  • Locked
    9.  Kitchen Verify
    6m
    In this video, you will refactor a recipe using a test-driven approach, and then run kitchen verify. FREE ACCESS
  • Locked
    10.  ChefSpec and RSpec
    5m 43s
    Learn how to use the RSpec utility to test Chef recipes in memory. FREE ACCESS
  • Locked
    11.  Writing Unit Tests
    5m 9s
    Find out how to use a simple formula to write ChefSpec tests. FREE ACCESS
  • Locked
    12.  Pausing Tests with Pry
    5m 2s
    In this video, learn how to configure the Pry Ruby gem to insert a breakpoint into your code. FREE ACCESS
  • Locked
    13.  Testing Case Statements
    5m 47s
    Learn how to use ChefSpec to check case statement evaluation of node attributes. FREE ACCESS
  • Locked
    14.  Exercise: Test an Apache Cookbook on Two Platforms
    6m 39s
    During 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.

YOU MIGHT ALSO LIKE

Channel Storybook
Channel Testing
Rating 5.0 of 1 users Rating 5.0 of 1 users (1)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 5.0 of 3 users Rating 5.0 of 3 users (3)
Rating 4.3 of 31 users Rating 4.3 of 31 users (31)
Rating 4.6 of 5897 users Rating 4.6 of 5897 users (5897)