~/talk

Mock Me If You Can: Using Mocks in Container Applications for Integration Testing

links:none on file
slides:none on file

A practical demo shows using Wiremock sidecar containers (Docker image copied into a pod) to run narrow integration tests for a small "issues-handler" app that calls GitHub; the recorder captures exactly two stub mappings for repo + issues, proxy/snapshot mode generates full mappings from live APIs, and templating, scenarios and fault injection simulate stateful flows and failures. CI steps build app and mock images together, run RestAssured tests via Gradle against localhost:9080 in Kubernetes, producing fast repeatable results. narrow integration testing recording/proxy snapshotting

AI-written summary · about

  1. 0:00Introduction
  2. 1:02Testing pyramid
  3. 4:11Narrow integration testing
  4. 6:14WireMock for API mocking
  5. 8:01Mocks with JSON mappings
  6. 9:25Recording mocks from APIs
  7. 11:54Mocks from OpenAPI specs
  8. 12:17Request matching and templating
  9. 14:25Stateful API interactions
  10. 15:49Faults and delays in mocks
  11. 17:14Managing stale mocks
  12. 18:16Mocks in CI/CD
  13. 20:44RestAssured integration tests
  14. 21:53Demo: mocking GitHub API
  15. 26:37Proxying and snapshotting
  16. 27:44Integration tests with mocks
  17. 29:08Key takeaways
  18. 30:37Q&A
~/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.