~/talk

From Monitoring to Automated Testing of Your Infrastructure Code

Talkat SREcon18 Asia/Australia · 2018-06-06..06-08· [devops-and-delivery, testing]
links:none on file
slides:none on file

Argues that infrastructure code needs integration/acceptance tests that run in CI, shows how to spin VMs, apply Puppet/Chef/Ansible and assert state so regressions are caught before deployment. Reuses existing monitoring checks as a low‑friction on‑ramp. Demonstrates tools: Test Kitchen, beaker, and test frameworks like serverspec (and mentions bats), and recounts a failure where conflicting Puppet classes left hundreds of machines offline—tests would have caught the combination before it hit production.

AI-written summary · about

  1. 0:00Start
  2. 1:53Writing tests has been a best practice in software engineering for a while now...
  3. 3:01Infrastructure code is software, so you should write tests for it too
  4. 6:33What went wrong?
  5. 7:24What can be done to prevent this happening again?
  6. 8:34Testing to the rescue!
  7. 9:08OK, what do we need?
  8. 9:55Provision a machine
  9. 10:32Apply your code to the machine
  10. 11:06Execute the tests
  11. 11:28Examine the exit status zero good non-zero bad
  12. 12:23The test harness
  13. 20:19It takes too long to write
  14. 21:15Who is going to run them anyway?
  15. 22:24New team member joins
  16. 22:39You can actually go holiday
  17. 23:45Could you re-use your monitoring checks for infacode Cl testing?
  18. 25:13What's your organisation doing?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.