Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
TDI with ChefDK 0.0.1
Search
someara
August 12, 2014
Technology
900
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
TDI with ChefDK 0.0.1
Work in progress. Not done yet!
someara
August 12, 2014
More Decks by someara
See All by someara
Docker Docker Docker Chef
someara
0
550
Hand Crafted Artisinal Chef Resources
someara
0
630
Configuration Management Camp 2015
someara
1
600
Cookbook Reusability
someara
0
830
Configuration Management 101 @ Scale12x
someara
2
940
Configuration Management 101
someara
3
830
Introduction to Chef - Scale 10x
someara
2
490
Introduction to Chef - NYLUG Jan 2012
someara
2
330
Introduction to Chef - LISA11
someara
10
6.2k
Other Decks in Technology
See All in Technology
AIカンパニーへの転換を支えた、エンジニアの仕事の再定義
kworkdev
PRO
2
1.3k
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
110
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
360
Running Kotlin + Quarkus with Lambda
nealle
1
4k
触りたくないデータに、どう触るか AI時代のRBACアクセスガバナンス
ivry_presentationmaterials
0
280
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
740
古い指輪から広がった JAVA コミュニティ とのつながり
yamad
0
130
Browser Spec: Testing Hotwire with Ruby
takahashim
1
130
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
130
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
5.1k
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
440
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
1
1.8k
Featured
See All Featured
How GitHub (no longer) Works
holman
316
150k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
460
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
760
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
270
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Between Models and Reality
mayunak
4
500
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Deep Space Network (abreviated)
tonyrice
0
380
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
270
Transcript
Testing Cookbooks
Sean OMeara!
[email protected]
! @someara
whoami
Writing Cookbooks
None
None
None
Are we done?
Testing Cookbooks
Slightly more involved.
The Basics http://www.flickr.com/photos/jronaldlee/5295169486/
Run the recipe See what happens
Manual techniques Automated techniques
None
None
CLI IS BETTER
ChefDK
Our toolchain is in Ruby
Standard Ruby dev setups are tricky to install
System Ruby! RVM! chruby
cd project ; bundle install
None
None
Put the code in the can.
OMNIBUS ChefDK! ! Stable toolchain in an Omnibus installer
None
None
Ruby! Chef! Test Kitchen! kitchen-vagrant! Berkshelf! Foodcritic! Rubocop! ChefSpec
None
Converge Testing
None
CaaP! vs! IaaP
Cookbook as a Project! vs! Infrastructure as a Project
no chef-repo
battery not included
kitchen-vagrant! kitchen-docker! kitchen-ec2! kitchen-rackspace! kitchen-gce! kitchen-digitalocean! kitchen-openstack! kitchen-bluebox! kitchen-joyent! kitchen-lxc
also available
None
None
None
None
None
None
None
None
None
None
Integration Testing ttps://www.flickr.com/photos/kitsa_sakurako/439652830
Test that a set of resources have achieved their combined
goal
{ testable intent
None
None
Test Kitchen runs integration tests out of band of Chef
It does this with bussers
Bats! Serverspec! Minitest! Cucumber
None
suite busser
None
None
kitchen test! ! kitchen converge! kitchen verify! kitchen destroy
test tear down
Style Testing
None
Ruby level style enforcement
None
None
None
None
None
None
single quotes space after comma no trailing whitespace
None
None
Chef level style enforcement
None
None
None
None
None
http://www.flickr.com/photos/40389360@N00/2428706650/ Regression Testing
ChefSpec makes assertions about compiled resource collections
None
None
None
None
None
REFERENCE SLIDE
None
None
None
https://github.com/opscode-cookbooks/yum https://github.com/opscode-cookbooks/mysql Reference Cookbooks https://github.com/opscode-cookbooks/jenkins https://github.com/opscode-cookbooks/yum-epel
Cookbook Dependencies
Often, a cookbook will depend on another
include_recipe ‘another_cookbook::recipe’! ! OR! ! consume a resource shipped in
another_cookbook
For example
None
None
not in core Chef
ships in mysql cookbook
None
None
Dependencies suck and you don’t want to manage them manually.
None
Berkshelf is bundler for Chef cookbooks
None
your chef-server here
None
Bundler installs dependencies into your local gem cache
Berkshelf installs dependencies into your local cookbook cache
None
None
None
None
None
None
needs moar ServerSpec
Continuous Integration
This is all driven from the command line
Which makes it super easy to wire into CI systems
CI should watch version control for commits
Polling! vs! Notifications
I ran out of slides!