Micro Mockers
Mock multiple (micro-)services with Docker boxes and gateway with Kong.
How to use
- Always shutdown the docker boxes before you change anything
- Download and install Docker
npm install -g micro-mockers
cd
to your work directory (seetest/fixture
as an example)mm build
mm up
mm down
Features
Mock service boxes management
TODO
Kong admin API libraries
const mm = ;const adminApi = mmkongadminApi;
Status
can be used to ping the Admin API.
const status = 'http://localhost:8001';status;
Plugins
can be used to ensure what in Kong matches an array of plugin definitions.
const plugins = 'http://localhost:8001';plugins;
Apis
can be used to ensure what in Kong matches an array of API definitions.
const apis = 'http://localhost:8001';apis;