rsbe-client 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/.rspec +3 -0
  4. data/GETTING-STARTED.md +17 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +73 -0
  8. data/Rakefile +11 -0
  9. data/TODO.md +38 -0
  10. data/lib/rsbe/client.rb +50 -0
  11. data/lib/rsbe/client/base.rb +140 -0
  12. data/lib/rsbe/client/collection.rb +84 -0
  13. data/lib/rsbe/client/connection.rb +24 -0
  14. data/lib/rsbe/client/method_not_implemented_error.rb +6 -0
  15. data/lib/rsbe/client/not_found_error.rb +6 -0
  16. data/lib/rsbe/client/partner.rb +82 -0
  17. data/lib/rsbe/client/provider.rb +47 -0
  18. data/lib/rsbe/client/se.rb +97 -0
  19. data/lib/rsbe/client/search.rb +80 -0
  20. data/lib/rsbe/client/search_results.rb +41 -0
  21. data/lib/rsbe/client/unrecognized_resource_error.rb +6 -0
  22. data/lib/rsbe/client/version.rb +5 -0
  23. data/lib/rsbe/client/wrong_origin_error.rb +6 -0
  24. data/rsbe-client.gemspec +30 -0
  25. data/spec/fixtures/partners/partners_all.json +1 -0
  26. data/spec/fixtures/partners/partners_none.json +1 -0
  27. data/spec/rsbe/client/base_spec.rb +10 -0
  28. data/spec/rsbe/client/collection_spec.rb +186 -0
  29. data/spec/rsbe/client/connection_spec.rb +20 -0
  30. data/spec/rsbe/client/partner_spec.rb +185 -0
  31. data/spec/rsbe/client/provider_spec.rb +122 -0
  32. data/spec/rsbe/client/se_spec.rb +273 -0
  33. data/spec/rsbe/client/search_results_spec.rb +140 -0
  34. data/spec/rsbe/client/search_spec.rb +74 -0
  35. data/spec/rsbe/client_spec.rb +52 -0
  36. data/spec/spec_helper.rb +43 -0
  37. data/spec/vcr_cassettes/client/find_collection.yml +53 -0
  38. data/spec/vcr_cassettes/client/find_partner.yml +52 -0
  39. data/spec/vcr_cassettes/client/find_provider.yml +52 -0
  40. data/spec/vcr_cassettes/client/find_se.yml +53 -0
  41. data/spec/vcr_cassettes/collection/find-existing.yml +53 -0
  42. data/spec/vcr_cassettes/collection/find-non_existent.yml +50 -0
  43. data/spec/vcr_cassettes/collection/lazy-eval-dne.yml +285 -0
  44. data/spec/vcr_cassettes/collection/lazy-eval-exists.yml +53 -0
  45. data/spec/vcr_cassettes/collection/save-create-known-id.yml +103 -0
  46. data/spec/vcr_cassettes/collection/save-create-unknown-id.yml +56 -0
  47. data/spec/vcr_cassettes/collection/save-invalid.yml +143 -0
  48. data/spec/vcr_cassettes/collection/save-update-valid.yml +99 -0
  49. data/spec/vcr_cassettes/partner/all.yml +300 -0
  50. data/spec/vcr_cassettes/partner/dne-with-id.yml +238 -0
  51. data/spec/vcr_cassettes/partner/find-existing.yml +52 -0
  52. data/spec/vcr_cassettes/partner/find-non_existent.yml +50 -0
  53. data/spec/vcr_cassettes/partner/lazy-eval-exists.yml +53 -0
  54. data/spec/vcr_cassettes/partner/save-create-known-id.yml +101 -0
  55. data/spec/vcr_cassettes/partner/save-create-unknown-id.yml +54 -0
  56. data/spec/vcr_cassettes/partner/save-invalid.yml +177 -0
  57. data/spec/vcr_cassettes/partner/save-unknown-id.yml +54 -0
  58. data/spec/vcr_cassettes/partner/save-update-valid.yml +98 -0
  59. data/spec/vcr_cassettes/partner/with-collections.yml +203 -0
  60. data/spec/vcr_cassettes/partner/without-collections.yml +101 -0
  61. data/spec/vcr_cassettes/provider/all.yml +248 -0
  62. data/spec/vcr_cassettes/provider/find-existing.yml +52 -0
  63. data/spec/vcr_cassettes/provider/find-non_existent.yml +50 -0
  64. data/spec/vcr_cassettes/provider/save-create-known-id.yml +101 -0
  65. data/spec/vcr_cassettes/provider/save-create-unknown-id.yml +54 -0
  66. data/spec/vcr_cassettes/provider/save-invalid.yml +178 -0
  67. data/spec/vcr_cassettes/provider/save-update-valid.yml +144 -0
  68. data/spec/vcr_cassettes/se/find-existing.yml +53 -0
  69. data/spec/vcr_cassettes/se/find-non_existent.yml +50 -0
  70. data/spec/vcr_cassettes/se/lazy-eval-exists.yml +52 -0
  71. data/spec/vcr_cassettes/se/save-create-known-id.yml +146 -0
  72. data/spec/vcr_cassettes/se/save-create-unknown-id.yml +56 -0
  73. data/spec/vcr_cassettes/se/save-invalid.yml +305 -0
  74. data/spec/vcr_cassettes/se/save-update-valid.yml +99 -0
  75. data/spec/vcr_cassettes/se/search-malformed-uuid.yml +54 -0
  76. data/spec/vcr_cassettes/se/search-with-existing-se.yml +52 -0
  77. data/spec/vcr_cassettes/se/search-with-missing-se.yml +52 -0
  78. data/spec/vcr_cassettes/search/search-with-existing-se.yml +52 -0
  79. data/spec/vcr_cassettes/search_results/no-results.yml +52 -0
  80. data/spec/vcr_cassettes/search_results/search-by-digi_id.yml +101 -0
  81. data/spec/vcr_cassettes/search_results/search-by-step.yml +201 -0
  82. metadata +307 -0
