Currently the project is in transition to a collaborative group effort under a github organisation.
Work is being done to migrate and upgrade all CI/CD integrations from personal accounts to organisation accounts.
Pull requests are welcome, but don't expect anything to be merged until CI/CD infrastucture is up and running.
Many thanks goes to Brandon Byars for all the effort building mountebank in the first place and maintaining the project for more than a decade and finally being helpfull and collaborative during this transition phase.
mountebank is the only open source service virtualization tool that competes with the commercial offerings in terms of protocol diversity, capability, and performance. Here's what Capital One wrote about their mobile cloud migration (emphasis theirs):
In fact, halfway through we discovered our corporate mocking software couldn’t handle the sheer amount of performance testing we were running as part of this effort (we completely crushed some pretty industrial enterprise software in the process). As a result, we made the call to move the entire program over to a Mountebank OSS-based solution with a custom provision to give us the ability to expand/shrink our mocking needs on demand.
At the moment, the following protocols are implemented, either directly in the tool or as a community extension:
- http
- https
- tcp (text and binary)
- smtp
- ldap
- grpc
- websockets
- graphql
- snmp
- telnet
- ssh
- netconf
mountebank supports mock verification, stubbing with advanced predicates, JavaScript injection, and record-playback through proxying.
See getting started guide for more information once you have it running locally.
Install:
npm install -g mountebank
Run:
mb
There are a number of command line options if you need to customize mountebank.
All pre-release versions of mountebank are available with the beta
npm tag.
No beta
version is published unless it has passed all tests.
After installing and running, view the docs in your browser at http://localhost:2525.
You can always learn more and support mountebank development by buying the book:
There are two packages: mountebank itself, and a test package called mbTest (which houses all out-of-process tests against mountebank). First ensure all dependencies are installed for both packages:
npm install
Then, run all tests:
npm test
Several other test configurations exist. You can see the CI pipeline in .circleci/config.yml.
There are some tests that require network access.
A few of these tests verify the correct behavior under DNS failures. If your ISP
is kind enough to hijack the NXDOMAIN DNS response in an attempt to allow you to conveniently peruse their
advertising page, those tests will fail. I suggest that, under such circumstances, you talk to your ISP
and let them know that their policies are causing mountebank tests to fail. You can also set
the environment variable MB_AIRPLANE_MODE=true
, which will avoid tests requiring your DNS resolver.