test-driven development of infrastructure code
TRANSCRIPT
A g i l e I n d i a 2 0 1 5
TEST-DRIVEN DEVELOPMENT (TDD) OF !
INFRASTRUCTURE CODE
Surya Sreedevi Vedula
2
ABOUT ME
@suryasreevedula
suryasreedevivedula
3
Why are you here?
4
What is Test-Driven Development?
5
Write Failing Tests
Get Tests to
PassShape
Code Up
Write Code
Refactor
Writ
e M
ore
Test
s
6
What is Infrastructure Code?
7
To understand… Let us build an app!
App Server
8
App
DB Server
Web Server
DNS Server Firewall
9
Is that all?
10
INFR
ASTRUCTU
RE
MANAGEMEN
T SERVER
CONFIGURATION
ORCHESTRATION
11
What are we up to?
12
How to build?
13
How to test?
14
Let’s get to business…
15
Chef 101
16
Workstation
Node
Node
Server
17
Test Frameworks
18
Unit - ChefSpec
Server - ServerSpec
Environment - Test-Kitchen
19
Demo
20
Can I try it at home?
21
Repo
23
@suryasreevedula
https://testreflections.wordpress.com/