@@ -0,0 +1,300 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://foo:bar@localhost:3000/api/v0/partners
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ X-Frame-Options:
22
+ - SAMEORIGIN
23
+ X-Xss-Protection:
24
+ - 1; mode=block
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Ua-Compatible:
28
+ - chrome=1
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ X-Meta-Request-Version:
32
+ - 0.2.9
33
+ Etag:
34
+ - '"4835fb68b263b04e12f31205eea6e33f"'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ Set-Cookie:
38
+ - request_method=GET; path=/
39
+ X-Request-Id:
40
+ - 55783cdf-c8a2-4ac1-aeff-144833d91955
41
+ X-Runtime:
42
+ - '0.162855'
43
+ Connection:
44
+ - close
45
+ Server:
46
+ - thin 1.6.2 codename Doc Brown
47
+ body:
48
+ encoding: UTF-8
49
+ string: '[{"id":"b110731f-86af-4534-8e58-6d219dcb1c52","code":"quux","name":null,"created_at":"2014-10-15T13:39:16.772Z","updated_at":"2014-10-15T13:39:16.772Z","url":"http://localhost:3000/api/v0/partners/b110731f-86af-4534-8e58-6d219dcb1c52"},{"id":"5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa","code":"foo","name":null,"created_at":"2014-10-16T14:06:28.938Z","updated_at":"2014-10-16T14:06:28.938Z","url":"http://localhost:3000/api/v0/partners/5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa"},{"id":"51213be7-c8de-4e06-8cc2-06bfc82cdd68","code":"bar","name":null,"created_at":"2014-10-16T14:08:36.445Z","updated_at":"2014-10-16T14:08:36.445Z","url":"http://localhost:3000/api/v0/partners/51213be7-c8de-4e06-8cc2-06bfc82cdd68"},{"id":"b051f936-835c-4abb-9034-efa7508db4bf","code":"onyx","name":"The
50
+ Black Onyx Syndicate","created_at":"2014-10-16T13:22:56.010Z","updated_at":"2014-10-16T14:15:48.799Z","url":"http://localhost:3000/api/v0/partners/b051f936-835c-4abb-9034-efa7508db4bf"}]'
51
+ http_version:
52
+ recorded_at: Thu, 16 Oct 2014 16:10:14 GMT
53
+ - request:
54
+ method: get
55
+ uri: http://foo:bar@localhost:3000/api/v0/partners/
56
+ body:
57
+ encoding: US-ASCII
58
+ string: ''
59
+ headers:
60
+ User-Agent:
61
+ - Faraday v0.9.0
62
+ Accept-Encoding:
63
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
64
+ Accept:
65
+ - '*/*'
66
+ response:
67
+ status:
68
+ code: 200
69
+ message: OK
70
+ headers:
71
+ X-Frame-Options:
72
+ - SAMEORIGIN
73
+ X-Xss-Protection:
74
+ - 1; mode=block
75
+ X-Content-Type-Options:
76
+ - nosniff
77
+ X-Ua-Compatible:
78
+ - chrome=1
79
+ Content-Type:
80
+ - application/json; charset=utf-8
81
+ X-Meta-Request-Version:
82
+ - 0.2.9
83
+ Etag:
84
+ - '"4835fb68b263b04e12f31205eea6e33f"'
85
+ Cache-Control:
86
+ - max-age=0, private, must-revalidate
87
+ Set-Cookie:
88
+ - request_method=GET; path=/
89
+ X-Request-Id:
90
+ - 5d6cdbc4-c2f7-4602-89d3-c1684da304af
91
+ X-Runtime:
92
+ - '0.214117'
93
+ Connection:
94
+ - close
95
+ Server:
96
+ - thin 1.6.2 codename Doc Brown
97
+ body:
98
+ encoding: UTF-8
99
+ string: '[{"id":"b110731f-86af-4534-8e58-6d219dcb1c52","code":"quux","name":null,"created_at":"2014-10-15T13:39:16.772Z","updated_at":"2014-10-15T13:39:16.772Z","url":"http://localhost:3000/api/v0/partners/b110731f-86af-4534-8e58-6d219dcb1c52"},{"id":"5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa","code":"foo","name":null,"created_at":"2014-10-16T14:06:28.938Z","updated_at":"2014-10-16T14:06:28.938Z","url":"http://localhost:3000/api/v0/partners/5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa"},{"id":"51213be7-c8de-4e06-8cc2-06bfc82cdd68","code":"bar","name":null,"created_at":"2014-10-16T14:08:36.445Z","updated_at":"2014-10-16T14:08:36.445Z","url":"http://localhost:3000/api/v0/partners/51213be7-c8de-4e06-8cc2-06bfc82cdd68"},{"id":"b051f936-835c-4abb-9034-efa7508db4bf","code":"onyx","name":"The
100
+ Black Onyx Syndicate","created_at":"2014-10-16T13:22:56.010Z","updated_at":"2014-10-16T14:15:48.799Z","url":"http://localhost:3000/api/v0/partners/b051f936-835c-4abb-9034-efa7508db4bf"}]'
101
+ http_version:
102
+ recorded_at: Thu, 16 Oct 2014 16:10:14 GMT
103
+ - request:
104
+ method: get
105
+ uri: http://foo:bar@localhost:3000/api/v0/partners/b110731f-86af-4534-8e58-6d219dcb1c52
106
+ body:
107
+ encoding: US-ASCII
108
+ string: ''
109
+ headers:
110
+ User-Agent:
111
+ - Faraday v0.9.0
112
+ Accept-Encoding:
113
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
114
+ Accept:
115
+ - '*/*'
116
+ response:
117
+ status:
118
+ code: 200
119
+ message: OK
120
+ headers:
121
+ X-Frame-Options:
122
+ - SAMEORIGIN
123
+ X-Xss-Protection:
124
+ - 1; mode=block
125
+ X-Content-Type-Options:
126
+ - nosniff
127
+ X-Ua-Compatible:
128
+ - chrome=1
129
+ Content-Type:
130
+ - application/json; charset=utf-8
131
+ X-Meta-Request-Version:
132
+ - 0.2.9
133
+ Etag:
134
+ - '"ec5b1c107a94f0530671014fd06646c8"'
135
+ Cache-Control:
136
+ - max-age=0, private, must-revalidate
137
+ Set-Cookie:
138
+ - request_method=GET; path=/
139
+ X-Request-Id:
140
+ - 3eea2e96-c8ef-49e2-839c-dd1bf2505235
141
+ X-Runtime:
142
+ - '0.110204'
143
+ Connection:
144
+ - close
145
+ Server:
146
+ - thin 1.6.2 codename Doc Brown
147
+ body:
148
+ encoding: UTF-8
149
+ string: '{"id":"b110731f-86af-4534-8e58-6d219dcb1c52","code":"quux","name":null,"created_at":"2014-10-15T13:39:16.772Z","updated_at":"2014-10-15T13:39:16.772Z","colls_url":"http://localhost:3000/api/v0/partners/b110731f-86af-4534-8e58-6d219dcb1c52/colls","lock_version":0,"rel_path":"q/u/u/x"}'
150
+ http_version:
151
+ recorded_at: Thu, 16 Oct 2014 16:14:57 GMT
152
+ - request:
153
+ method: get
154
+ uri: http://foo:bar@localhost:3000/api/v0/partners/5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa
155
+ body:
156
+ encoding: US-ASCII
157
+ string: ''
158
+ headers:
159
+ User-Agent:
160
+ - Faraday v0.9.0
161
+ Accept-Encoding:
162
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
163
+ Accept:
164
+ - '*/*'
165
+ response:
166
+ status:
167
+ code: 200
168
+ message: OK
169
+ headers:
170
+ X-Frame-Options:
171
+ - SAMEORIGIN
172
+ X-Xss-Protection:
173
+ - 1; mode=block
174
+ X-Content-Type-Options:
175
+ - nosniff
176
+ X-Ua-Compatible:
177
+ - chrome=1
178
+ Content-Type:
179
+ - application/json; charset=utf-8
180
+ X-Meta-Request-Version:
181
+ - 0.2.9
182
+ Etag:
183
+ - '"f0bce311187f92164a06b74d18f65b22"'
184
+ Cache-Control:
185
+ - max-age=0, private, must-revalidate
186
+ Set-Cookie:
187
+ - request_method=GET; path=/
188
+ X-Request-Id:
189
+ - 4b574b06-a842-4b5f-8b88-29e7f0793ece
190
+ X-Runtime:
191
+ - '0.107054'
192
+ Connection:
193
+ - close
194
+ Server:
195
+ - thin 1.6.2 codename Doc Brown
196
+ body:
197
+ encoding: UTF-8
198
+ string: '{"id":"5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa","code":"foo","name":null,"created_at":"2014-10-16T14:06:28.938Z","updated_at":"2014-10-16T14:06:28.938Z","colls_url":"http://localhost:3000/api/v0/partners/5c902ffa-b2d9-4b8a-bac6-6ec8cfb50baa/colls","lock_version":0,"rel_path":"f/o/o"}'
199
+ http_version:
200
+ recorded_at: Thu, 16 Oct 2014 16:14:57 GMT
201
+ - request:
202
+ method: get
203
+ uri: http://foo:bar@localhost:3000/api/v0/partners/51213be7-c8de-4e06-8cc2-06bfc82cdd68
204
+ body:
205
+ encoding: US-ASCII
206
+ string: ''
207
+ headers:
208
+ User-Agent:
209
+ - Faraday v0.9.0
210
+ Accept-Encoding:
211
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
212
+ Accept:
213
+ - '*/*'
214
+ response:
215
+ status:
216
+ code: 200
217
+ message: OK
218
+ headers:
219
+ X-Frame-Options:
220
+ - SAMEORIGIN
221
+ X-Xss-Protection:
222
+ - 1; mode=block
223
+ X-Content-Type-Options:
224
+ - nosniff
225
+ X-Ua-Compatible:
226
+ - chrome=1
227
+ Content-Type:
228
+ - application/json; charset=utf-8
229
+ X-Meta-Request-Version:
230
+ - 0.2.9
231
+ Etag:
232
+ - '"416e42db8d4cda42e4d97bac97df65fb"'
233
+ Cache-Control:
234
+ - max-age=0, private, must-revalidate
235
+ Set-Cookie:
236
+ - request_method=GET; path=/
237
+ X-Request-Id:
238
+ - b0889f76-4087-43de-9370-61cc7d2baf26
239
+ X-Runtime:
240
+ - '0.107544'
241
+ Connection:
242
+ - close
243
+ Server:
244
+ - thin 1.6.2 codename Doc Brown
245
+ body:
246
+ encoding: UTF-8
247
+ string: '{"id":"51213be7-c8de-4e06-8cc2-06bfc82cdd68","code":"bar","name":null,"created_at":"2014-10-16T14:08:36.445Z","updated_at":"2014-10-16T14:08:36.445Z","colls_url":"http://localhost:3000/api/v0/partners/51213be7-c8de-4e06-8cc2-06bfc82cdd68/colls","lock_version":0,"rel_path":"b/a/r"}'
248
+ http_version:
249
+ recorded_at: Thu, 16 Oct 2014 16:14:58 GMT
250
+ - request:
251
+ method: get
252
+ uri: http://foo:bar@localhost:3000/api/v0/partners/b051f936-835c-4abb-9034-efa7508db4bf
253
+ body:
254
+ encoding: US-ASCII
255
+ string: ''
256
+ headers:
257
+ User-Agent:
258
+ - Faraday v0.9.0
259
+ Accept-Encoding:
260
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
261
+ Accept:
262
+ - '*/*'
263
+ response:
264
+ status:
265
+ code: 200
266
+ message: OK
267
+ headers:
268
+ X-Frame-Options:
269
+ - SAMEORIGIN
270
+ X-Xss-Protection:
271
+ - 1; mode=block
272
+ X-Content-Type-Options:
273
+ - nosniff
274
+ X-Ua-Compatible:
275
+ - chrome=1
276
+ Content-Type:
277
+ - application/json; charset=utf-8
278
+ X-Meta-Request-Version:
279
+ - 0.2.9
280
+ Etag:
281
+ - '"784e9cc745597f6a427f3feb9839c17c"'
282
+ Cache-Control:
283
+ - max-age=0, private, must-revalidate
284
+ Set-Cookie:
285
+ - request_method=GET; path=/
286
+ X-Request-Id:
287
+ - ad3d8187-71aa-47ae-a66d-179f06268f44
288
+ X-Runtime:
289
+ - '0.105874'
290
+ Connection:
291
+ - close
292
+ Server:
293
+ - thin 1.6.2 codename Doc Brown
294
+ body:
295
+ encoding: UTF-8
296
+ string: '{"id":"b051f936-835c-4abb-9034-efa7508db4bf","code":"onyx","name":"The
297
+ Black Onyx Syndicate","created_at":"2014-10-16T13:22:56.010Z","updated_at":"2014-10-16T14:15:48.799Z","colls_url":"http://localhost:3000/api/v0/partners/b051f936-835c-4abb-9034-efa7508db4bf/colls","lock_version":2,"rel_path":"o/n/y/x"}'
298
+ http_version:
299
+ recorded_at: Thu, 16 Oct 2014 16:14:58 GMT
300
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,238 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://foo:bar@localhost:3000/api/v0/partners/7c7afee8-c8be-43bf-8096-c03672aaf114
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ X-Frame-Options:
22
+ - SAMEORIGIN
23
+ X-Xss-Protection:
24
+ - 1; mode=block
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Ua-Compatible:
28
+ - chrome=1
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ X-Meta-Request-Version:
32
+ - 0.2.9
33
+ Cache-Control:
34
+ - no-cache
35
+ Set-Cookie:
36
+ - request_method=GET; path=/
37
+ X-Request-Id:
38
+ - af9559be-91de-422e-abef-0ba445feb29e
39
+ X-Runtime:
40
+ - '0.912813'
41
+ Connection:
42
+ - close
43
+ Server:
44
+ - thin 1.6.2 codename Doc Brown
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"error":"Couldn''t find Partner with id=7c7afee8-c8be-43bf-8096-c03672aaf114"}'
48
+ http_version:
49
+ recorded_at: Sun, 02 Oct 2016 00:37:30 GMT
50
+ - request:
51
+ method: get
52
+ uri: http://foo:bar@localhost:3000/api/v0/partners/7c7afee8-c8be-43bf-8096-c03672aaf114
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.9.0
59
+ Accept-Encoding:
60
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
+ Accept:
62
+ - '*/*'
63
+ response:
64
+ status:
65
+ code: 404
66
+ message: Not Found
67
+ headers:
68
+ X-Frame-Options:
69
+ - SAMEORIGIN
70
+ X-Xss-Protection:
71
+ - 1; mode=block
72
+ X-Content-Type-Options:
73
+ - nosniff
74
+ X-Ua-Compatible:
75
+ - chrome=1
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ X-Meta-Request-Version:
79
+ - 0.2.9
80
+ Cache-Control:
81
+ - no-cache
82
+ Set-Cookie:
83
+ - request_method=GET; path=/
84
+ X-Request-Id:
85
+ - 9e9cfe12-d0a0-4e82-a0aa-4b710eb78df8
86
+ X-Runtime:
87
+ - '0.008763'
88
+ Connection:
89
+ - close
90
+ Server:
91
+ - thin 1.6.2 codename Doc Brown
92
+ body:
93
+ encoding: UTF-8
94
+ string: '{"error":"Couldn''t find Partner with id=7c7afee8-c8be-43bf-8096-c03672aaf114"}'
95
+ http_version:
96
+ recorded_at: Sun, 02 Oct 2016 00:37:30 GMT
97
+ - request:
98
+ method: get
99
+ uri: http://foo:bar@localhost:3000/api/v0/partners/7c7afee8-c8be-43bf-8096-c03672aaf114
100
+ body:
101
+ encoding: US-ASCII
102
+ string: ''
103
+ headers:
104
+ User-Agent:
105
+ - Faraday v0.9.0
106
+ Accept-Encoding:
107
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
108
+ Accept:
109
+ - '*/*'
110
+ response:
111
+ status:
112
+ code: 404
113
+ message: Not Found
114
+ headers:
115
+ X-Frame-Options:
116
+ - SAMEORIGIN
117
+ X-Xss-Protection:
118
+ - 1; mode=block
119
+ X-Content-Type-Options:
120
+ - nosniff
121
+ X-Ua-Compatible:
122
+ - chrome=1
123
+ Content-Type:
124
+ - application/json; charset=utf-8
125
+ X-Meta-Request-Version:
126
+ - 0.2.9
127
+ Cache-Control:
128
+ - no-cache
129
+ Set-Cookie:
130
+ - request_method=GET; path=/
131
+ X-Request-Id:
132
+ - c4f57e05-f301-4de3-9846-6fb98ea32597
133
+ X-Runtime:
134
+ - '0.007280'
135
+ Connection:
136
+ - close
137
+ Server:
138
+ - thin 1.6.2 codename Doc Brown
139
+ body:
140
+ encoding: UTF-8
141
+ string: '{"error":"Couldn''t find Partner with id=7c7afee8-c8be-43bf-8096-c03672aaf114"}'
142
+ http_version:
143
+ recorded_at: Sun, 02 Oct 2016 00:37:30 GMT
144
+ - request:
145
+ method: get
146
+ uri: http://foo:bar@localhost:3000/api/v0/partners/7c7afee8-c8be-43bf-8096-c03672aaf114
147
+ body:
148
+ encoding: US-ASCII
149
+ string: ''
150
+ headers:
151
+ User-Agent:
152
+ - Faraday v0.9.0
153
+ Accept-Encoding:
154
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
155
+ Accept:
156
+ - '*/*'
157
+ response:
158
+ status:
159
+ code: 404
160
+ message: Not Found
161
+ headers:
162
+ X-Frame-Options:
163
+ - SAMEORIGIN
164
+ X-Xss-Protection:
165
+ - 1; mode=block
166
+ X-Content-Type-Options:
167
+ - nosniff
168
+ X-Ua-Compatible:
169
+ - chrome=1
170
+ Content-Type:
171
+ - application/json; charset=utf-8
172
+ X-Meta-Request-Version:
173
+ - 0.2.9
174
+ Cache-Control:
175
+ - no-cache
176
+ Set-Cookie:
177
+ - request_method=GET; path=/
178
+ X-Request-Id:
179
+ - 8cdacfc1-af21-4781-9846-8faf89eab2ad
180
+ X-Runtime:
181
+ - '0.007360'
182
+ Connection:
183
+ - close
184
+ Server:
185
+ - thin 1.6.2 codename Doc Brown
186
+ body:
187
+ encoding: UTF-8
188
+ string: '{"error":"Couldn''t find Partner with id=7c7afee8-c8be-43bf-8096-c03672aaf114"}'
189
+ http_version:
190
+ recorded_at: Sun, 02 Oct 2016 00:37:30 GMT
191
+ - request:
192
+ method: get
193
+ uri: http://foo:bar@localhost:3000/api/v0/partners/7c7afee8-c8be-43bf-8096-c03672aaf114
194
+ body:
195
+ encoding: US-ASCII
196
+ string: ''
197
+ headers:
198
+ User-Agent:
199
+ - Faraday v0.9.0
200
+ Accept-Encoding:
201
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
202
+ Accept:
203
+ - '*/*'
204
+ response:
205
+ status:
206
+ code: 404
207
+ message: Not Found
208
+ headers:
209
+ X-Frame-Options:
210
+ - SAMEORIGIN
211
+ X-Xss-Protection:
212
+ - 1; mode=block
213
+ X-Content-Type-Options:
214
+ - nosniff
215
+ X-Ua-Compatible:
216
+ - chrome=1
217
+ Content-Type:
218
+ - application/json; charset=utf-8
219
+ X-Meta-Request-Version:
220
+ - 0.2.9
221
+ Cache-Control:
222
+ - no-cache
223
+ Set-Cookie:
224
+ - request_method=GET; path=/
225
+ X-Request-Id:
226
+ - 1bedeb5f-04fa-4cbf-85be-5a3200a200e1
227
+ X-Runtime:
228
+ - '0.008280'
229
+ Connection:
230
+ - close
231
+ Server:
232
+ - thin 1.6.2 codename Doc Brown
233
+ body:
234
+ encoding: UTF-8
235
+ string: '{"error":"Couldn''t find Partner with id=7c7afee8-c8be-43bf-8096-c03672aaf114"}'
236
+ http_version:
237
+ recorded_at: Sun, 02 Oct 2016 00:37:30 GMT
238
+ recorded_with: VCR 2.9.3