Skip to content

nathenharvey/lisa14-testing-automation

Repository files navigation

Testing Your Automation Code

This is a hands-on tutorial that will cover the basics that everyone needs to know about how to test your automation code. We’ll start off with a quick introduction to Chef and work our way through writing a fully-tested cookbook or two using linting, unit testing, integration testing, and cross-platform testing.

Hands-on exercises throughout the tutorial will reinforce the material discussed.

Who should attend:

Anyone responsible for managing infrastructure especially those who are interested in automating the provisioning and management of said infrastructure using state-of-the-art tools and practices.

Take back to work:

A working code base that includes samples for building out testable infrastructure components.

Topics include:

  • Introduction to Chef
  • Test-driven Development (TDD)
  • syntax check - knife cookbook test
  • linting - foodcritic
  • unit testing - ChefSpec
  • integration testing - ServerSpec

Class Logistics

GitHub Repositories

A number of repositories will be used throughout this class. You can follow progress here:

  • chef-repo - The main repository for Chef code
  • hello_world - The repository for our hello world cookbook.
  • apache - The repository for our apache cookbook

Student Workstations

IP Addresses for each student can be found in this gist.

Materials

This repository will include the slides for the class in both PowerPoint and PDF.

Questions

Have questions along the way? Submit pull requests to the QUESTiONS.md file in this repository.

About

Slides and code used for LISA 2014

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •