webmock-proxy

command module
v0.0.0-...-270826a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2016 License: MIT Imports: 2 Imported by: 0

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

$ git clone git@github.com:wantedly/webmock-proxy.git
$ cd webmock-proxy
$ make deps
$ make

Usage

Record HTTP/S interactions

Run webmock-proxy "Record" mode.

$ WEBMOCK_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.

$ bin/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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
example
go command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL