Giter VIP home page Giter VIP logo

vaurienclient's Introduction

Vaurien Client

This is a client for vaurien. It's a separate project to avoid getting all the dependencies of vaurien when you just want to control it.

It uses the vaurien's APIs to change the behaviors on the proxy side.

vaurienctl can be used to list the available behaviors, get the current one, or set it.

Here is a quick demo:

$ vaurienctl list-behaviors
delay, error, hang, blackout, dummy

$ vaurienctl set-behavior blackout
Behavior changed to "blackout"

$ vaurienctl get-behavior
blackout

Using the marteau extension

vaurienclient can be plugged into the marteau mechanism, as a fixture. The fixture class lives in vaurienclient.ext.marteau.

Here is how you can make it work with a .marteau.yml file:

lookup:
    - vaurienclient.ext.marteau
fixtures:
    memcache_delay:
        class: VaurienFixture
        arguments:
            server: memcache
            behavior: delay
vaurien-proxies:
    memcache: http://memcache:0123

There are different sections that can be useful here:

  • lookup tells marteau to load the fixtures that are available on vaurienclient.ext.marteau.
  • fixtures is the list of fixtures. you give them the class to Use (here the VaurienFixture class, and some arguments.
  • And then, the last bit is the list of poxies you want to use.

vaurienclient's People

Contributors

tarekziade avatar almet avatar

Watchers

James Cloos avatar  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.