~/talk

Integration and Unit Testing on HashiCorp Terraform and Nomad

Talkat HashiTalks 2021 · 2021-02-17..02-18· [testing]
links:none on file
slides:none on file

Explains a practical workflow for unit and integration testing Terraform and Nomad using Terratest and Kitchen to exercise the Nomad API, shows solitary vs sociable unit tests and small-module integration tests, and demonstrates a Go helper that converts Terraform plan JSON into a flat map — the terraform-test library — so tests query keys instead of complex JSON paths. Tests run against plan JSON (no full apply), assertions are automatic, and the demo code works and is open source but still finishing structural comparisons.

AI-written summary · about

  1. 0:00Intro
  2. 0:36laC with no tests is broken
  3. 2:35Workload orchestration made easy
  4. 3:02Myths and Truths Myth
  5. 6:40Defining a unit
  6. 7:05Solitary tests
  7. 8:20Nomad job terraform resource
  8. 9:39Sociable tests
  9. 11:18Nomad namespace cont....
  10. 11:54Defining an integration
  11. 12:22Nomad enterprise terraform module
  12. 15:05Terratest - apply_example_test.go
  13. 17:41Terratest-plan_example_test.go
  14. 20:55Terraformtest - plan_example_test.go
~/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.