Rootconf 2014

On devops and cloud infrastructure

Testing Infrastructure Code using Test-kitchen, Docker and Chef-Zero

Submitted by Kamalika Majumder (@kamalikam) on Sunday, 26 January 2014

Section: Full talk Technical level: Intermediate Status: Confirmed & Scheduled

View proposal in schedule


Testing the infrastructure code before it is used for deployments is very important for faster deployment cycles.This talk will help understanding how we can test devops code using Test-kitchen, Docker and Chef-Zero


With more and more use of automation for environment provision it has become very important that TDD is followed for Devops/Infrastructure code as it is followed application code.
The Session will describe how chef recipes,databags etc can be tested in local dev box environmnet before they are uploaded to chef server and used in deployments.
This session will aim towards using the combination of Test-kitchen gem with kitchen-docker plugin and chef-zero.
This will help understanding test driven development of devops code in an private environment without interrupting the working environment.


Basic knowledge of linux, lxc and chef

Speaker bio

I am Senior Consultant working with Thoughtworks for 4+ years.I started working as a Sysadmin,moved to senior Network Admin role and currently working as a Devops and Infrastructure automation specialist.Have worked in various infrastructure automation in private and public cloud platforms and interested in private cloud , continuous integration and deployment and security.



  •   sandeep (@sss) 6 years ago

    @kamalika - will you cover writing chef so that I can automate setup on my personal laptop ? Or will it need to be used only in conjunction with lxc/docker,etc. ?

  •   Kamalika Majumder (@kamalikam) Proposer 6 years ago

    The talk will include an example of how the chef recipes and roles can be tested using test-kitchen, lxc/docker.But as far as how chef recipes are written etc is concerned that will not be covered in this talk much.

  •   sandeep (@sss) 6 years ago

    @kamalika - please consider doing this as a workshop. This is one of the more foundational topics that I have seen for this conference.

  •   Sreekandh Balakrishnan (@gnuyoga) 5 years ago

    Thanks for talking the call today. Summarizing our call.

    Test driven developmet for Infrastructure ( u heard it right not the code but infra). Showcase some customer issue.
    Code works in my machine and not in my server, we are solving this problem
    Production go live from 3 weeks to 1 week to multi deployment per week
    Overall testing time reduction went down by multifold. Build pipeline time cycle reduction.
    Prodcution live environment in less than 5 mins ? is a reality now
    Real client examples ? ( some screenshot of the build pipeline ).
    Demo ?

  •   Kamalika Majumder (@kamalikam) Proposer 5 years ago

    One small correction *Production like environment in less than 5 mins

Login with Twitter or Google to leave a comment