GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - eljusto/mountebank-redis-repository: Plugin for mountebank to store imposters in Redis db

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
README.md
README.md
 
 
babel.config.json
babel.config.json
 
 
jest.config.js
jest.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
podman_up.sh
podman_up.sh
 
 

Repository files navigation

mountebank-redis-repository

Plugin for Mountebank that allows to store imposters distributedly using a Redis database.

Usage

It's recommended to create a wrapper around this plugin to pass on the configuration parameters and your own logger.

// impostersRepo.js
const repo = require('mountebank-redis-repository');
const logger = require('pino').child({ _context: 'mountebank-redis-repo' });

const repoConfig = {
  redisOptions: {
    socket: {
      host: process.env.REDIS_HOST,
      port: process.env.REDIS_PORT,
    },
    password: process.env.REDIS_PASSWORD,
  },
};

function create(config) {
  const newConfig = {
    ...config,
    impostersRepositoryConfig: repoConfig,
  };
  return repo.create(newConfig, logger);
}

module.exports = {
  create,
};

Then, run mb with the path to this file: mb --impostersRepository=./impostersRepo.js.

About

Plugin for mountebank to store imposters in Redis db

Topics

mountebankredisstubs

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.