pdc 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +23 -0
  3. data/.travis.yml +3 -4
  4. data/Gemfile +0 -1
  5. data/docs/sphinx_deployment.mk +1 -1
  6. data/examples/local_pdc_dev.rb +10 -1
  7. data/examples/logger.rb +7 -14
  8. data/examples/pdc_global_component_contact.rb +18 -0
  9. data/examples/pdc_release_rpm_mapping.rb +2 -2
  10. data/examples/pdc_resource_tests.rb +3 -3
  11. data/examples/pdc_test_cache.rb +1 -1
  12. data/examples/prod_failures.rb +1 -1
  13. data/examples/prod_pdc.rb +10 -1
  14. data/examples/test_no_ssl_verification.rb +1 -1
  15. data/examples/url.rb +4 -4
  16. data/lib/pdc.rb +1 -1
  17. data/lib/pdc/base.rb +1 -0
  18. data/lib/pdc/config.rb +0 -7
  19. data/lib/pdc/http/request/token_fetcher.rb +1 -1
  20. data/lib/pdc/http/response/pagination.rb +0 -2
  21. data/lib/pdc/resource.rb +1 -0
  22. data/lib/pdc/resource/associations.rb +39 -0
  23. data/lib/pdc/resource/associations/association.rb +21 -0
  24. data/lib/pdc/resource/associations/builder.rb +46 -0
  25. data/lib/pdc/resource/associations/has_many.rb +26 -0
  26. data/lib/pdc/resource/attributes.rb +13 -4
  27. data/lib/pdc/resource/identity.rb +1 -1
  28. data/lib/pdc/resource/relation.rb +5 -0
  29. data/lib/pdc/resource/relation/pagination.rb +4 -4
  30. data/lib/pdc/resource/rest_api.rb +1 -1
  31. data/lib/pdc/resource/scopes.rb +1 -1
  32. data/lib/pdc/v1.rb +4 -0
  33. data/lib/pdc/v1/global_component_contact.rb +5 -0
  34. data/lib/pdc/v1/multi_destination.rb +8 -0
  35. data/lib/pdc/v1/release.rb +3 -1
  36. data/lib/pdc/v1/release_variant.rb +6 -1
  37. data/lib/pdc/v1/released_file.rb +10 -0
  38. data/lib/pdc/v1/variant_cpe.rb +7 -0
  39. data/lib/pdc/version.rb +1 -1
  40. data/pdc.gemspec +8 -10
  41. data/spec/fixtures/vcr/_page_count_returns_total_count.yml +6 -6
  42. data/spec/fixtures/vcr/behaves_like_an_array.yml +141 -0
  43. data/spec/fixtures/vcr/brew_can_be_nil.yml +23 -14
  44. data/spec/fixtures/vcr/brew_may_be_present.yml +4 -2
  45. data/spec/fixtures/vcr/caches_multiple_response.yml +42 -36
  46. data/spec/fixtures/vcr/caches_response_with_a_query.yml +16 -16
  47. data/spec/fixtures/vcr/caches_response_with_multiple_query.yml +16 -16
  48. data/spec/fixtures/vcr/caches_response_without_query.yml +14 -14
  49. data/spec/fixtures/vcr/can_find_global_contact_by_component_name.yml +47 -0
  50. data/spec/fixtures/vcr/can_get_release_by_multi_product_version.yml +9 -9
  51. data/spec/fixtures/vcr/can_iterate_using_each.yml +8 -8
  52. data/spec/fixtures/vcr/content_delivery_repos_must_return_a_record.yml +2 -2
  53. data/spec/fixtures/vcr/cpe_returns_number.yml +44 -0
  54. data/spec/fixtures/vcr/cpe_works_with_where.yml +85 -0
  55. data/spec/fixtures/vcr/destination_returns_count.yml +44 -0
  56. data/spec/fixtures/vcr/destination_works_with_where.yml +44 -0
  57. data/spec/fixtures/vcr/fetches_variants_of_a_release.yml +20 -20
  58. data/spec/fixtures/vcr/find_on_has_many_association.yml +48 -0
  59. data/spec/fixtures/vcr/get_released_files_by_file_primary_key.yml +44 -0
  60. data/spec/fixtures/vcr/get_released_files_by_release_id.yml +44 -0
  61. data/spec/fixtures/vcr/has_many_association.yml +48 -0
  62. data/spec/fixtures/vcr/has_serveral_cdn_content_delivery_repos.yml +1 -1
  63. data/spec/fixtures/vcr/must_has_compose.yml +45 -1
  64. data/spec/fixtures/vcr/must_has_version__attributes.yml +2 -2
  65. data/spec/fixtures/vcr/must_return_number_of_resources.yml +62 -14
  66. data/spec/fixtures/vcr/preserves_the_filters.yml +2 -2
  67. data/spec/fixtures/vcr/returns_a_contact_email.yml +47 -0
  68. data/spec/fixtures/vcr/returns_a_gloabl_contact_id.yml +47 -0
  69. data/spec/fixtures/vcr/returns_a_mail_name.yml +47 -0
  70. data/spec/fixtures/vcr/returns_contact_for_component.yml +47 -0
  71. data/spec/fixtures/vcr/returns_contact_role.yml +48 -0
  72. data/spec/fixtures/vcr/returns_cpe.yml +88 -0
  73. data/spec/fixtures/vcr/returns_number_of_released_files.yml +48 -0
  74. data/spec/fixtures/vcr/returns_release_file_by_retrieve.yml +44 -0
  75. data/spec/fixtures/vcr/returns_resources_on_that_page.yml +2 -2
  76. data/spec/fixtures/vcr/returns_the_total_count_and_not_items_in_page.yml +6 -6
  77. data/spec/fixtures/vcr/returns_url_of_a_release.yml +2 -2
  78. data/spec/fixtures/vcr/returns_url_of_a_release_variant.yml +7 -7
  79. data/spec/fixtures/vcr/scopes_on_associations.yml +48 -0
  80. data/spec/fixtures/vcr/should_not_be_in_the_list_of_attributes.yml +4 -4
  81. data/spec/fixtures/vcr/works_with_where.yml +45 -1
  82. data/spec/pdc/resource/associations_spec.rb +111 -0
  83. data/spec/pdc/resource/attributes_spec.rb +30 -20
  84. data/spec/pdc/resource/cache_spec.rb +1 -1
  85. data/spec/pdc/resource/identity_spec.rb +10 -10
  86. data/spec/pdc/resource/path_spec.rb +1 -1
  87. data/spec/pdc/resource/relation_spec.rb +1 -1
  88. data/spec/pdc/v1/content_delivery_repo_spec.rb +6 -6
  89. data/spec/pdc/v1/global_component_contact_spec.rb +64 -0
  90. data/spec/pdc/v1/multi_destination_sepc.rb +27 -0
  91. data/spec/pdc/v1/release_spec.rb +10 -10
  92. data/spec/pdc/v1/release_variant_spec.rb +8 -0
  93. data/spec/pdc/v1/released_file_spec.rb +37 -0
  94. data/spec/pdc/v1/variant_cpe_spec.rb +29 -0
  95. data/spec/spec_helper.rb +1 -4
  96. data/spec/support/fixtures.rb +29 -2
  97. metadata +77 -20
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://example.com/rest_api/v1/global%2Dcomponent%2Dcontacts/?component=bash
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
+ - Fri, 24 Nov 2017 01:05:13 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
+ - Fri, 24 Nov 2017 01:05:13 GMT
28
+ vary:
29
+ - Accept,Cookie
30
+ last-modified:
31
+ - Fri, 24 Nov 2017 01:05:13 GMT
32
+ allow:
33
+ - GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
34
+ cache-control:
35
+ - max-age=0
36
+ x-frame-options:
37
+ - SAMEORIGIN
38
+ transfer-encoding:
39
+ - chunked
40
+ content-type:
41
+ - application/json
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"count":6,"next":null,"previous":null,"results":[{"id":2211,"component":"bash-completion","role":"QE_Group","contact":{"id":7,"mail_name":"NONE","email":"nobody@redhat.com"}},{"id":2673,"component":"bash-completion","role":"QE_Leader","contact":{"id":8,"username":"nobody","email":"nobody@redhat.com"}},{"id":3135,"component":"bash-completion","role":"QE_ACK","contact":{"id":8,"username":"nobody","email":"nobody@redhat.com"}},{"id":4689,"component":"bash","role":"QE_Group","contact":{"id":11,"mail_name":"BaseOS
45
+ QE - Apps","email":"qe-baseos-apps@redhat.com"}},{"id":5782,"component":"bash","role":"QE_Leader","contact":{"id":12,"username":"psplicha","email":"psplicha@redhat.com"}},{"id":6875,"component":"bash","role":"QE_ACK","contact":{"id":12,"username":"psplicha","email":"psplicha@redhat.com"}}]}'
46
+ http_version:
47
+ recorded_at: Fri, 24 Nov 2017 01:05:13 GMT
48
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,88 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://example.com/rest_api/v1/release%2Dvariants/
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
+ - Fri, 01 Sep 2017 01:49:13 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
+ - Fri, 01 Sep 2017 01:49:45 GMT
28
+ vary:
29
+ - Accept,Cookie
30
+ last-modified:
31
+ - Thu, 12 Jan 2017 13:54:23 GMT
32
+ allow:
33
+ - GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
34
+ cache-control:
35
+ - max-age=30
36
+ x-frame-options:
37
+ - SAMEORIGIN
38
+ transfer-encoding:
39
+ - chunked
40
+ content-type:
41
+ - application/json
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"count":544,"next":"https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/release-variants/?page=2","previous":null,"results":[{"release":"ceph-1.3@rhel-7","id":"Calamari","uid":"Calamari","name":"Calamari","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"ceph-1.3-updates@rhel-7","id":"Calamari","uid":"Calamari","name":"Calamari","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"satellite-6.3@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"satellite-6.3-updates@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"satellite-6.0.4@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"satellite-6.2-updates@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"satellite-6.2-updates@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"satellite-6.1.0@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[],"allowed_push_targets":[],"allowed_push_targets":[]},{"release":"satellite-6.2@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"satellite-6.1.0@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"satellite-6.2@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"satellite-6.3@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"satellite-6.3-updates@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"satellite-6.0.4@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"rhel-7.3","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"rhel-7.1-eus","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"supp-6.8@rhel-6","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["i386","x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"rhel-7.1","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"supp-6.7@rhel-6","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["i386","x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]},{"release":"rcmtools-1.5@rhel-7","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null,"allowed_push_targets":[]}]}'
45
+ http_version:
46
+ recorded_at: Fri, 01 Sep 2017 01:49:15 GMT
47
+ - request:
48
+ method: get
49
+ uri: https://example.com/rest_api/v1/variant%2Dcpes/?variant_uid=Calamari
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - application/json
56
+ Content-Type:
57
+ - application/json
58
+ User-Agent:
59
+ - Faraday v0.9.2
60
+ response:
61
+ status:
62
+ code: 200
63
+ message:
64
+ headers:
65
+ date:
66
+ - Wed, 27 Dec 2017 10:00:28 GMT
67
+ server:
68
+ - WSGIServer/0.1 Python/2.7.13
69
+ expires:
70
+ - Wed, 27 Dec 2017 10:00:58 GMT
71
+ vary:
72
+ - Accept, Cookie
73
+ last-modified:
74
+ - Wed, 27 Dec 2017 10:00:28 GMT
75
+ allow:
76
+ - GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
77
+ cache-control:
78
+ - max-age=30
79
+ x-frame-options:
80
+ - SAMEORIGIN
81
+ content-type:
82
+ - application/json
83
+ body:
84
+ encoding: UTF-8
85
+ string: '{"count":1,"next":null,"previous":null,"results":[{"id":1,"release":"ceph-1.1","variant_uid":"Calamari","cpe":"cpe:test"}]}'
86
+ http_version:
87
+ recorded_at: Wed, 27 Dec 2017 10:00:28 GMT
88
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://example.com/rest_api/v1/released%2Dfiles/
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, 13 Dec 2017 08:16:42 GMT
23
+ server:
24
+ - WSGIServer/0.1 Python/2.7.13
25
+ expires:
26
+ - Wed, 13 Dec 2017 08:17:12 GMT
27
+ vary:
28
+ - Accept, Cookie
29
+ last-modified:
30
+ - Wed, 13 Dec 2017 08:16:42 GMT
31
+ allow:
32
+ - GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
33
+ cache-control:
34
+ - max-age=30
35
+ x-frame-options:
36
+ - SAMEORIGIN
37
+ content-type:
38
+ - application/json
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"count":2,"next":null,"previous":null,"results":[{"id":39,"file_primary_key":5,"repo":{"id":18378,"release_id":"rhel-6.8","variant_uid":"Client","arch":"i386","service":"test","repo_family":"test",
42
+ "content_format":"rpm","content_category":"binary","name":"rhel-6-test__6Client__i386","shadow":false,"product_id":68},"released_date":null,"release_date":"2017-11-12","created_at":"2017-10-31T08:59:38.007696Z",
43
+ "updated_at":"2017-10-31T08:59:46.888620Z","zero_day_release":false,"obsolete":false,"build":"test-0.5.2-i686","package":"test","file":"test2-0.5.2-7.el7.i686.rpm"},{"id":57,"file_primary_key":2,"repo":{"id":27082,"release_id":"test-1.1@rhel-7",
44
+ "variant_uid":"ComputeNode","arch":"x86_64","service":"test","repo_family":"test","content_format":"rpm","content_category":"binary","name":"rhel-x86_64-test","shadow":true,"product_id":345},"released_date":null,"release_date":"2017-11-21",
45
+ "created_at":"2017-11-21T03:14:03.265629Z","updated_at":"2017-11-21T03:14:03.267097Z","zero_day_release":false,"obsolete":false,"build":"t-2.3.0-noarch","package":"t","file":"t-2.3.0-11.el7.noarch.rpm"}]}'
46
+ http_version:
47
+ recorded_at: Wed, 13 Dec 2017 08:16:42 GMT
48
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://example.com/rest_api/v1/released%2Dfiles/39/
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, 13 Dec 2017 08:13:45 GMT
23
+ server:
24
+ - WSGIServer/0.1 Python/2.7.13
25
+ expires:
26
+ - Wed, 13 Dec 2017 08:14:15 GMT
27
+ vary:
28
+ - Accept, Cookie
29
+ last-modified:
30
+ - Wed, 13 Dec 2017 08:13:45 GMT
31
+ allow:
32
+ - GET, PUT, PATCH, DELETE, HEAD, OPTIONS
33
+ cache-control:
34
+ - max-age=30
35
+ x-frame-options:
36
+ - SAMEORIGIN
37
+ content-type:
38
+ - application/json
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"id":39,"file_primary_key":5,"repo":{"id":18378,"release_id":"rhel-6.8","variant_uid":"Client","arch":"i386","service":"test","repo_family":"test","content_format":"rpm","content_category":"binary","name":"rhel-6-test__6Client__i386","shadow":false,"product_id":68},"released_date":null,"release_date":"2017-11-12","created_at":"2017-10-31T08:59:38.007696Z","updated_at":"2017-10-31T08:59:46.888620Z","zero_day_release":false,"obsolete":false,"build":"test-0.5.2-i686","package":"test","file":"test2-0.5.2-7.el7.i686.rpm"}'
42
+ http_version:
43
+ recorded_at: Wed, 13 Dec 2017 08:13:45 GMT
44
+ recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/?page=2
5
+ uri: https://example.com/rest_api/v1/arches/?page=2
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -43,7 +43,7 @@ http_interactions:
43
43
  - application/json
44
44
  body:
45
45
  encoding: UTF-8
46
- string: '{"count":50,"next":"https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/?page=3","previous":"https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/","results":[{"name":"i386"},{"name":"i486"},{"name":"i586"},{"name":"i686"},{"name":"ia32e"},{"name":"ia64"},{"name":"noarch"},{"name":"nosrc"},{"name":"ppc"},{"name":"ppc64"},{"name":"ppc64iseries"},{"name":"ppc64le"},{"name":"ppc64p7"},{"name":"ppc64pseries"},{"name":"s390"},{"name":"s390x"},{"name":"sh3"},{"name":"sh4"},{"name":"sh4a"},{"name":"sparc"}]}'
46
+ string: '{"count":50,"next":"https://example.com/rest_api/v1/arches/?page=3","previous":"https://example.com/rest_api/v1/arches/","results":[{"name":"i386"},{"name":"i486"},{"name":"i586"},{"name":"i686"},{"name":"ia32e"},{"name":"ia64"},{"name":"noarch"},{"name":"nosrc"},{"name":"ppc"},{"name":"ppc64"},{"name":"ppc64iseries"},{"name":"ppc64le"},{"name":"ppc64p7"},{"name":"ppc64pseries"},{"name":"s390"},{"name":"s390x"},{"name":"sh3"},{"name":"sh4"},{"name":"sh4a"},{"name":"sparc"}]}'
47
47
  http_version:
48
48
  recorded_at: Thu, 31 Dec 2015 14:00:00 GMT
49
49
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/
5
+ uri: https://example.com/rest_api/v1/arches/
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -41,12 +41,12 @@ http_interactions:
41
41
  - application/json
42
42
  body:
43
43
  encoding: UTF-8
44
- string: '{"count":50,"next":"https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/?page=2","previous":null,"results":[{"name":"alpha"},{"name":"alphaev4"},{"name":"alphaev45"},{"name":"alphaev5"},{"name":"alphaev56"},{"name":"alphaev6"},{"name":"alphaev67"},{"name":"alphaev68"},{"name":"alphaev7"},{"name":"alphapca56"},{"name":"amd64"},{"name":"arm64"},{"name":"armv5tejl"},{"name":"armv5tel"},{"name":"armv6l"},{"name":"armv7hl"},{"name":"armv7hnl"},{"name":"armv7l"},{"name":"athlon"},{"name":"geode"}]}'
44
+ string: '{"count":50,"next":"https://example.com/rest_api/v1/arches/?page=2","previous":null,"results":[{"name":"alpha"},{"name":"alphaev4"},{"name":"alphaev45"},{"name":"alphaev5"},{"name":"alphaev56"},{"name":"alphaev6"},{"name":"alphaev67"},{"name":"alphaev68"},{"name":"alphaev7"},{"name":"alphapca56"},{"name":"amd64"},{"name":"arm64"},{"name":"armv5tejl"},{"name":"armv5tel"},{"name":"armv6l"},{"name":"armv7hl"},{"name":"armv7hnl"},{"name":"armv7l"},{"name":"athlon"},{"name":"geode"}]}'
45
45
  http_version:
46
46
  recorded_at: Wed, 27 Jul 2016 06:46:08 GMT
47
47
  - request:
48
48
  method: get
49
- uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/?page=2
49
+ uri: https://example.com/rest_api/v1/arches/?page=2
50
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ''
@@ -85,12 +85,12 @@ http_interactions:
85
85
  - application/json
86
86
  body:
87
87
  encoding: UTF-8
88
- string: '{"count":50,"next":"https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/?page=3","previous":"https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/","results":[{"name":"i386"},{"name":"i486"},{"name":"i586"},{"name":"i686"},{"name":"ia32e"},{"name":"ia64"},{"name":"noarch"},{"name":"nosrc"},{"name":"ppc"},{"name":"ppc64"},{"name":"ppc64iseries"},{"name":"ppc64le"},{"name":"ppc64p7"},{"name":"ppc64pseries"},{"name":"s390"},{"name":"s390x"},{"name":"sh3"},{"name":"sh4"},{"name":"sh4a"},{"name":"sparc"}]}'
88
+ string: '{"count":50,"next":"https://example.com/rest_api/v1/arches/?page=3","previous":"https://example.com/rest_api/v1/arches/","results":[{"name":"i386"},{"name":"i486"},{"name":"i586"},{"name":"i686"},{"name":"ia32e"},{"name":"ia64"},{"name":"noarch"},{"name":"nosrc"},{"name":"ppc"},{"name":"ppc64"},{"name":"ppc64iseries"},{"name":"ppc64le"},{"name":"ppc64p7"},{"name":"ppc64pseries"},{"name":"s390"},{"name":"s390x"},{"name":"sh3"},{"name":"sh4"},{"name":"sh4a"},{"name":"sparc"}]}'
89
89
  http_version:
90
90
  recorded_at: Wed, 27 Jul 2016 06:46:12 GMT
91
91
  - request:
92
92
  method: get
93
- uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/?page=2
93
+ uri: https://example.com/rest_api/v1/arches/?page=2
94
94
  body:
95
95
  encoding: US-ASCII
96
96
  string: ''
@@ -129,7 +129,7 @@ http_interactions:
129
129
  - application/json
130
130
  body:
131
131
  encoding: UTF-8
132
- string: '{"count":50,"next":"https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/?page=3","previous":"https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/","results":[{"name":"i386"},{"name":"i486"},{"name":"i586"},{"name":"i686"},{"name":"ia32e"},{"name":"ia64"},{"name":"noarch"},{"name":"nosrc"},{"name":"ppc"},{"name":"ppc64"},{"name":"ppc64iseries"},{"name":"ppc64le"},{"name":"ppc64p7"},{"name":"ppc64pseries"},{"name":"s390"},{"name":"s390x"},{"name":"sh3"},{"name":"sh4"},{"name":"sh4a"},{"name":"sparc"}]}'
132
+ string: '{"count":50,"next":"https://example.com/rest_api/v1/arches/?page=3","previous":"https://example.com/rest_api/v1/arches/","results":[{"name":"i386"},{"name":"i486"},{"name":"i586"},{"name":"i686"},{"name":"ia32e"},{"name":"ia64"},{"name":"noarch"},{"name":"nosrc"},{"name":"ppc"},{"name":"ppc64"},{"name":"ppc64iseries"},{"name":"ppc64le"},{"name":"ppc64p7"},{"name":"ppc64pseries"},{"name":"s390"},{"name":"s390x"},{"name":"sh3"},{"name":"sh4"},{"name":"sh4a"},{"name":"sparc"}]}'
133
133
  http_version:
134
134
  recorded_at: Wed, 27 Jul 2016 06:46:16 GMT
135
135
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
5
+ uri: https://example.com/rest_api/v1/releases/rhel-7.1/
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -42,7 +42,7 @@ http_interactions:
42
42
  body:
43
43
  encoding: UTF-8
44
44
  string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
45
- 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}'
45
+ 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,"sigkey":null,"allow_buildroot_push":true,"allowed_debuginfo_services":[],"allowed_push_targets":[]}'
46
46
  http_version:
