Verified fakes with OpenAPI
summary
Claim: keep test doubles honest by validating mocks against an API contract. Implementation details: use OpenAPI to validate requests and responses, generate fakes and run the same tests against mock and real service, and record interactions with tools like vcrpy. Code and server stack: a Python client bravado and the open source pyramid_mock_server that serves verified fakes. At Yelp this setup reduces drift between mocks and real services and is used for unit, acceptance tests and docs.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 0:57Why do you need Verified Fake
- 2:00Problems with fakes
- 3:15Verified fakes
- 4:34What is OpenAPI
- 5:45OpenAPI specification
related talks
26mTesting HTTP APIs with Ruby
20mOpenAPIspec
50mContinuous API Mocking and Testing with Microcks, Keptn, and Testkube
43mValidating Entire User Journeys by Isolating Front Ends using OpenAPI
45mOpenAPI for Web Developers
45mFuzz Testing Web APIs: Overview of Existing Tools
16mMastering Mocking in Playwright: Simplify API Test Automation
29mUnit testing in the real world with mock
