Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by Stephen Nelson-Smith
Test-Driven Infrastructure with Chef, 2nd Edition
Preface
Conventions Used in This Book
SafariĀ® Books Online
How to Contact Us
Acknowledgments
1. The Philosophy of Test-Driven Infrastructure
Underpinning Philosophy
Infrastructure as Code
The Origins of Infrastructure as Code
The Principles of Infrastructure as Code
The Risks of Infrastructure as Code
Professionalism
2. An Introduction to Ruby
What Is Ruby?
Grammar and Vocabulary
Methods and Objects
Identifiers
Variables
Constants
Keywords
Method names
More About Methods
Classes
Arrays
Conditional logic
Hashes
Truthiness
Operators
Bundler
3. An Introduction to Chef
Exercise 1: Install Chef
Objectives
Directions
Worked Example
Discussion
The Chef framework
The Chef tool
The Chef API
The Chef community
Exercise 2: Install a User
Objectives
Directions
Worked Example
Discussion
Exercise 3: Install an IRC Client
Objectives
Directions
Worked Example
Discussion
Exercise 4: Install Git
Objectives
Directions
Worked Example
Discussion
4. Using Chef with Tools
Exercise 1: Ruby
Objectives
Directions
Worked Example
Discussion
Exercise 2: Virtualbox
Objectives
Directions
Worked example
Discussion
Exercise 3: Vagrant
Objectives
Directions
Worked Example
Discussion
Conclusion
5. An Introduction to Test- and Behavior-Driven Development
The Principles of TDD and BDD
A Very Brief History of Agile Software Development
Test-Driven Development
Behavior-Driven Development
Building the right thing
Reducing risk
Evolving design
TDD and BDD with Ruby
Minitest: Unit Testing for the 21st Century
RSpec: The Transition to BDD
Cucumber: Acceptance Testing for the Masses
6. A Test-Driven Infrastructure Framework
Test-Driven Infrastructure: A Conceptual Framework
Test-Driven Infrastructure Should Be Mainstream
Test-Driven Infrastructure Should Be Automated
Test-Driven Infrastructure Should Be Side-Effect Aware
Test-Driven Infrastructure Should Be Continuously Integrated
Test-Driven Infrastructure Should Be Outside In
Test-Driven Infrastructure Should Be Test-First
The Pillars of Test-Driven Infrastructure
Writing Tests
Running Tests
Provisioning Machines
Feedback of Results
7. Test-Driven Infrastructure: A Recommended Toolchain
Tool Selection
Unit Testing
Integration Testing
Acceptance Testing
Testing Workflow
Supporting Tools: Berkshelf
Overview
Getting Started
Example
Berkshelf and Vagrant
Berkshelf and Chef environments
Advantages and Disadvantages
Summary and Conclusion
Supporting Tools: Test Kitchen
Overview
Getting Started
Summary and Conclusion
Acceptance Testing: Cucumber and Leibniz
Overview
Getting Started
Example
Advantages and Disadvantages
Summary and Conclusion
Integration Testing: Test Kitchen with Serverspec and Bats
Introducing Bats
Introducing Serverspec
Templates
Integration Testing: Minitest Handler
Overview
Getting Started
Example
Minitest Handler with Test Kitchen
Advantages and Disadvantages
Summary and Conclusion
Unit Testing: Chefspec
Overview
Getting Started
Example
Advantages and Disadvantages
Summary and Conclusion
Static Analysis and Linting Tools
Overview
Getting Started
Example
Advantages and Disadvantages
Summary and Conclusion
To Conclude
8. Epilogue
A. Bibliography
Books on TDD and ATDD
Books and Articles on BDD
Books on Agile Testing in General
Chef Articles and Presentations
Books on Tools
Books on Ruby
Books on Bash and Shell Scripting
General Programming Books
Other Great Books
Index
About the Author
Colophon
Copyright
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Test-Driven Infrastructure with Chef
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset