Giter Club home page Giter Club logo

mountebank-showcase's Introduction

poc-mountebank

About:

This repository contains a showcase of the Mountebank.

Mountebank is the first open source tool to provide cross-platform, multi-protocol test doubles over the wire. Simply point your application under test to mountebank instead of the real dependency, and test like you would with traditional stubs and mocks.

Examples:

  • Create a Impostor.
  • Create a Impostor with another default response.
  • Delete a single Impostor.
  • Delete all Impostors.
  • Create a Stub.
  • Create a Stub with Decorator behavior. (Post-processes the response using JavaScript injection before sending it.)
  • Create a Stub with Wait behavior (constant and range timeouts). (Adds latency to a response by waiting a specified number of milliseconds before sending the response.)
  • Create a Stub with Copy behavior. (Copies one or more values from request fields into the response. You can tokenize the response and select values from request fields using regular expressions, xpath, or jsonpath.)
  • Create a Stub with a number of Repeat times. (The repeat behavior allows certain responses to return a certain number of times before moving on to the next response in the array.)
  • Update a Stub from Impostor.
  • Update all Stubs from Impostor.
  • Remove a Stub from Impostor.
  • Matching a stub by Method and Path.
  • Matching a stub by Method, Path and Headers.

Glossary

  • Imposter: A server representing a test double. An imposter is identified by a port and a protocol. Mountebank is non-modal and can create as many imposters as your test requires.
  • Stub: A set of configuration used to generate a response for an imposter. An imposter can have 0 or more stubs, each of which are associated with different predicates.
  • Predicate: A condition that determines whether a given stub is responsible for responding. Each stub can have 0 or more predicates. (expected request).
  • Response: The configuration that generates the response for a stub. Each stub can have 0 or more responses. (response for the expected request).

Mental Model:

Mountebank Mental Model

Notes/Links:

Mountebank CLI.
Mountebank API Contracts.
Mountebank UI: Provide samples of how to add impostors, stubs (match criteria, and responses).

mountebank-showcase's People

Contributors

vgcpaulino avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.