GithubHelp home page GithubHelp logo

service_virtualization's Introduction

Service Virtualization

Why - here and here .
Stubs are test doubles (aka. mock services), imposter is an abstract for virtualized service, stubs include predicates and responses. predicates specify how an incoming request should match the stub (in the absence of predicate, stub always matches and hence no reason to have more than one stub), responses - proxies, injection and behaviors.

Features

How

  • git pull
  • Install docker
  • docker build -t mymountebank -f mountebank.dockerfile .
  • docker run --name mymountebank-1 -d -p 2525:2525 -p 4545-4555:4545-4555 mymountebank:latest - starts mb with defaults
  • starts mb by injecting the imposter templates. The templates themselves are javascript files, so lots of logic can be injected
docker run -v $(pwd)/templates/sample:/templates -p 4546:4546 -p 5555:5555 -p 2525:2525 -d mymountebank:latest 
--configfile templates/imposters.ejs --allowInjection
  • From here you can start defining imposters as per the documentation

More options

  • mb server has many command-line config options. Options are appended to e.g. docker run....--mock

service_virtualization's People

Contributors

machzqcq avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

service_virtualization's Issues

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.