~/talk

"Kitchen-Salt and Pytest: Easily Test Your Salt States"

Talkat IndyPy Python Web Conf 2019 · on Friday, 2019-08-23· [testing]
links:none on file
slides:none on file

Uses Kitchen-Salt (Test Kitchen with the salt provisioner) to spin a Docker instance, bootstrap a specific Salt version into the container and copy the repo as Salt file_roots, then runs kitchen converge and a verifier that executes pytest on the host (configured with remote_exec: false). The demo builds an Apache state (package, service, index file), runs pytest tests that use pytest fixtures to assert the service is running, index content is correct and HTTP responses match, and shows failures and a Travis CI workflow that runs converge, verify and destroy.

AI-written summary · about

  1. 0:00Introduction to Kitchen-Salt
  2. 1:07What is Salt and Salt States
  3. 2:33What is Kitchen-Salt
  4. 3:59Setting Up Kitchen YAML
  5. 6:14Configuring the Provisioner
  6. 9:45Verifier and Test Execution
  7. 11:14Key Kitchen Commands
  8. 11:36Live Demo Setup
  9. 13:28Running Kitchen Converge
  10. 14:11Salt States in Action
  11. 17:11Introducing Pytest
  12. 19:18Running Pytest Tests
  13. 21:29Pytest Fixtures Explained
  14. 22:36Using Test Fixtures
  15. 25:36Pytest with Salt Integration
  16. 28:09Running Kitchen Verify
  17. 28:54Demonstrating Test Failures
  18. 29:16Summary and Workflow Integration
  19. 30:42Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.