davobutt / weld

Integration testing / service virtualization tool. A proxy server service
MIT License
1 stars 0 forks source link

Weld

A proxy server service which can be used for integration testing written in node.js

Weld has a RESTful api which can be used to programmatically set up, interogate and tear down proxy servers. It comes with a middleware layer which parses and stores JSON. By default this cache is in redis. Different middleware applications can be written and added in the conventional way using connect.

Usage Example

Imagine you have a series of microservices all communicating with each other using JSON. You can use weld in between all of these connections to test a variety of situations. For example you could write a test which ensures the appropriate failures when one of the systems is uncommunicative. You could also validate the JSON transferred between the systems.

Build Status

Build Status Coverage Status Code Climate

Integration testing with weld

Install

git clone git@github.com:gubber/weld.git
cd weld
node app

From here on in everything can be done with the API, the admin interface, or client libraries

API

Create a proxy server

POST weldserver.com:port/api/server/ServerName

{
    port: 49100,
    target: 'http://targetserver.com:1234'
}

Check status

GET weldserver.com:port/api/server/ServerName