47
47
  recorded_at: Mon, 12 Sep 2016 07:48:06 GMT
48
48
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/rhel-7.1/
5
+ uri: https://example.com/rest_api/v1/releases/rhel-7.1/
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -42,12 +42,12 @@ http_interactions:
42
42
  body:
43
43
  encoding: UTF-8
44
44
  string: '{"release_id":"rhel-7.1","short":"rhel","version":"7.1","name":"Red
45
- 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}'
45
+ 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,"sigkey":null,"allow_buildroot_push":true,"allowed_debuginfo_services":[],"allowed_push_targets":[]}'
46
46
  http_version:
47
47
  recorded_at: Mon, 12 Sep 2016 07:48:10 GMT
48
48
  - request:
49
49
  method: get
50
- uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/release%2Dvariants/?release=rhel-7.1
50
+ uri: https://example.com/rest_api/v1/release%2Dvariants/?release=rhel-7.1
51
51
  body:
52
52
  encoding: US-ASCII
53
53
  string: ''
@@ -86,10 +86,10 @@ http_interactions:
86
86
  - application/json
87
87
  body:
88
88
  encoding: UTF-8
89
- 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
90
- 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
91
- 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
92
- 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"]}]}'
89
+ string: '{"count":12,"next":null,"previous":null,"results":[{"release":"rhel-7.1","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["x86_64"],"allowed_push_targets":[]},{"release":"rhel-7.1","id":"optional","uid":"Client-optional","name":"optional","type":"optional","arches":["x86_64"],"allowed_push_targets":[]},{"release":"rhel-7.1","id":"ComputeNode","uid":"ComputeNode","name":"Compute
90
+ Node","type":"variant","arches":["x86_64"],"allowed_push_targets":[]},{"release":"rhel-7.1","id":"optional","uid":"ComputeNode-optional","name":"optional","type":"optional","arches":["x86_64"],"allowed_push_targets":[]},{"release":"rhel-7.1","id":"Server","uid":"Server","name":"Server","type":"variant","arches":["ppc64","s390x","x86_64"],"allowed_push_targets":[]},{"release":"rhel-7.1","id":"HighAvailability","uid":"Server-HighAvailability","name":"High
91
+ Availability","type":"addon","arches":["x86_64"],"allowed_push_targets":[]},{"release":"rhel-7.1","id":"optional","uid":"Server-optional","name":"optional","type":"optional","arches":["ppc64","s390x","x86_64"],"allowed_push_targets":[]},{"release":"rhel-7.1","id":"ResilientStorage","uid":"Server-ResilientStorage","name":"Resilient
92
+ Storage","type":"addon","arches":["x86_64"],"allowed_push_targets":[]},{"release":"rhel-7.1","id":"RT","uid":"Server-RT","name":"RT","type":"layered-product","arches":["x86_64"],"allowed_push_targets":[]},{"release":"rhel-7.1","id":"SAP","uid":"Server-SAP","name":"SAP","type":"layered-product","arches":["x86_64"],"allowed_push_targets":[]},{"release":"rhel-7.1","id":"Workstation","uid":"Workstation","name":"Workstation","type":"variant","arches":["x86_64"],"allowed_push_targets":[]},{"release":"rhel-7.1","id":"optional","uid":"Workstation-optional","name":"optional","type":"optional","arches":["x86_64"],"allowed_push_targets":[]}]}'
93
93
  http_version:
