pdc 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +23 -0
- data/.travis.yml +3 -4
- data/Gemfile +0 -1
- data/docs/sphinx_deployment.mk +1 -1
- data/examples/local_pdc_dev.rb +10 -1
- data/examples/logger.rb +7 -14
- data/examples/pdc_global_component_contact.rb +18 -0
- data/examples/pdc_release_rpm_mapping.rb +2 -2
- data/examples/pdc_resource_tests.rb +3 -3
- data/examples/pdc_test_cache.rb +1 -1
- data/examples/prod_failures.rb +1 -1
- data/examples/prod_pdc.rb +10 -1
- data/examples/test_no_ssl_verification.rb +1 -1
- data/examples/url.rb +4 -4
- data/lib/pdc.rb +1 -1
- data/lib/pdc/base.rb +1 -0
- data/lib/pdc/config.rb +0 -7
- data/lib/pdc/http/request/token_fetcher.rb +1 -1
- data/lib/pdc/http/response/pagination.rb +0 -2
- data/lib/pdc/resource.rb +1 -0
- data/lib/pdc/resource/associations.rb +39 -0
- data/lib/pdc/resource/associations/association.rb +21 -0
- data/lib/pdc/resource/associations/builder.rb +46 -0
- data/lib/pdc/resource/associations/has_many.rb +26 -0
- data/lib/pdc/resource/attributes.rb +13 -4
- data/lib/pdc/resource/identity.rb +1 -1
- data/lib/pdc/resource/relation.rb +5 -0
- data/lib/pdc/resource/relation/pagination.rb +4 -4
- data/lib/pdc/resource/rest_api.rb +1 -1
- data/lib/pdc/resource/scopes.rb +1 -1
- data/lib/pdc/v1.rb +4 -0
- data/lib/pdc/v1/global_component_contact.rb +5 -0
- data/lib/pdc/v1/multi_destination.rb +8 -0
- data/lib/pdc/v1/release.rb +3 -1
- data/lib/pdc/v1/release_variant.rb +6 -1
- data/lib/pdc/v1/released_file.rb +10 -0
- data/lib/pdc/v1/variant_cpe.rb +7 -0
- data/lib/pdc/version.rb +1 -1
- data/pdc.gemspec +8 -10
- data/spec/fixtures/vcr/_page_count_returns_total_count.yml +6 -6
- data/spec/fixtures/vcr/behaves_like_an_array.yml +141 -0
- data/spec/fixtures/vcr/brew_can_be_nil.yml +23 -14
- data/spec/fixtures/vcr/brew_may_be_present.yml +4 -2
- data/spec/fixtures/vcr/caches_multiple_response.yml +42 -36
- data/spec/fixtures/vcr/caches_response_with_a_query.yml +16 -16
- data/spec/fixtures/vcr/caches_response_with_multiple_query.yml +16 -16
- data/spec/fixtures/vcr/caches_response_without_query.yml +14 -14
- data/spec/fixtures/vcr/can_find_global_contact_by_component_name.yml +47 -0
- data/spec/fixtures/vcr/can_get_release_by_multi_product_version.yml +9 -9
- data/spec/fixtures/vcr/can_iterate_using_each.yml +8 -8
- data/spec/fixtures/vcr/content_delivery_repos_must_return_a_record.yml +2 -2
- data/spec/fixtures/vcr/cpe_returns_number.yml +44 -0
- data/spec/fixtures/vcr/cpe_works_with_where.yml +85 -0
- data/spec/fixtures/vcr/destination_returns_count.yml +44 -0
- data/spec/fixtures/vcr/destination_works_with_where.yml +44 -0
- data/spec/fixtures/vcr/fetches_variants_of_a_release.yml +20 -20
- data/spec/fixtures/vcr/find_on_has_many_association.yml +48 -0
- data/spec/fixtures/vcr/get_released_files_by_file_primary_key.yml +44 -0
- data/spec/fixtures/vcr/get_released_files_by_release_id.yml +44 -0
- data/spec/fixtures/vcr/has_many_association.yml +48 -0
- data/spec/fixtures/vcr/has_serveral_cdn_content_delivery_repos.yml +1 -1
- data/spec/fixtures/vcr/must_has_compose.yml +45 -1
- data/spec/fixtures/vcr/must_has_version__attributes.yml +2 -2
- data/spec/fixtures/vcr/must_return_number_of_resources.yml +62 -14
- data/spec/fixtures/vcr/preserves_the_filters.yml +2 -2
- data/spec/fixtures/vcr/returns_a_contact_email.yml +47 -0
- data/spec/fixtures/vcr/returns_a_gloabl_contact_id.yml +47 -0
- data/spec/fixtures/vcr/returns_a_mail_name.yml +47 -0
- data/spec/fixtures/vcr/returns_contact_for_component.yml +47 -0
- data/spec/fixtures/vcr/returns_contact_role.yml +48 -0
- data/spec/fixtures/vcr/returns_cpe.yml +88 -0
- data/spec/fixtures/vcr/returns_number_of_released_files.yml +48 -0
- data/spec/fixtures/vcr/returns_release_file_by_retrieve.yml +44 -0
- data/spec/fixtures/vcr/returns_resources_on_that_page.yml +2 -2
- data/spec/fixtures/vcr/returns_the_total_count_and_not_items_in_page.yml +6 -6
- data/spec/fixtures/vcr/returns_url_of_a_release.yml +2 -2
- data/spec/fixtures/vcr/returns_url_of_a_release_variant.yml +7 -7
- data/spec/fixtures/vcr/scopes_on_associations.yml +48 -0
- data/spec/fixtures/vcr/should_not_be_in_the_list_of_attributes.yml +4 -4
- data/spec/fixtures/vcr/works_with_where.yml +45 -1
- data/spec/pdc/resource/associations_spec.rb +111 -0
- data/spec/pdc/resource/attributes_spec.rb +30 -20
- data/spec/pdc/resource/cache_spec.rb +1 -1
- data/spec/pdc/resource/identity_spec.rb +10 -10
- data/spec/pdc/resource/path_spec.rb +1 -1
- data/spec/pdc/resource/relation_spec.rb +1 -1
- data/spec/pdc/v1/content_delivery_repo_spec.rb +6 -6
- data/spec/pdc/v1/global_component_contact_spec.rb +64 -0
- data/spec/pdc/v1/multi_destination_sepc.rb +27 -0
- data/spec/pdc/v1/release_spec.rb +10 -10
- data/spec/pdc/v1/release_variant_spec.rb +8 -0
- data/spec/pdc/v1/released_file_spec.rb +37 -0
- data/spec/pdc/v1/variant_cpe_spec.rb +29 -0
- data/spec/spec_helper.rb +1 -4
- data/spec/support/fixtures.rb +29 -2
- metadata +77 -20
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://example.com/rest_api/v1/content%2Ddelivery%2Drepos/?release_id=ceph-2.1-updates%40rhel-7&service=pulp
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Thu, 16 Mar 2017 06:40:32 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://
|
49
|
+
uri: https://example.com/rest_api/v1/content%2Ddelivery%2Drepos/34667/
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://example.com/rest_api/v1/variant%2Dcpes/
|
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, 27 Dec 2017 10:00:08 GMT
|
23
|
+
server:
|
24
|
+
- WSGIServer/0.1 Python/2.7.13
|
25
|
+
expires:
|
26
|
+
- Wed, 27 Dec 2017 10:00:38 GMT
|
27
|
+
vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
last-modified:
|
30
|
+
- Wed, 27 Dec 2017 10:00:08 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":1,"next":null,"previous":null,"results":[{"id":1,"release":"ceph-1.1","variant_uid":"ARfVp","cpe":"cpe:test"}]}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Wed, 27 Dec 2017 10:00:08 GMT
|
44
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://example.com/rest_api/v1/variant%2Dcpes/?cpe=cpe%3Atest
|
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, 27 Dec 2017 10:00:28 GMT
|
23
|
+
server:
|
24
|
+
- WSGIServer/0.1 Python/2.7.13
|
25
|
+
expires:
|
26
|
+
- Wed, 27 Dec 2017 10:00:58 GMT
|
27
|
+
vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
last-modified:
|
30
|
+
- Wed, 27 Dec 2017 10:00:28 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":1,"next":null,"previous":null,"results":[{"id":1,"release":"ceph-1.1","variant_uid":"ARfVp","cpe":"cpe:test"}]}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Wed, 27 Dec 2017 10:00:28 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: https://example.com/rest_api/v1/variant%2Dcpes/?variant_uid=Calamari
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept:
|
52
|
+
- application/json
|
53
|
+
Content-Type:
|
54
|
+
- application/json
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v0.9.2
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 200
|
60
|
+
message:
|
61
|
+
headers:
|
62
|
+
date:
|
63
|
+
- Wed, 27 Dec 2017 10:00:28 GMT
|
64
|
+
server:
|
65
|
+
- WSGIServer/0.1 Python/2.7.13
|
66
|
+
expires:
|
67
|
+
- Wed, 27 Dec 2017 10:00:58 GMT
|
68
|
+
vary:
|
69
|
+
- Accept, Cookie
|
70
|
+
last-modified:
|
71
|
+
- Wed, 27 Dec 2017 10:00:28 GMT
|
72
|
+
allow:
|
73
|
+
- GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
|
74
|
+
cache-control:
|
75
|
+
- max-age=30
|
76
|
+
x-frame-options:
|
77
|
+
- SAMEORIGIN
|
78
|
+
content-type:
|
79
|
+
- application/json
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '{"count":1,"next":null,"previous":null,"results":[{"id":1,"release":"ceph-1.1","variant_uid":"Calamari","cpe":"cpe:test"}]}'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Wed, 27 Dec 2017 10:00:28 GMT
|
85
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://example.com/rest_api/v1/multi%2Ddestinations/
|
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
|
+
- Tue, 26 Dec 2017 08:42:38 GMT
|
23
|
+
server:
|
24
|
+
- WSGIServer/0.1 Python/2.7.13
|
25
|
+
expires:
|
26
|
+
- Tue, 26 Dec 2017 08:43:08 GMT
|
27
|
+
vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
last-modified:
|
30
|
+
- Tue, 26 Dec 2017 08:42:38 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":1,"next":null,"previous":null,"results":[{"id":1,"global_component":"4Suite","origin_repo":{"id":27109,"release_id":"ceph-1.3","variant_uid":"Test01","arch":"x86_64","service":"test","repo_family":"test","content_format":"iso","content_category":"binary","name":"test01","shadow":false,"product_id":null},"destination_repo":{"id":27108,"release_id":"ceph-1.3","variant_uid":"Test","arch":"x86_64","service":"test","repo_family":"test","content_format":"iso","content_category":"binary","name":"test","shadow":false,"product_id":null},"subscribers":[],"active":true}]}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Tue, 26 Dec 2017 08:42:38 GMT
|
44
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://example.com/rest_api/v1/multi%2Ddestinations/?active=false
|
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
|
+
- Tue, 26 Dec 2017 08:40:23 GMT
|
23
|
+
server:
|
24
|
+
- WSGIServer/0.1 Python/2.7.13
|
25
|
+
expires:
|
26
|
+
- Tue, 26 Dec 2017 08:40:53 GMT
|
27
|
+
vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
last-modified:
|
30
|
+
- Tue, 26 Dec 2017 08:40:23 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":0,"next":null,"previous":null,"results":[]}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Tue, 26 Dec 2017 08:40:23 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://
|
5
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -44,12 +44,12 @@ http_interactions:
|
|
44
44
|
body:
|
45
45
|
encoding: UTF-8
|
46
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}'
|
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,"sigkey":null,"allow_buildroot_push":true,"allowed_debuginfo_services":[],"allowed_push_targets":[]}'
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 03 Aug 2016 15:04:27 GMT
|
50
50
|
- request:
|
51
51
|
method: get
|
52
|
-
uri: https://
|
52
|
+
uri: https://example.com/rest_api/v1/release%2Dvariants/?release=rhel-7.1
|
53
53
|
body:
|
54
54
|
encoding: US-ASCII
|
55
55
|
string: ''
|
@@ -90,15 +90,15 @@ http_interactions:
|
|
90
90
|
- application/json
|
91
91
|
body:
|
92
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"]}]}'
|
93
|
+
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
|
94
|
+
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
|
95
|
+
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
|
96
|
+
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"]}]}'
|
97
97
|
http_version:
|
98
98
|
recorded_at: Wed, 03 Aug 2016 15:04:29 GMT
|
99
99
|
- request:
|
100
100
|
method: get
|
101
|
-
uri: https://
|
101
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
102
102
|
body:
|
103
103
|
encoding: US-ASCII
|
104
104
|
string: ''
|
@@ -140,12 +140,12 @@ http_interactions:
|
|
140
140
|
body:
|
141
141
|
encoding: UTF-8
|
142
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}'
|
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,"sigkey":null,"allow_buildroot_push":true,"allowed_debuginfo_services":[],"allowed_push_targets":[]}'
|
144
144
|
http_version:
|
145
145
|
recorded_at: Wed, 03 Aug 2016 15:04:30 GMT
|
146
146
|
- request:
|
147
147
|
method: get
|
148
|
-
uri: https://
|
148
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
149
149
|
body:
|
150
150
|
encoding: US-ASCII
|
151
151
|
string: ''
|
@@ -192,7 +192,7 @@ http_interactions:
|
|
192
192
|
recorded_at: Wed, 03 Aug 2016 15:04:41 GMT
|
193
193
|
- request:
|
194
194
|
method: get
|
195
|
-
uri: https://
|
195
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
196
196
|
body:
|
197
197
|
encoding: US-ASCII
|
198
198
|
string: ''
|
@@ -239,7 +239,7 @@ http_interactions:
|
|
239
239
|
recorded_at: Wed, 03 Aug 2016 15:04:52 GMT
|
240
240
|
- request:
|
241
241
|
method: get
|
242
|
-
uri: https://
|
242
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
243
243
|
body:
|
244
244
|
encoding: US-ASCII
|
245
245
|
string: ''
|
@@ -286,7 +286,7 @@ http_interactions:
|
|
286
286
|
recorded_at: Wed, 03 Aug 2016 15:05:04 GMT
|
287
287
|
- request:
|
288
288
|
method: get
|
289
|
-
uri: https://
|
289
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
290
290
|
body:
|
291
291
|
encoding: US-ASCII
|
292
292
|
string: ''
|
@@ -333,7 +333,7 @@ http_interactions:
|
|
333
333
|
recorded_at: Wed, 03 Aug 2016 15:06:49 GMT
|
334
334
|
- request:
|
335
335
|
method: get
|
336
|
-
uri: https://
|
336
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
337
337
|
body:
|
338
338
|
encoding: US-ASCII
|
339
339
|
string: ''
|
@@ -380,7 +380,7 @@ http_interactions:
|
|
380
380
|
recorded_at: Wed, 03 Aug 2016 15:07:03 GMT
|
381
381
|
- request:
|
382
382
|
method: get
|
383
|
-
uri: https://
|
383
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
384
384
|
body:
|
385
385
|
encoding: US-ASCII
|
386
386
|
string: ''
|
@@ -427,7 +427,7 @@ http_interactions:
|
|
427
427
|
recorded_at: Wed, 03 Aug 2016 15:07:14 GMT
|
428
428
|
- request:
|
429
429
|
method: get
|
430
|
-
uri: https://
|
430
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
431
431
|
body:
|
432
432
|
encoding: US-ASCII
|
433
433
|
string: ''
|
@@ -474,7 +474,7 @@ http_interactions:
|
|
474
474
|
recorded_at: Wed, 03 Aug 2016 15:07:25 GMT
|
475
475
|
- request:
|
476
476
|
method: get
|
477
|
-
uri: https://
|
477
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
478
478
|
body:
|
479
479
|
encoding: US-ASCII
|
480
480
|
string: ''
|
@@ -521,7 +521,7 @@ http_interactions:
|
|
521
521
|
recorded_at: Wed, 03 Aug 2016 15:07:37 GMT
|
522
522
|
- request:
|
523
523
|
method: get
|
524
|
-
uri: https://
|
524
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
525
525
|
body:
|
526
526
|
encoding: US-ASCII
|
527
527
|
string: ''
|
@@ -568,7 +568,7 @@ http_interactions:
|
|
568
568
|
recorded_at: Wed, 03 Aug 2016 15:07:50 GMT
|
569
569
|
- request:
|
570
570
|
method: get
|
571
|
-
uri: https://
|
571
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
572
572
|
body:
|
573
573
|
encoding: US-ASCII
|
574
574
|
string: ''
|
@@ -615,7 +615,7 @@ http_interactions:
|
|
615
615
|
recorded_at: Wed, 03 Aug 2016 15:08:01 GMT
|
616
616
|
- request:
|
617
617
|
method: get
|
618
|
-
uri: https://
|
618
|
+
uri: https://example.com/rest_api/v1/releases/rhel-7.1/
|
619
619
|
body:
|
620
620
|
encoding: US-ASCII
|
621
621
|
string: ''
|
@@ -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
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://example.com/rest_api/v1/released%2Dfiles/?file_primary_key=5
|
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:44 GMT
|
23
|
+
server:
|
24
|
+
- WSGIServer/0.1 Python/2.7.13
|
25
|
+
expires:
|
26
|
+
- Wed, 13 Dec 2017 08:14:14 GMT
|
27
|
+
vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
last-modified:
|
30
|
+
- Wed, 13 Dec 2017 08:13:44 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":1,"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","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:44 GMT
|
44
|
+
recorded_with: VCR 3.0.3
|