~/talk

Testing ain't hard, even for SysAdmins

Talkat PyCon Australia 2015 · 2015-07-31..08-04· [devops-and-delivery, testing]
links:none on file
slides:none on file

Claim: testing small sysadmin scripts is practical and stops touching production. Demonstrates a script that interacts with saltstack to discover minions, order monthly package updates and staged reboots, and shows tests that use mock.patch and magic mock to avoid a real master, run under nose and Python’s unit test. Tests catch prompting, call arguments and config-file paths; the script improves but still uncovers new production edge cases so it’s useful but not a one‑off guarantee.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04What is Saltstack
  3. 7:51Package Modules
  4. 11:32Starting point
  5. 13:44Testing a script
  6. 15:34Testing inside a script
  7. 18:09Not throwing an exception
  8. 18:48Patch replaces functionality
  9. 20:30Configuration files
  10. 22:45General principle
  11. 23:25QA
~/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.