94
94
  recorded_at: Mon, 12 Sep 2016 07:48:14 GMT
95
95
  recorded_with: VCR 3.0.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://example.com/rest_api/v1/releases/?product_version=dp-1&release_id=dp-1.0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.2
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
+ Date:
22
+ - Wed, 03 Jan 2018 08:14:47 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 Jan 2018 08:15:17 GMT
28
+ Vary:
29
+ - Accept,Cookie
30
+ Last-Modified:
31
+ - Tue, 26 Sep 2017 08:04:24 GMT
32
+ Allow:
33
+ - GET, POST, PUT, PATCH, HEAD, OPTIONS
34
+ Cache-Control:
35
+ - max-age=30
36
+ X-Frame-Options:
37
+ - SAMEORIGIN
38
+ Transfer-Encoding:
39
+ - chunked
40
+ Content-Type:
41
+ - application/json
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"count":1,"next":null,"previous":null,"results":[{"release_id":"dp-1.0","short":"dp","version":"1.0","name":"Dummy
45
+ Product","base_product":null,"active":true,"product_version":"dp-1","release_type":"ga","compose_set":[],"integrated_with":null,"sigkey":null,"allow_buildroot_push":false,"allowed_debuginfo_services":[],"allowed_push_targets":[],"bugzilla":null,"dist_git":null,"brew":null,"product_pages":null,"errata":null}]}'
46
+ http_version:
47
+ recorded_at: Wed, 03 Jan 2018 08:14:47 GMT
48
+ recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/?page=2
5
+ uri: https://example.com/rest_api/v1/arches/?page=2
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -43,12 +43,12 @@ http_interactions:
43
43
  - application/json
44
44
  body:
45
45
  encoding: UTF-8
46
- string: '{"count":50,"next":"https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/?page=3","previous":"https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/","results":[{"name":"i386"},{"name":"i486"},{"name":"i586"},{"name":"i686"},{"name":"ia32e"},{"name":"ia64"},{"name":"noarch"},{"name":"nosrc"},{"name":"ppc"},{"name":"ppc64"},{"name":"ppc64iseries"},{"name":"ppc64le"},{"name":"ppc64p7"},{"name":"ppc64pseries"},{"name":"s390"},{"name":"s390x"},{"name":"sh3"},{"name":"sh4"},{"name":"sh4a"},{"name":"sparc"}]}'
46
+ string: '{"count":50,"next":"https://example.com/rest_api/v1/arches/?page=3","previous":"https://example.com/rest_api/v1/arches/","results":[{"name":"i386"},{"name":"i486"},{"name":"i586"},{"name":"i686"},{"name":"ia32e"},{"name":"ia64"},{"name":"noarch"},{"name":"nosrc"},{"name":"ppc"},{"name":"ppc64"},{"name":"ppc64iseries"},{"name":"ppc64le"},{"name":"ppc64p7"},{"name":"ppc64pseries"},{"name":"s390"},{"name":"s390x"},{"name":"sh3"},{"name":"sh4"},{"name":"sh4a"},{"name":"sparc"}]}'
47
47
  http_version:
48
48
  recorded_at: Thu, 31 Dec 2015 14:00:00 GMT
49
49
  - request:
50
50
  method: get
51
- uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/?page=3
51
+ uri: https://example.com/rest_api/v1/arches/?page=3
52
52
  body:
53
53
  encoding: US-ASCII
54
54
  string: ''
@@ -89,7 +89,7 @@ http_interactions:
89
89
  - application/json
90
90
  body:
91
91
  encoding: UTF-8
92
- string: '{"count":50,"next":null,"previous":"https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/arches/?page=2","results":[{"name":"sparc64"},{"name":"sparc64v"},{"name":"sparcv8"},{"name":"sparcv9"},{"name":"sparcv9v"},{"name":"src"},{"name":"x86_64"},{"name":"aarch64"},{"name":"asdfwfsf"},{"name":"asdfdswe"}]}'
92
+ string: '{"count":50,"next":null,"previous":"https://example.com/rest_api/v1/arches/?page=2","results":[{"name":"sparc64"},{"name":"sparc64v"},{"name":"sparcv8"},{"name":"sparcv9"},{"name":"sparcv9v"},{"name":"src"},{"name":"x86_64"},{"name":"aarch64"},{"name":"asdfwfsf"},{"name":"asdfdswe"}]}'
93
93
  http_version:
94
94
  recorded_at: Thu, 31 Dec 2015 14:00:00 GMT
95
95
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://pdc.host.dev.eng.pek2.redhat.com/rest_api/v1/releases/?active=false
5
+ uri: https://example.com/rest_api/v1/releases/?active=false
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -46,4 +46,48 @@ http_interactions:
46
46
  string: '{"count":0,"next":null,"previous":null,"results":[]}'
47
47
  http_version:
48
48
  recorded_at: Thu, 31 Dec 2015 14:00:00 GMT
49
+ - request:
50
+ method: get
51
+ uri: https://example.com/rest_api/v1/global%2Dcomponent%2Dcontacts/?component=vlgothic-fonts
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ''
55
+ headers:
56
+ Accept:
57
+ - application/json
58
+ Content-Type:
59
+ - application/json
60
+ User-Agent:
61
+ - Faraday v0.9.2
62
+ response:
63
+ status:
64
+ code: 200
65
+ message:
66
+ headers:
67
+ date:
68
+ - Fri, 24 Nov 2017 00:54:28 GMT
69
+ server:
70
+ - Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4
71
+ mod_wsgi/3.4 Python/2.7.5
72
+ expires:
73
+ - Fri, 24 Nov 2017 00:54:30 GMT
74
+ vary:
75
+ - Accept,Cookie
76
+ last-modified:
77
+ - Fri, 24 Nov 2017 00:54:30 GMT
78
+ allow:
79
+ - GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
80
+ cache-control:
81
+ - max-age=0
82
+ x-frame-options:
83
+ - SAMEORIGIN
84
+ transfer-encoding:
85
+ - chunked
86
+ content-type:
87
+ - application/json
88
+ body:
89
+ encoding: UTF-8
90
+ string: '{"count":3,"next":null,"previous":null,"results":[{"id":1279,"component":"vlgothic-fonts","role":"QE_Group","contact":{"id":5,"mail_name":"I18N","email":"qe-i18n-bugs@redhat.com"}},{"id":1722,"component":"vlgothic-fonts","role":"QE_Leader","contact":{"id":6,"username":"mshao","email":"mshao@redhat.com"}},{"id":2165,"component":"vlgothic-fonts","role":"QE_ACK","contact":{"id":6,"username":"mshao","email":"mshao@redhat.com"}}]}'
91
+ http_version:
92
+ recorded_at: Fri, 24 Nov 2017 00:54:30 GMT
49
93
  recorded_with: VCR 3.0.3