wantedly/webmock-proxy

Name: webmock-proxy

Owner: Wantedly, Inc.

Description: null

Created: 2016-06-02 02:07:29.0

Updated: 2017-10-15 11:40:55.0

Pushed: 2017-04-08 11:08:05.0

Homepage: null

Size: 72

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Webmock-proxy - Record external API interactions, Provide fast and safe testing.

Webmock-proxy is “Man in the middle” proxy – allow you to external API test without HTTP/S connection. Has two functions “Record” and “Mock”.

Installation
t clone git@github.com:wantedly/webmock-proxy.git
 webmock-proxy
ke deps
ke
Usage
Record HTTP/S interactions

Run webmock-proxy “Record” mode.

BMOCK_PROXY_RECORD=1 bin/webmock-proxy

All HTTP/S connection is recorded and output simple JSON file. Connection is used transparently.

Mock API server

Run webmock-proxy “Mock” mode.

n/webmock-proxy

Webmock-proxy reply HTTP/S connection using cache file. In case of not exist cache file, webmock-proxy return status code 418.

Test using webmock-proxy

Read sample code Go and Ruby.

License

This project is releases under the MIT license.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.