pdc 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +27 -0
  3. data/.gitignore +10 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +21 -0
  7. data/CODE_OF_CONDUCT.md +49 -0
  8. data/Gemfile +32 -0
  9. data/Guardfile +36 -0
  10. data/LICENSE +21 -0
  11. data/LICENSE.txt +21 -0
  12. data/README.md +41 -0
  13. data/Rakefile +11 -0
  14. data/bin/console +11 -0
  15. data/bin/setup +11 -0
  16. data/docs/.gitignore +3 -0
  17. data/docs/LICENSE_sphinx_deployment +27 -0
  18. data/docs/Makefile +179 -0
  19. data/docs/source/conf.py +257 -0
  20. data/docs/source/example.rst +10 -0
  21. data/docs/source/index.rst +23 -0
  22. data/docs/sphinx_deployment.mk +117 -0
  23. data/examples/active_attr.rb +33 -0
  24. data/examples/http_failures.rb +18 -0
  25. data/examples/local_pdc_dev.rb +15 -0
  26. data/examples/logger.rb +50 -0
  27. data/examples/pdc_curb_access_token.rb +36 -0
  28. data/examples/pdc_resource_tests.rb +173 -0
  29. data/examples/pdc_test_cache.rb +48 -0
  30. data/examples/prod_failures.rb +26 -0
  31. data/examples/prod_pdc.rb +14 -0
  32. data/lib/pdc/base.rb +14 -0
  33. data/lib/pdc/config.rb +157 -0
  34. data/lib/pdc/errors.rb +8 -0
  35. data/lib/pdc/http/errors.rb +43 -0
  36. data/lib/pdc/http/request/append_slash.rb +19 -0
  37. data/lib/pdc/http/request.rb +12 -0
  38. data/lib/pdc/http/response/pagination.rb +43 -0
  39. data/lib/pdc/http/response/parser.rb +62 -0
  40. data/lib/pdc/http/response/raise_error.rb +13 -0
  41. data/lib/pdc/http/response.rb +3 -0
  42. data/lib/pdc/http/result.rb +28 -0
  43. data/lib/pdc/http.rb +12 -0
  44. data/lib/pdc/logger.rb +19 -0
  45. data/lib/pdc/resource/attribute_modifier.rb +43 -0
  46. data/lib/pdc/resource/attribute_store.rb +22 -0
  47. data/lib/pdc/resource/attributes.rb +144 -0
  48. data/lib/pdc/resource/errors.rb +3 -0
  49. data/lib/pdc/resource/identity.rb +75 -0
  50. data/lib/pdc/resource/path.rb +63 -0
  51. data/lib/pdc/resource/per_thread_registry.rb +54 -0
  52. data/lib/pdc/resource/relation/finder.rb +24 -0
  53. data/lib/pdc/resource/relation/pagination.rb +33 -0
  54. data/lib/pdc/resource/relation/query.rb +14 -0
  55. data/lib/pdc/resource/relation.rb +81 -0
  56. data/lib/pdc/resource/rest_api.rb +34 -0
  57. data/lib/pdc/resource/scope_registry.rb +19 -0
  58. data/lib/pdc/resource/scopes.rb +29 -0
  59. data/lib/pdc/resource/value_parser.rb +31 -0
  60. data/lib/pdc/resource/wip.rb +0 -0
  61. data/lib/pdc/resource.rb +12 -0
  62. data/lib/pdc/v1/arch.rb +6 -0
  63. data/lib/pdc/v1/product.rb +5 -0
  64. data/lib/pdc/v1/release.rb +18 -0
  65. data/lib/pdc/v1/release_variant.rb +17 -0
  66. data/lib/pdc/v1.rb +8 -0
  67. data/lib/pdc/version.rb +3 -0
  68. data/lib/pdc.rb +25 -0
  69. data/pdc.gemspec +38 -0
  70. data/spec/fixtures/vcr/_page_count_returns_total_count.yml +141 -0
  71. data/spec/fixtures/vcr/brew_can_be_nil.yml +61 -0
  72. data/spec/fixtures/vcr/brew_may_be_present.yml +50 -0
  73. data/spec/fixtures/vcr/caches_multiple_response.yml +173 -0
  74. data/spec/fixtures/vcr/caches_response_with_a_query.yml +64 -0
  75. data/spec/fixtures/vcr/caches_response_with_multiple_query.yml +64 -0
  76. data/spec/fixtures/vcr/caches_response_without_query.yml +61 -0
  77. data/spec/fixtures/vcr/can_iterate_using_each.yml +187 -0
  78. data/spec/fixtures/vcr/fetches_variants_of_a_release.yml +663 -0
  79. data/spec/fixtures/vcr/must_return_number_of_resources.yml +61 -0
  80. data/spec/fixtures/vcr/preserves_the_filters.yml +49 -0
  81. data/spec/fixtures/vcr/returns_resources_on_that_page.yml +49 -0
  82. data/spec/fixtures/vcr/returns_the_total_count_and_not_items_in_page.yml +135 -0
  83. data/spec/fixtures/vcr/should_not_be_in_the_list_of_attributes.yml +95 -0
  84. data/spec/fixtures/vcr/works_with_where.yml +49 -0
  85. data/spec/pdc/config_spec.rb +115 -0
  86. data/spec/pdc/http/errors_spec.rb +58 -0
  87. data/spec/pdc/resource/attributes_spec.rb +231 -0
  88. data/spec/pdc/resource/cache_spec.rb +88 -0
  89. data/spec/pdc/resource/count_spec.rb +45 -0
  90. data/spec/pdc/resource/identity_spec.rb +96 -0
  91. data/spec/pdc/resource/pagination_spec.rb +51 -0
  92. data/spec/pdc/resource/path_spec.rb +30 -0
  93. data/spec/pdc/resource/relation_spec.rb +94 -0
  94. data/spec/pdc/resource/rest_api_spec.rb +23 -0
  95. data/spec/pdc/resource/value_parser_spec.rb +15 -0
  96. data/spec/pdc/resource/wip_spec.rb +0 -0
  97. data/spec/pdc/v1/arch_spec.rb +34 -0
  98. data/spec/pdc/v1/release_spec.rb +54 -0
  99. data/spec/pdc/version_spec.rb +5 -0
  100. data/spec/spec_helper.rb +39 -0
  101. data/spec/support/fixtures.rb +116 -0
  102. data/spec/support/vcr.rb +10 -0
  103. data/spec/support/webmock.rb +34 -0
  104. metadata +295 -0
@@ -0,0 +1,663 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - Faraday v0.9.2
16
+ response:
17
+ status:
18
+ code: 200
19
+ message:
20
+ headers:
21
+ date:
22
+ - Wed, 03 Aug 2016 15:04:22 GMT
23
+ server:
24
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
25
+ mod_wsgi/3.4 Python/2.7.5
26
+ expires:
27
+ - Wed, 03 Aug 2016 15:04:54 GMT
28
+ vary:
29
+ - Accept,Cookie
30
+ last-modified:
31
+ - Thu, 21 Jul 2016 12:24:12 GMT
32
+ allow:
33
+ - GET, PUT, PATCH, HEAD, OPTIONS
34
+ cache-control:
35
+ - max-age=30
36
+ x-frame-options:
37
+ - SAMEORIGIN
38
+ connection:
39
+ - close
40
+ transfer-encoding:
41
+ - chunked
42
+ content-type:
43
+ - application/json
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
47
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
48
+ http_version:
49
+ recorded_at: Wed, 03 Aug 2016 15:04:27 GMT
50
+ - request:
51
+ method: get
52
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/release%2Dvariants/?release=rhel-7.1
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ Accept:
58
+ - application/json
59
+ Content-Type:
60
+ - application/json
61
+ User-Agent:
62
+ - Faraday v0.9.2
63
+ response:
64
+ status:
65
+ code: 200
66
+ message:
67
+ headers:
68
+ date:
69
+ - Wed, 03 Aug 2016 15:04:28 GMT
70
+ server:
71
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
72
+ mod_wsgi/3.4 Python/2.7.5
73
+ expires:
74
+ - Wed, 03 Aug 2016 15:04:59 GMT
75
+ vary:
76
+ - Accept,Cookie
77
+ last-modified:
78
+ - Thu, 21 Jul 2016 12:24:12 GMT
79
+ allow:
80
+ - GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
81
+ cache-control:
82
+ - max-age=30
83
+ x-frame-options:
84
+ - SAMEORIGIN
85
+ connection:
86
+ - close
87
+ transfer-encoding:
88
+ - chunked
89
+ content-type:
90
+ - application/json
91
+ body:
92
+ encoding: UTF-8
93
+ string: '{"count":12,"next":null,"previous":null,"results":[{"release":"rhel-7.1","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["x86_64"]},{"release":"rhel-7.1","id":"optional","uid":"Client-optional","name":"optional","type":"optional","arches":["x86_64"]},{"release":"rhel-7.1","id":"ComputeNode","uid":"ComputeNode","name":"Compute
94
+ Node","type":"variant","arches":["x86_64"]},{"release":"rhel-7.1","id":"optional","uid":"ComputeNode-optional","name":"optional","type":"optional","arches":["x86_64"]},{"release":"rhel-7.1","id":"Server","uid":"Server","name":"Server","type":"variant","arches":["ppc64","s390x","x86_64"]},{"release":"rhel-7.1","id":"HighAvailability","uid":"Server-HighAvailability","name":"High
95
+ Availability","type":"addon","arches":["x86_64"]},{"release":"rhel-7.1","id":"optional","uid":"Server-optional","name":"optional","type":"optional","arches":["ppc64","s390x","x86_64"]},{"release":"rhel-7.1","id":"ResilientStorage","uid":"Server-ResilientStorage","name":"Resilient
96
+ Storage","type":"addon","arches":["x86_64"]},{"release":"rhel-7.1","id":"RT","uid":"Server-RT","name":"RT","type":"layered-product","arches":["x86_64"]},{"release":"rhel-7.1","id":"SAP","uid":"Server-SAP","name":"SAP","type":"layered-product","arches":["x86_64"]},{"release":"rhel-7.1","id":"Workstation","uid":"Workstation","name":"Workstation","type":"variant","arches":["x86_64"]},{"release":"rhel-7.1","id":"optional","uid":"Workstation-optional","name":"optional","type":"optional","arches":["x86_64"]}]}'
97
+ http_version:
98
+ recorded_at: Wed, 03 Aug 2016 15:04:29 GMT
99
+ - request:
100
+ method: get
101
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
102
+ body:
103
+ encoding: US-ASCII
104
+ string: ''
105
+ headers:
106
+ Accept:
107
+ - application/json
108
+ Content-Type:
109
+ - application/json
110
+ User-Agent:
111
+ - Faraday v0.9.2
112
+ response:
113
+ status:
114
+ code: 200
115
+ message:
116
+ headers:
117
+ date:
118
+ - Wed, 03 Aug 2016 15:04:30 GMT
119
+ server:
120
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
121
+ mod_wsgi/3.4 Python/2.7.5
122
+ expires:
123
+ - Wed, 03 Aug 2016 15:05:00 GMT
124
+ vary:
125
+ - Accept,Cookie
126
+ last-modified:
127
+ - Thu, 21 Jul 2016 12:24:12 GMT
128
+ allow:
129
+ - GET, PUT, PATCH, HEAD, OPTIONS
130
+ cache-control:
131
+ - max-age=30
132
+ x-frame-options:
133
+ - SAMEORIGIN
134
+ connection:
135
+ - close
136
+ transfer-encoding:
137
+ - chunked
138
+ content-type:
139
+ - application/json
140
+ body:
141
+ encoding: UTF-8
142
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
143
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
144
+ http_version:
145
+ recorded_at: Wed, 03 Aug 2016 15:04:30 GMT
146
+ - request:
147
+ method: get
148
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
149
+ body:
150
+ encoding: US-ASCII
151
+ string: ''
152
+ headers:
153
+ Accept:
154
+ - application/json
155
+ Content-Type:
156
+ - application/json
157
+ User-Agent:
158
+ - Faraday v0.9.2
159
+ response:
160
+ status:
161
+ code: 200
162
+ message:
163
+ headers:
164
+ date:
165
+ - Wed, 03 Aug 2016 15:04:41 GMT
166
+ server:
167
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
168
+ mod_wsgi/3.4 Python/2.7.5
169
+ expires:
170
+ - Wed, 03 Aug 2016 15:05:11 GMT
171
+ vary:
172
+ - Accept,Cookie
173
+ last-modified:
174
+ - Thu, 21 Jul 2016 12:24:12 GMT
175
+ allow:
176
+ - GET, PUT, PATCH, HEAD, OPTIONS
177
+ cache-control:
178
+ - max-age=30
179
+ x-frame-options:
180
+ - SAMEORIGIN
181
+ connection:
182
+ - close
183
+ transfer-encoding:
184
+ - chunked
185
+ content-type:
186
+ - application/json
187
+ body:
188
+ encoding: UTF-8
189
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
190
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
191
+ http_version:
192
+ recorded_at: Wed, 03 Aug 2016 15:04:41 GMT
193
+ - request:
194
+ method: get
195
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
196
+ body:
197
+ encoding: US-ASCII
198
+ string: ''
199
+ headers:
200
+ Accept:
201
+ - application/json
202
+ Content-Type:
203
+ - application/json
204
+ User-Agent:
205
+ - Faraday v0.9.2
206
+ response:
207
+ status:
208
+ code: 200
209
+ message:
210
+ headers:
211
+ date:
212
+ - Wed, 03 Aug 2016 15:04:52 GMT
213
+ server:
214
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
215
+ mod_wsgi/3.4 Python/2.7.5
216
+ expires:
217
+ - Wed, 03 Aug 2016 15:05:22 GMT
218
+ vary:
219
+ - Accept,Cookie
220
+ last-modified:
221
+ - Thu, 21 Jul 2016 12:24:12 GMT
222
+ allow:
223
+ - GET, PUT, PATCH, HEAD, OPTIONS
224
+ cache-control:
225
+ - max-age=30
226
+ x-frame-options:
227
+ - SAMEORIGIN
228
+ connection:
229
+ - close
230
+ transfer-encoding:
231
+ - chunked
232
+ content-type:
233
+ - application/json
234
+ body:
235
+ encoding: UTF-8
236
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
237
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
238
+ http_version:
239
+ recorded_at: Wed, 03 Aug 2016 15:04:52 GMT
240
+ - request:
241
+ method: get
242
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
243
+ body:
244
+ encoding: US-ASCII
245
+ string: ''
246
+ headers:
247
+ Accept:
248
+ - application/json
249
+ Content-Type:
250
+ - application/json
251
+ User-Agent:
252
+ - Faraday v0.9.2
253
+ response:
254
+ status:
255
+ code: 200
256
+ message:
257
+ headers:
258
+ date:
259
+ - Wed, 03 Aug 2016 15:05:03 GMT
260
+ server:
261
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
262
+ mod_wsgi/3.4 Python/2.7.5
263
+ expires:
264
+ - Wed, 03 Aug 2016 15:05:34 GMT
265
+ vary:
266
+ - Accept,Cookie
267
+ last-modified:
268
+ - Thu, 21 Jul 2016 12:24:12 GMT
269
+ allow:
270
+ - GET, PUT, PATCH, HEAD, OPTIONS
271
+ cache-control:
272
+ - max-age=30
273
+ x-frame-options:
274
+ - SAMEORIGIN
275
+ connection:
276
+ - close
277
+ transfer-encoding:
278
+ - chunked
279
+ content-type:
280
+ - application/json
281
+ body:
282
+ encoding: UTF-8
283
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
284
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
285
+ http_version:
286
+ recorded_at: Wed, 03 Aug 2016 15:05:04 GMT
287
+ - request:
288
+ method: get
289
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
290
+ body:
291
+ encoding: US-ASCII
292
+ string: ''
293
+ headers:
294
+ Accept:
295
+ - application/json
296
+ Content-Type:
297
+ - application/json
298
+ User-Agent:
299
+ - Faraday v0.9.2
300
+ response:
301
+ status:
302
+ code: 200
303
+ message:
304
+ headers:
305
+ date:
306
+ - Wed, 03 Aug 2016 15:06:48 GMT
307
+ server:
308
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
309
+ mod_wsgi/3.4 Python/2.7.5
310
+ expires:
311
+ - Wed, 03 Aug 2016 15:07:19 GMT
312
+ vary:
313
+ - Accept,Cookie
314
+ last-modified:
315
+ - Thu, 21 Jul 2016 12:24:12 GMT
316
+ allow:
317
+ - GET, PUT, PATCH, HEAD, OPTIONS
318
+ cache-control:
319
+ - max-age=30
320
+ x-frame-options:
321
+ - SAMEORIGIN
322
+ connection:
323
+ - close
324
+ transfer-encoding:
325
+ - chunked
326
+ content-type:
327
+ - application/json
328
+ body:
329
+ encoding: UTF-8
330
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
331
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
332
+ http_version:
333
+ recorded_at: Wed, 03 Aug 2016 15:06:49 GMT
334
+ - request:
335
+ method: get
336
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
337
+ body:
338
+ encoding: US-ASCII
339
+ string: ''
340
+ headers:
341
+ Accept:
342
+ - application/json
343
+ Content-Type:
344
+ - application/json
345
+ User-Agent:
346
+ - Faraday v0.9.2
347
+ response:
348
+ status:
349
+ code: 200
350
+ message:
351
+ headers:
352
+ date:
353
+ - Wed, 03 Aug 2016 15:07:00 GMT
354
+ server:
355
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
356
+ mod_wsgi/3.4 Python/2.7.5
357
+ expires:
358
+ - Wed, 03 Aug 2016 15:07:30 GMT
359
+ vary:
360
+ - Accept,Cookie
361
+ last-modified:
362
+ - Thu, 21 Jul 2016 12:24:12 GMT
363
+ allow:
364
+ - GET, PUT, PATCH, HEAD, OPTIONS
365
+ cache-control:
366
+ - max-age=30
367
+ x-frame-options:
368
+ - SAMEORIGIN
369
+ connection:
370
+ - close
371
+ transfer-encoding:
372
+ - chunked
373
+ content-type:
374
+ - application/json
375
+ body:
376
+ encoding: UTF-8
377
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
378
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
379
+ http_version:
380
+ recorded_at: Wed, 03 Aug 2016 15:07:03 GMT
381
+ - request:
382
+ method: get
383
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
384
+ body:
385
+ encoding: US-ASCII
386
+ string: ''
387
+ headers:
388
+ Accept:
389
+ - application/json
390
+ Content-Type:
391
+ - application/json
392
+ User-Agent:
393
+ - Faraday v0.9.2
394
+ response:
395
+ status:
396
+ code: 200
397
+ message:
398
+ headers:
399
+ date:
400
+ - Wed, 03 Aug 2016 15:07:14 GMT
401
+ server:
402
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
403
+ mod_wsgi/3.4 Python/2.7.5
404
+ expires:
405
+ - Wed, 03 Aug 2016 15:07:44 GMT
406
+ vary:
407
+ - Accept,Cookie
408
+ last-modified:
409
+ - Thu, 21 Jul 2016 12:24:12 GMT
410
+ allow:
411
+ - GET, PUT, PATCH, HEAD, OPTIONS
412
+ cache-control:
413
+ - max-age=30
414
+ x-frame-options:
415
+ - SAMEORIGIN
416
+ connection:
417
+ - close
418
+ transfer-encoding:
419
+ - chunked
420
+ content-type:
421
+ - application/json
422
+ body:
423
+ encoding: UTF-8
424
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
425
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
426
+ http_version:
427
+ recorded_at: Wed, 03 Aug 2016 15:07:14 GMT
428
+ - request:
429
+ method: get
430
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
431
+ body:
432
+ encoding: US-ASCII
433
+ string: ''
434
+ headers:
435
+ Accept:
436
+ - application/json
437
+ Content-Type:
438
+ - application/json
439
+ User-Agent:
440
+ - Faraday v0.9.2
441
+ response:
442
+ status:
443
+ code: 200
444
+ message:
445
+ headers:
446
+ date:
447
+ - Wed, 03 Aug 2016 15:07:25 GMT
448
+ server:
449
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
450
+ mod_wsgi/3.4 Python/2.7.5
451
+ expires:
452
+ - Wed, 03 Aug 2016 15:07:55 GMT
453
+ vary:
454
+ - Accept,Cookie
455
+ last-modified:
456
+ - Thu, 21 Jul 2016 12:24:12 GMT
457
+ allow:
458
+ - GET, PUT, PATCH, HEAD, OPTIONS
459
+ cache-control:
460
+ - max-age=30
461
+ x-frame-options:
462
+ - SAMEORIGIN
463
+ connection:
464
+ - close
465
+ transfer-encoding:
466
+ - chunked
467
+ content-type:
468
+ - application/json
469
+ body:
470
+ encoding: UTF-8
471
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
472
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
473
+ http_version:
474
+ recorded_at: Wed, 03 Aug 2016 15:07:25 GMT
475
+ - request:
476
+ method: get
477
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
478
+ body:
479
+ encoding: US-ASCII
480
+ string: ''
481
+ headers:
482
+ Accept:
483
+ - application/json
484
+ Content-Type:
485
+ - application/json
486
+ User-Agent:
487
+ - Faraday v0.9.2
488
+ response:
489
+ status:
490
+ code: 200
491
+ message:
492
+ headers:
493
+ date:
494
+ - Wed, 03 Aug 2016 15:07:36 GMT
495
+ server:
496
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
497
+ mod_wsgi/3.4 Python/2.7.5
498
+ expires:
499
+ - Wed, 03 Aug 2016 15:08:06 GMT
500
+ vary:
501
+ - Accept,Cookie
502
+ last-modified:
503
+ - Thu, 21 Jul 2016 12:24:12 GMT
504
+ allow:
505
+ - GET, PUT, PATCH, HEAD, OPTIONS
506
+ cache-control:
507
+ - max-age=30
508
+ x-frame-options:
509
+ - SAMEORIGIN
510
+ connection:
511
+ - close
512
+ transfer-encoding:
513
+ - chunked
514
+ content-type:
515
+ - application/json
516
+ body:
517
+ encoding: UTF-8
518
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
519
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
520
+ http_version:
521
+ recorded_at: Wed, 03 Aug 2016 15:07:37 GMT
522
+ - request:
523
+ method: get
524
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
525
+ body:
526
+ encoding: US-ASCII
527
+ string: ''
528
+ headers:
529
+ Accept:
530
+ - application/json
531
+ Content-Type:
532
+ - application/json
533
+ User-Agent:
534
+ - Faraday v0.9.2
535
+ response:
536
+ status:
537
+ code: 200
538
+ message:
539
+ headers:
540
+ date:
541
+ - Wed, 03 Aug 2016 15:07:50 GMT
542
+ server:
543
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
544
+ mod_wsgi/3.4 Python/2.7.5
545
+ expires:
546
+ - Wed, 03 Aug 2016 15:08:20 GMT
547
+ vary:
548
+ - Accept,Cookie
549
+ last-modified:
550
+ - Thu, 21 Jul 2016 12:24:12 GMT
551
+ allow:
552
+ - GET, PUT, PATCH, HEAD, OPTIONS
553
+ cache-control:
554
+ - max-age=30
555
+ x-frame-options:
556
+ - SAMEORIGIN
557
+ connection:
558
+ - close
559
+ transfer-encoding:
560
+ - chunked
561
+ content-type:
562
+ - application/json
563
+ body:
564
+ encoding: UTF-8
565
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
566
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
567
+ http_version:
568
+ recorded_at: Wed, 03 Aug 2016 15:07:50 GMT
569
+ - request:
570
+ method: get
571
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
572
+ body:
573
+ encoding: US-ASCII
574
+ string: ''
575
+ headers:
576
+ Accept:
577
+ - application/json
578
+ Content-Type:
579
+ - application/json
580
+ User-Agent:
581
+ - Faraday v0.9.2
582
+ response:
583
+ status:
584
+ code: 200
585
+ message:
586
+ headers:
587
+ date:
588
+ - Wed, 03 Aug 2016 15:08:01 GMT
589
+ server:
590
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
591
+ mod_wsgi/3.4 Python/2.7.5
592
+ expires:
593
+ - Wed, 03 Aug 2016 15:08:31 GMT
594
+ vary:
595
+ - Accept,Cookie
596
+ last-modified:
597
+ - Thu, 21 Jul 2016 12:24:12 GMT
598
+ allow:
599
+ - GET, PUT, PATCH, HEAD, OPTIONS
600
+ cache-control:
601
+ - max-age=30
602
+ x-frame-options:
603
+ - SAMEORIGIN
604
+ connection:
605
+ - close
606
+ transfer-encoding:
607
+ - chunked
608
+ content-type:
609
+ - application/json
610
+ body:
611
+ encoding: UTF-8
612
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
613
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
614
+ http_version:
615
+ recorded_at: Wed, 03 Aug 2016 15:08:01 GMT
616
+ - request:
617
+ method: get
618
+ uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
619
+ body:
620
+ encoding: US-ASCII
621
+ string: ''
622
+ headers:
623
+ Accept:
624
+ - application/json
625
+ Content-Type:
626
+ - application/json
627
+ User-Agent:
628
+ - Faraday v0.9.2
629
+ response:
630
+ status:
631
+ code: 200
632
+ message:
633
+ headers:
634
+ date:
635
+ - Wed, 03 Aug 2016 15:08:12 GMT
636
+ server:
637
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
638
+ mod_wsgi/3.4 Python/2.7.5
639
+ expires:
640
+ - Wed, 03 Aug 2016 15:08:42 GMT
641
+ vary:
642
+ - Accept,Cookie
643
+ last-modified:
644
+ - Thu, 21 Jul 2016 12:24:12 GMT
645
+ allow:
646
+ - GET, PUT, PATCH, HEAD, OPTIONS
647
+ cache-control:
648
+ - max-age=30
649
+ x-frame-options:
650
+ - SAMEORIGIN
651
+ connection:
652
+ - close
653
+ transfer-encoding:
654
+ - chunked
655
+ content-type:
656
+ - application/json
657
+ body:
658
+ encoding: UTF-8
659
+ string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
660
+ Hat Enterprise Linux","base_product":null,"active":true,"product_version":"rhel-7","release_type":"ga","compose_set":["RHEL-7.1-20140507.2","RHEL-7.1-20140708.n.0","RHEL-7.1-20150219.1"],"integrated_with":null,"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}'
661
+ http_version:
662
+ recorded_at: Wed, 03 Aug 2016 15:08:13 GMT
663
+ recorded_with: VCR 3.0.3