Chapter 3. Testing using canned responses

This chapter covers

  • The is response type, which is the fundamental building block for a stub
  • Using is responses in secure scenarios, with HTTPS servers and mutual authentication
  • Persisting your imposter configuration using file templates

During a famous U.S. White House scandal of the 1990s, then-president Bill Clinton defended his prior statements by saying “It depends on what the meaning of is is.” The grand jury and politicians ultimately failed to come to an agreement on the question, but, fortunately, mountebank has no uncertainty on the matter.

It turns out that is is quite possibly the most important, and the most foundational, concept in all of mountebank. Although an imposter, capturing ...

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.