SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
26.
Tested code
Deployed code
Automate
Infrastructure as Code
27.
Tested code
Deployed code
Automate
Infrastructure as Code
Code
28.
Tested code
Deployed code
Automate
Infrastructure as Code
Code
Test
29.
Tested code
Deployed code
Automate
Infrastructure as Code
Code Test
Unit Testing
30.
Tested code
Deployed code
Automate
Infrastructure as Code
Code Test
Unit Testing
31.
Tested code
Deployed code
Automate
Infrastructure as Code
Code Test
Unit Testing
Functional Testing
32.
Scenario: Nginx is running as a daemon
When I run "ps aux | grep nginx"
Then I should see “nginx:master" in the output
33.
Tested code
Deployed code
Automate
Infrastructure as Code
Code Test
Unit Testing
Functional Testing
34.
Tested code
Deployed code
Automate
Infrastructure as Code
Code Test
Unit Testing
Functional Testing
Integration Testing
35.
describe_recipe 'nginx:configuration' do
it 'installs version 1.0.15' do
node[:nginx][:version].should == '1.0.15'
file("/etc/nginx/nginx.conf").must_have(:mode, "644")
package("nginx").must_be_installed
service("nginx").must_be_running
end
end
36.
Tested code
Deployed code
Automate
Infrastructure as Code
Code Test
Unit Testing
Functional Testing
Integration Testing
Monitoring
50.
Health of infrastructure
Battle tested code
Thorough Monitoring
51.
• Remember to build feedback system .
– Test harness should publish metrics in the same
system where ops and project metrics are kept.
– Have analytics or trending system on top of the
metrics.
53.
Some advice
• Remember MIME types?
• World wont be fully automatic ever. Always
automate the most time consuming task first.
• No easy way out. The function domain
requires you to understand man pages, rfps
etc.
• Choose a text editor rather than an Window
manager based IDE.