No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
predicates #MPL-816 ed fixes undefined equalsJSON error Jun 13, 2018
responses refactors _behaivor field to _behaivors Feb 23, 2016
travis-scripts
.gitignore adds .idea to .gitignore file Aug 23, 2016
.travis.yml Added go build too. Aug 6, 2018
LICENSE refactors Stub tests to better reflect the JSON tree Jan 24, 2016
README.md Update README.md Aug 6, 2018
TODO.txt Travis CI Integrated Aug 6, 2018
gobank_suite_test.go
imposter.go Adds NumberOfRequests support for gobank. Aug 5, 2018
imposter_test.go Adds NumberOfRequests support for gobank. Aug 5, 2018
mountebank.go Changes method for backward-compatibility. Aug 6, 2018
mountebank_test.go Adds NumberOfRequests support for gobank. Aug 5, 2018
stub.go refactors imposters, stubs and mountebank client to top level package Feb 23, 2016
stub_test.go refactors imposters, stubs and mountebank client to top level package Feb 23, 2016

README.md

GoBank

Build Status

GoBank -- Go client for the awesome, over-the-wire test double Mountebank.

THIS PROJECT IS CURRENTLY UNDER DEVELOPMENT.

ALTHOUGH MOST OF THE HTTP IMPOSTER FUNCTIONALITY IS COVERED, THE FLUENT API MIGHT CHANGE.

PLEASE CHECK AGAIN LATER...

Installation

$ go get github.com/durmaze/gobank

Documentation

See Go Doc or Go Walker for usage and details.

Status

TODO Add Travis Build Status, Go coverage, GoDoc, License, etc.

Why should you use GoBank?

GoBank makes things simple if you'd like to use Mountebank in your tests. As recommended by Mountebank, you're better off creating and deleting your imposters in your test lifecycle (i.e. setup and teardown hooks).

GoBank provides a Go API, which directly maps to Mountebank's REST API.

With GoBank, you can simply create an Imposter via a Fluent API,

// build an Imposter
imposter := NewImposterBuilder().Protocol("http").Port(4546).Build()

and then, you can publish your imposter to Mountebank.

// publish your Imposter to Mountebank
client := mountebank.NewClient(MountebankUri)
client.CreateImposter(imposter)

Contributing to GoBank:

If you want to contribute, feel free to send me a pull request with testing.

Currently, only HTTP imposters are supported. Any contributions on HTTPS, SMTP and TCP are more than welcome.

Thanks to all contributors thus far: @alperkose

License

GoBank is MIT License.