Chapter 5. Adding record/replay behavior
This chapter covers
- Using proxy responses to capture real responses automatically
- Replaying the saved responses with the correct predicates
- Customizing proxies by changing the headers or using mutual authentication
The best imposters don’t simply pretend to be someone else; they actively copy the person they impersonate. This mimicry requires both observation and memory: observation to study the behaviors of the person being impersonated and memory to be able to replay those behaviors at a later time. Satirists on comedy shows like Saturday Night Live, where actors and actresses often pretend to be famous U.S. political figures, base their performances on those skills.
Mountebank lacks the comedic ...
Get Testing Microservices with Mountebank now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.