Polyglot: Ruby, Node.js, Java, .NET Systems Polyglot: Docker, VMWare Automation Junkie: Chef, Jenkins Job Background “Private Heroku” Senior Systems Developer Platform as a Service Team Global Operations Department @AllanEspinosa
Which machines upgraded to ruby-2.1.1-p589? Have I upgraded libxml2 for nokogiri? Why is database.yml pointing to staging???? Test and software engineering practices still relevant! # FIXME: … # TODO: …
Write a failing unit test Write Failing Acceptance Test Application Capybara.current_driver = :selenium Capybara.app_host = ‘http://localhost:8000’ G. Adzic, Specification by Example, 2011.
a failing unit test Write Failing Acceptance Test Application + Servers Capybara.current_driver = :selenium Capybara.app_host = ‘http://actual-production.domain
suites: - name: app Write a failing test Test-kitchen Plain Minitest Make the test pass Chef Recipe Refactor Repeat! Roll out to servers Pass acceptance test! test/integration/app/minitest/test_app.rb class TestApp < Minitest::Unit::TestCase def test_ruby_is_installed assert File.exists ‘/usr/local/bin/ruby’, ‘Ruby should be installed’ end end
suites: - name: app run_list: - recipe[todo::app] Write a failing test Test-kitchen Plain Minitest Make the test pass Chef Recipe Refactor Repeat! Roll out to servers Pass acceptance test!
action :install end metadata.rb name ‘todo’ Write a failing test Test-kitchen Plain Minitest Make the test pass Chef Recipe Refactor Repeat! Roll out to servers Pass acceptance test!