Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
micro-mockers
Advanced tools
Mock multiple (micro-)services with Docker boxes and gateway with Kong.
Mock multiple (micro-)services with Docker boxes and gateway with Kong.
npm install -g micro-mockers
cd
to your work directory (see test/fixture
as an example)mm build
mm up
mm down
TODO
const mm = require('micro-mockers');
const adminApi = mm.kong.adminApi;
Status
can be used to ping the Admin API.
const status = new adminApi.Status('http://localhost:8001');
status.ping([max]).then(...);
Plugins
can be used to ensure what in Kong matches an array of plugin definitions.
const plugins = new adminApi.Plugins('http://localhost:8001');
plugins.syncAll([{
name: 'rate-limiting',
config: {
hour: 3000
}
}, {
name: 'syslog',
config: {}
}]).then(...);
Apis
can be used to ensure what in Kong matches an array of API definitions.
const apis = new adminApi.Apis('http://localhost:8001');
apis.syncAll([{
name: 'lorem',
hosts: ['...'],
upstream_url: '...',
plugins: [...]
}, ...]).then(...);
FAQs
Mock multiple (micro-)services with Docker boxes and gateway with Kong.
The npm package micro-mockers receives a total of 0 weekly downloads. As such, micro-mockers popularity was classified as not popular.
We found that micro-mockers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.