mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-18 15:10:03 +00:00
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:
committed by
Adrian Gallagher
parent
a81ddead9e
commit
6d8ba0a96a
2404
testdata/http_mock/anx/anx.json
vendored
Normal file
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
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
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
19
testdata/http_mock/exclusion.json
vendored
Executable 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
2734
testdata/http_mock/gemini/gemini.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3400
testdata/http_mock/localbitcoins/localbitcoins.json
vendored
Normal file
3400
testdata/http_mock/localbitcoins/localbitcoins.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
9031
testdata/http_mock/poloniex/poloniex.json
vendored
Normal file
9031
testdata/http_mock/poloniex/poloniex.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user