Chapter 7. Adding behaviors
This chapter covers
- Programmatically postprocessing a response
- Adding latency to a response
- Repeating a response multiple times
- Copying input from the request into the response
- Looking up data from a CSV file to plug into a response
The basic is response is easy to understand but limited in functionality. Proxy responses provide high-fidelity mimicry, but each saved response represents a snapshot in time. Response injection provides significant flexibility but comes with high complexity. Sometimes, you want the simplicity of is and proxy responses with a touch of dynamism, all without the complexity of inject.
Software engineers who hail from the object-oriented school of thought use the term decorate to mean ...
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.