26. Tested code
Automate
Infrastructure as Code
Deployed code
27. Tested code
Automate
Infrastructure as Code
Deployed code
Code
28.
29. Tested code
Automate
Infrastructure as Code
Deployed code
Code
Test
30. Tested code
Automate
Infrastructure as Code
Deployed code
Unit Testing
Code Test
31.
32. Tested code
Automate
Infrastructure as Code
Deployed code
Unit Testing
Code Test
33. Tested code
Automate
Infrastructure as Code
Deployed code
Unit Testing
Code Test
Functional Testing
34. Scenario: Nginx is running as a daemon
When I run "ps aux | grep nginx"
Then I should see “nginx:master" in the output
35. Tested code
Automate
Infrastructure as Code
Deployed code
Unit Testing
Code Test
Functional Testing
36. Tested code
Automate
Infrastructure as Code
Deployed code
Unit Testing
Code Test
Functional Testing
Integration Testing
37. 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
38. Tested code
Automate
Infrastructure as Code
Deployed code
Unit Testing
Code Test
Functional Testing
Monitoring
Integration Testing
54. • 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.
56. 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.