Imposters! faking endpoints over-the-wire

Presented by: Bob Crowley

Faking remote services can be very useful. Maybe you need to build against a service that isn't created yet, mock micro service dependencies, test against an API that only has a production instance or validate a large number of data scenarios that would be difficult to achieve with a "real" instance.

For these reasons and more, Mountebank is the best free, cross platform tool for the job. With it, you can spin up your imposter services and have them respond over-the-wire, just like the real thing.
These imposter endpoints can be instantiated from a configuration file, on the fly based on business logic of an executing test, from any tool that can make a POST or any combination of them.

It works by exposing stubs filtered by predicates that dynamically match a request with a response based on properties you define in the URL, headers, body content, etc. It can even be configured to respond in multiple ways per predicate in a round-robin fashion.

And its not just for HTTP. Mountebank supports TCP, SMTP and other community contributed protocols.

This session shows you how easy it is to harness the power of Mountebank to create and use imposters. We demonstrate starting the tool, spinning up imposters via code or http tool (like postman), employing security, viewing the logs, capturing and validating responses and tearing down when done.

By the end of this session you will have the knowledge to begin leveraging imposters in your testing workflow to gain more confidence in your software.

Tags: Backend, Code Quality, QA TestingLevel: Intermediate