mountebank

mountebank - over the wire test doubles

Fork me on GitHub

the apothecary

Imposters

This page is intended to host a single page app providing a user interface to both explore the mountebank API, and to use mountebank without having to use the API. That's no small effort and unlikely to get prioritized. If you'd like to take on the task, mountebank will offer you his undying gratitude. In the meantime, you may explore other UIs, like the one created by Don Henton.

This page is hosted on heroku, and while it will accept imposter creation requests, the ports that the imposters bind to are not exposed to the outside world. However, running mb will spin up this website locally.

  name protocol port # requests
http:45023 http 45023 0

Request:

Response:

An imposter represents a test double listening to a specific protocol on a specific port. By default, imposters will record all requests to them, allowing you to verify certain calls were made.

defines how mountebank responds to requests
mountebank will choose one for you if you leave it blank
optional - shows up in the logs and table on this page

Stubs

A stub tells the imposter how to respond when the request meets certain conditions.

index predicates responses
[ ]
[ ]
the request field - see the protocol docs
the predicate value
the request field - see the protocol docs
the predicate value, base64 encoded if the mode is binary