How to Generate Test-Cases and Data Mocks for Microservices at Kernel Using eBPF
summary
Kernel-level recording of live API calls using eBPF UProbes/KProbes captures accept/read/write cycles and emits YAML test cases and realistic data mocks without SDKs or code changes. The pipeline creates virtual databases and integrates with JUnit, Jest, Go-Test formats, runs against isolated replays, and claims about 60% reduction in testing effort; a demo shows 66.7% coverage from six curl commands. Current limits: server-side only captures and partial TLS/encryption and websocket support.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 6:03Microservice testing challenges
- 10:43Shadow testing to Kloy
- 17:50eBPF testing with Kloy
- 29:23Demo: test-case from traffic
- 31:27Future work
- 37:34Q&A
related talks
28mGenerating Test-Cases and Mocks from Production
16mAuto-Generating E2E Test-Cases and Mocks w/ Keploy
36mAPI Testing Without Writing Test Cases and Mocks
46mRecord-Replay API Test Cases & Data Mocks without writing code
27mLow-Overhead Tracing Using eBPF for Observability into Kubernetes Apps and Services
14mRecord-Replay API Test Cases with Data Mocks using Keploy
50mContinuous API Mocking and Testing with Microcks, Keptn, and Testkube
31mZero instrumentation observability with eBPF
