Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Restore all fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed May 10, 2015
1 parent b061eab commit 0256643
Show file tree
Hide file tree
Showing 11 changed files with 3,602 additions and 428 deletions.
404 changes: 245 additions & 159 deletions tests/py/fixtures/BillingHarness.yml

Large diffs are not rendered by default.

814 changes: 814 additions & 0 deletions tests/py/fixtures/TestCardHolds.yml

Large diffs are not rendered by default.

96 changes: 96 additions & 0 deletions tests/py/fixtures/TestCredits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
interactions:
- request:
body: '{"amount": 2600.00, "meta": {"exchange_id": 6, "participant_id": 3}, "description":
"homer"}'
headers: {}
method: POST
uri: https://api.balancedpayments.com:443/bank_accounts/BA40gFoNrvjyFXgMIEhsvYfb/credits
response:
body: {string: !!python/unicode "{\n \"credits\": [\n {\n \"status\"\
: \"succeeded\",\n \"description\": \"homer\",\n \"links\": {\n\
\ \"customer\": \"CU3ZpSyjOue8vDHTcjSplIYB\",\n \"destination\"\
: \"BA40gFoNrvjyFXgMIEhsvYfb\",\n \"order\": null,\n \"settlement\"\
: null\n },\n \"updated_at\": \"2015-05-10T09:32:23.062133Z\",\n\
\ \"created_at\": \"2015-05-10T09:32:22.735353Z\",\n \"transaction_number\"\
: \"CR4QF-8CH-BQ1R\",\n \"failure_reason\": null,\n \"currency\"\
: \"USD\",\n \"amount\": 2600,\n \"failure_reason_code\": null,\n\
\ \"meta\": {\n \"exchange_id\": \"6\",\n \"participant_id\"\
: \"3\"\n },\n \"href\": \"/credits/CR4dfflaBqCDhHmaD8BJ4NF3\",\n\
\ \"appears_on_statement_as\": \"example.com\",\n \"id\": \"CR4dfflaBqCDhHmaD8BJ4NF3\"\
\n }\n ],\n \"links\": {\n \"credits.events\": \"/credits/{credits.id}/events\"\
,\n \"credits.order\": \"/orders/{credits.order}\",\n \"credits.settlement\"\
: \"/settlements/{credits.settlement}\",\n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\
,\n \"credits.settlements\": \"/credits/{credits.id}/settlements\",\n \
\ \"credits.customer\": \"/customers/{credits.customer}\",\n \"credits.destination\"\
: \"/resources/{credits.destination}\"\n }\n}"}
headers:
content-length: ['1175']
content-type: [application/json]
status: {code: 201, message: CREATED}
- request:
body: null
headers: {}
method: GET
uri: https://api.balancedpayments.com:443/credits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0
response:
body:
string: !!binary |
H4sIAAAAAAAAA6VUUWvbMBB+768IgvZpiR07zrJCGUuy0A7a0aaFtWMYVT436mzJk+TQEvLfJylW
rCS0DxsBE93dd3ffdyetjjodRARkVEl02vmpj53Oyn61QyqsamNHsiYEIIMMfXDODCQRtFKUMxOx
4CWI1ltQ9tsgXS5TppbKBunoyV38UM1fn7/XMFpOz2/J87wqLu7H2wQ6XhdQlGFXYPxlED7N+JVY
Pr/OfjxdXnxdyOV9/uhDuMhsflYXhWvU8AClCiiBqcbXcFhvydRVhhVkKTYRKAr7STdMuv3wNvx0
GkenUdwLh1E/jh9ahlq1dyFR72Oc6J8HUQIziYlhlLK6fGy0uBlcz7qjyXl3fN2/aQvkmBa1gFTX
kVZjn5VWUwhg5NX0ezeftjBc8toSjYZhuCW4mywlPIP9jCUorG3exOCFLDB7gpRmpszQl7rCQlFC
K8xU447RgawLAblBBs2KBZObQZbnBR7/mUwX5yWejsbfBlez2Gu/qgALmWqJzPrZqaXYLiG84LIq
oEd42cZvWnszr21prb+/jBRohyMqsLTzdu19LmhJ1VmUnJi442RMOFOYMnmcTM88MU54nuudOgub
NhCDF7daG8XRPvN/Tm1bMtNMmsyb2trSDBdVApaU23vabghSXOFCm/oNLKfif8lqAe2NQbuX270f
PVjqWdlJbee9agbfo9k6aPxNQ87jPwuBO8hgi3SmtRPbAXduNQraowdujQdw91agwP7zQPZ8EL/3
HAUCJK8FAQ/ohRzA9ZB0EVy8o08bsieRR+1tdf0gM6mj9V9sx9bc3QUAAA==
headers:
content-encoding: [gzip]
content-length: ['613']
content-type: [application/json]
status: {code: 200, message: OK}
- request:
body: '{"status": "succeeded", "transaction_number": "CR4QF-8CH-BQ1R", "description":
"homer", "created_at": "2015-05-10T09:32:22.735353Z", "updated_at": "2015-05-10T09:32:23.062133Z",
"failure_reason_code": null, "failure_reason": null, "destination_href": "/resources/BA40gFoNrvjyFXgMIEhsvYfb",
"currency": "USD", "amount": 2600, "meta": {"participant_id": "3"}, "customer_href":
"/customers/CU3ZpSyjOue8vDHTcjSplIYB", "appears_on_statement_as": "example.com",
"settlement": null, "order": null, "id": "CR4dfflaBqCDhHmaD8BJ4NF3"}'
headers: {}
method: PUT
uri: https://api.balancedpayments.com:443/credits/CR4dfflaBqCDhHmaD8BJ4NF3
response:
body:
string: !!binary |
H4sIAAAAAAAAA31Ta2/aMBT93l8R5fNIQhI2xrcGhuikdSq00tpqilz7ppjlNT/QEMp/n+3mYUCt
kCLse84959zcHK8cx8UMCBXcnTnP6ug4R/NUBS6QkPre5RJjAALE/dQVCXDMaC1oVWrEtiqADdWc
ln80s+ulZSQXBqTQ84foqd4cdj8lTPeL1T3eber85jHpGyi8EhC0RJ1Ach0Hr8vqlu13h+Wv1x83
37Z8/5i92JSKEdO/lHneGdU5QIgcCihFW2szNH0YWRMkgKRII9wwGE9GwWQ0Du6Dr7MonIWxFwRh
PImehoRqah9SQu9LNFE/iyIYKjnCOlFayuKlncU6vluOpvPVKLkbrweBDNFcMkiVDjcztlOpaTIG
JT5ovw+bxUBDRSVN0PBzEPQBT5uluCJw3rEAgdSd9cZqxATFtEalSCnRSpF7Mbotg0yX/HaN/Pk6
JlmWo+TvfLFdFWgxTb7Ht8vIsljXgBhP1Rj0ipk3kyKzaPAPFXUOHq6KAf+m/W5fY6lRz986rnu6
et12e7BXKkajd3psLXuUNH5bf5tYz+o2yvXNP+73HHNuWpM9/mTVXH84Wszh8oLOlAvGUf6BzwFy
ZtXSej+lDTrj29+n3x0s293VhemzD9VnwCvJMFhcC9LoFWqumv8b7xc0ewQAAA==
headers:
content-encoding: [gzip]
content-length: ['502']
content-type: [application/json]
status: {code: 200, message: OK}
- request:
body: null
headers: {}
method: GET
uri: https://api.balancedpayments.com:443/debits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0
response:
body: {string: !!python/unicode "{\n \"meta\": {\n \"last\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\
,\n \"next\": null,\n \"href\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\
,\n \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"\
total\": 0,\n \"first\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\
\n },\n \"links\": {},\n \"debits\": []\n}"}
headers:
content-length: ['356']
content-type: [application/json]
status: {code: 200, message: OK}
version: 1
127 changes: 127 additions & 0 deletions tests/py/fixtures/TestElsewhere.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
interactions:
- request:
body: null
headers: {}
method: GET
uri: https://api.twitter.com:443/1.1/users/show.json?screen_name=Gratipay
response:
body:
string: !!binary |
H4sIAAAAAAAAALxWbY/jNBD+KyYf0CG6bd7aJJUQEru38AWBYNGddFlFTjJpzTp2sJ3dK6v+d8ZJ
k6bt7goQIl9qz5vHzzwz7rPDSmftBV4QrZb+MprhPtNGOWvnKHRmjqA1oOx7RQ1r6A4lulAAIrtU
cFngWgqU4q5RsmIcsqNUtJzPnBIwAGsOhp27aUv4lgyRviAfAB74juC6BmE0MZI0IBsOhIqSGKC1
JjvZkhw4g0cgTMzxwFZxDLg1ptHrdJEuzLyQ6aJeQfj7T15Yh2iC0ZhhoJ31c2/e/eD20/Pfcv/c
YAJQZue2m0Pq6FKnC7QsmW443R0Mp2pUMlGywibxyZ35wf3+fn+GypjV/X7fAWmgMIDlqijXMHMq
ybl8AqWzQrbCYBkjL0axYiDKURgssSRMo+MgiYOZg8WjVkRx79wqRn6kivgJ8YK1t1y7AfnaxY/4
rhdgqhV9lK1iBsaoeE5rikxWlQbcXnlh6Lozx7Aasj+lsJR4T/FQJcgdysi7334lX5JrKmhJv8KI
G5AZCJrzyX0eQbGKTQTaUNPqyaGJvQsVG4wOwhkMLFIn97nbtnifHXEj4vvr0F278fE+Sws9nrFM
ViF+ge/64coNV1Ew4f6lEr0MfLbRLS2JtwzSFqOFt1IRswVSMaUNsfdHnpZ4+BMQ/cCaBkqC2OF2
SmZS7AoOa3LOs1/Ezx8+gv/xBzpH+hOqgJQADTpqqdRuTtZX7+y9MWJhMU5b1w0KSrYKqm/Sjop9
tCdmEPyOiA5RwFEpZE+YtPeCu94Gz8nJNXaQMH20dEF7A3tl1YqCTknHRKZsQpmRWQ9/ZtHsm/pF
ZQ/ppQFWVr3ie1C95nkyeno18mlYFlKqkgnMWg8ibMICjnphFMtbI9VooMBggcyE3ZbylvFjG52O
jS3VW0M3XXdiPXZ1Lvlh0yVvi4xNPIjeni7Hqr81XWooWVv3s2UYJVc5l5thixOW7xoNV6FflS4U
bplAfDGF3ghjGe2vTkZT5M2SsJ9NAyJHLhxQm0gaqTXLsUoahEawHmFUHft2f1qDiznAdGYUFZpT
VL8kRWAvnIZ3JqfFw0Zhzey449bfuXZv3r+/cV60YTXdwATqDukm13PsoHrTo/Sam04XcbCMwySK
4nSR5GFA88LzaRWFYVwBDfzCq2gex35elPm8wfu/nUPWFfuk6P9zKgb3F5D+E4yGbIIoju3Edb0o
dKMgiZcoWyY0DKoq94KiwiUNktBfxYlXlEUSu1UmpKopP8vuX6Dz3yeRUyGwq89b8tXqWGtM4PgX
Ctehm/jRKuqekvFfERMPI09dNw6/CydazUrIqcpyHGh4+mB3230v2OGGj1Y3SPrb1cTKPl+jNui+
iRan1gWrRiaUUNGWm+xg/Jr8zKt/bpht+37K9gKc43+0oI2dEWZQCWnw7e//Ih6m8v4vAAAA//8D
ACcUQ3acCgAA
headers:
cache-control: ['no-cache, no-store, must-revalidate, pre-check=0, post-check=0']
content-disposition: [attachment; filename=json.json]
content-encoding: [gzip]
content-length: ['1092']
content-type: [application/json;charset=utf-8]
expires: ['Tue, 31 Mar 1981 05:00:00 GMT']
last-modified: ['Sun, 10 May 2015 09:27:24 GMT']
pragma: [no-cache]
set-cookie: ['guest_id=v1%3A143125004464519543; Domain=.twitter.com; Path=/;
Expires=Tue, 09-May-2017 09:27:24 UTC']
status: [200 OK]
strict-transport-security: [max-age=631138519]
status: {code: 200, message: OK}
- request:
body: null
headers: {}
method: GET
uri: https://api.twitter.com:443/1.1/users/show.json?screen_name=adhsjakdjsdkjsajdhksda
response:
body:
string: !!binary |
H4sIAAAAAAAAAKpWSi0qyi8qVrKKrlZKzk9JVbIyNtFRyk0tLk5MB3KUgvOLiip1FEoyEksUCoBC
Cin5qcUKefklCqkVmcUlekq1sbUAAAAA//8DALaCUj9FAAAA
headers:
cache-control: ['no-cache, no-store, must-revalidate, pre-check=0, post-check=0']
content-disposition: [attachment; filename=json.json]
content-encoding: [gzip]
content-length: ['93']
content-type: [application/json;charset=utf-8]
expires: ['Tue, 31 Mar 1981 05:00:00 GMT']
last-modified: ['Sun, 10 May 2015 09:27:29 GMT']
pragma: [no-cache]
set-cookie: ['guest_id=v1%3A143125004928540477; Domain=.twitter.com; Path=/;
Expires=Tue, 09-May-2017 09:27:29 UTC']
status: [404 Not Found]
strict-transport-security: [max-age=631138519]
status: {code: 404, message: Not Found}
- request:
body: null
headers: {}
method: GET
uri: https://api.github.com:443/users/adhsjakdjsdkjsajdhksda
response:
body:
string: !!binary |
H4sIAAAAAAAAA6tWyk0tLk5MT1WyUvLLL1Fwyy/NS1HSUUrJTy7NTc0rSSzJzM+LLy3KAcpnlJQU
FFvp66eklqXm5BekFumlZ5ZklCbpJefn6pcZK9UCAP6TTUJNAAAA
headers:
access-control-allow-credentials: ['true']
access-control-allow-origin: ['*']
access-control-expose-headers: ['ETag, Link, X-GitHub-OTP, X-RateLimit-Limit,
X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes,
X-Poll-Interval']
content-encoding: [gzip]
content-security-policy: [default-src 'none']
content-type: [application/json; charset=utf-8]
status: [404 Not Found]
strict-transport-security: [max-age=31536000; includeSubdomains; preload]
transfer-encoding: [chunked]
status: {code: 404, message: Not Found}
- request:
body: null
headers: {}
method: GET
uri: https://graph.facebook.com:443/adhsjakdjsdkjsajdhksda
response:
body: {string: !!python/unicode '{"error":{"message":"(#803) Some of the aliases
you requested do not exist: adhsjakdjsdkjsajdhksda","type":"OAuthException","code":803}}'}
headers:
access-control-allow-origin: ['*']
cache-control: [no-store]
content-length: ['136']
content-type: [application/json; charset=UTF-8]
expires: ['Sat, 01 Jan 2000 00:00:00 GMT']
facebook-api-version: [v1.0]
pragma: [no-cache]
www-authenticate: ['OAuth "Facebook Platform" "not_found" "(#803) Some of the
aliases you requested do not exist: adhsjakdjsdkjsajdhksda"']
status: {code: 404, message: Not Found}
- request:
body: null
headers: {}
method: GET
uri: https://bitbucket.org:443/api/2.0/users/adhsjakdjsdkjsajdhksda
response:
body:
string: !!binary |
H4sIAAAAAAAAA6tWSi0qyi9SslKoVspNLS5OTE8FspUSUzKKsxKzU7KKU7KzihOzUjKyi1MSlWpr
AfM0plMwAAAA
headers:
content-encoding: [gzip]
content-language: [en]
content-type: [application/json; charset=utf-8]
transfer-encoding: [chunked]
vary: ['Authorization, Accept-Language, Cookie']
status: {code: 404, message: NOT FOUND}
version: 1
Loading

0 comments on commit 0256643

Please sign in to comment.