Part 2. Using mountebank

The test in chapter 2 was a behavioral test, but service virtualization can satisfy a wide spectrum of testing needs. Understanding how mountebank fits into that spectrum requires exploring the full capabilities of the tool.

The test we just looked at used basic building blocks of service virtualization—and indeed of any stubbing tool—the ability to evaluate the request to determine how to respond. We’ll look at these capabilities over the course of the next two chapters, including additional context around HTTPS, managing configuration files, and taking advantage of mountebank’s built-in XML and JSON parsing.

Chapters 5 and 6 demonstrate more advanced response generation, allowing a more interesting set of test scenarios. ...

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.