Initial implementation of HTTP mock testing framework (#310)

* Initial implementation of HTTP mock testing framework

Convert to VCR testing server. Segregate live testing via build tags.

Converted Binance to VCR server

Convert Bitstamp to VCR mocking tests

Added VCR mock testing for localbitcoins

* Add server generation for concurrent testing

* Fix linter issues

* Fix linter issue

* fix race - potentially

* revert auto assigning of host vals

* Fix requested changes

* Adds mock testing for ANX
Switch to using TestMain functionality
Added cron job usage for travis-ci to live testing
Added appveyor scheduled build check for live testing

* WOOPS

* silly correction

* Fixes fantastic linter issues

* fixed another whoopsie

* WOOO!

* Adds gemini mock testing with additional fixes

* Add docs and sharedvalue

* Added tls using httptest package

* Fixed issues

* added explicit mock recording reference to error

* Fix requested changes

* strip port from mock files as they are not needed on tls server

* Change incorrect names

* fix requested changes

* lbank update

* Fix another issue

* Updated readme
This commit is contained in:
Ryan O'Hara-Reid
2019-08-23 15:20:02 +10:00
committed by Adrian Gallagher
parent a81ddead9e
commit 6d8ba0a96a
79 changed files with 109268 additions and 1250 deletions

2404
testdata/http_mock/anx/anx.json vendored Normal file

File diff suppressed because it is too large Load Diff

45467
testdata/http_mock/binance/binance.json vendored Normal file

File diff suppressed because it is too large Load Diff

42842
testdata/http_mock/bitstamp/bitstamp.json vendored Normal file

File diff suppressed because it is too large Load Diff

19
testdata/http_mock/exclusion.json vendored Executable file
View File

@@ -0,0 +1,19 @@
{
"headers": [
"Key",
"X-Mbx-Apikey",
"Rest-Key",
"Apiauth-Key",
"X-Gemini-Apikey"
],
"variables": [
"bsb",
"user",
"name",
"real_name",
"receiver_name",
"account_number",
"username",
"login"
]
}

2734
testdata/http_mock/gemini/gemini.json vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

9031
testdata/http_mock/poloniex/poloniex.json vendored Normal file

File diff suppressed because it is too large Load Diff