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
data/spec/pdc/v1/release_spec.rb
CHANGED
@@ -25,10 +25,10 @@ describe PDC::V1::Release do
|
|
25
25
|
end
|
26
26
|
|
27
27
|
it 'can get release by multi product_version' do
|
28
|
-
count = release.where(product_version: [
|
28
|
+
count = release.where(product_version: ['rhel-8', 'rhel-7']).count
|
29
29
|
count.must_equal 8
|
30
30
|
end
|
31
|
-
end
|
31
|
+
end
|
32
32
|
|
33
33
|
describe '#brew' do
|
34
34
|
it 'brew can be nil' do
|
@@ -45,27 +45,27 @@ describe PDC::V1::Release do
|
|
45
45
|
allowed_tags = rhel_6_sat.brew.allowed_tags
|
46
46
|
allowed_tags.first.must_equal 'satellite-6.2.0-rhel-6'
|
47
47
|
end
|
48
|
-
end
|
48
|
+
end
|
49
49
|
|
50
50
|
describe '#variants' do
|
51
51
|
it 'fetches variants of a release' do
|
52
|
-
|
53
|
-
variants =
|
52
|
+
rhel71 = release.find('rhel-7.1')
|
53
|
+
variants = rhel71.variants.all
|
54
54
|
variants.length.must_equal 12
|
55
55
|
releases = variants.map(&:release)
|
56
|
-
releases.must_equal [
|
56
|
+
releases.must_equal [rhel71] * variants.length
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
60
|
describe '#url' do
|
61
61
|
it 'returns url of a release' do
|
62
|
-
|
63
|
-
|
62
|
+
rhel71 = release.find('rhel-7.1')
|
63
|
+
rhel71.url.must_equal(PDC_SITE + 'rest_api/v1/releases/rhel-7.1')
|
64
64
|
end
|
65
65
|
|
66
66
|
it 'returns url of a release_variant' do
|
67
|
-
|
68
|
-
|
67
|
+
rhel71 = release.find('rhel-7.1')
|
68
|
+
rhel71.variants.all.each do |v|
|
69
69
|
v.url.must_equal(PDC_SITE + 'rest_api/v1/release%2Dvariants/rhel-7.1/' + v.uid)
|
70
70
|
end
|
71
71
|
end
|
@@ -10,9 +10,17 @@ describe PDC::V1::ReleaseVariant do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
let(:release_variant) { PDC::V1::ReleaseVariant.first }
|
13
|
+
let(:cpe_variant) { PDC::V1::ReleaseVariant }
|
13
14
|
|
14
15
|
it 'must has version_ attributes' do
|
15
16
|
attributes = release_variant.attributes
|
16
17
|
attributes.must_include :variant_version, :variant_release
|
17
18
|
end
|
19
|
+
|
20
|
+
it 'returns cpe' do
|
21
|
+
variant = cpe_variant.first
|
22
|
+
cpe = variant.cpe
|
23
|
+
cpe.variant_uid.must_equal 'Calamari'
|
24
|
+
cpe.cpe.must_equal 'cpe:test'
|
25
|
+
end
|
18
26
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# WebMock.disable! # enable to re-record
|
4
|
+
|
5
|
+
describe PDC::V1::ReleasedFile do
|
6
|
+
before do
|
7
|
+
VCR.insert_cassette fixture_name
|
8
|
+
end
|
9
|
+
|
10
|
+
after do
|
11
|
+
VCR.eject_cassette
|
12
|
+
end
|
13
|
+
|
14
|
+
let(:released_file) { PDC::V1::ReleasedFile }
|
15
|
+
|
16
|
+
describe 'count' do
|
17
|
+
it 'returns number of released files' do
|
18
|
+
count = released_file.count
|
19
|
+
count.must_equal 2
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'get released files by file primary key' do
|
23
|
+
count = released_file.where(file_primary_key: 5).count
|
24
|
+
count.must_equal 1
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'get released files by release id' do
|
28
|
+
count = released_file.where(release_id: 'rhel-6.8').count
|
29
|
+
count.must_equal 1
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'returns release file by retrieve' do
|
33
|
+
rf = released_file.find(39)
|
34
|
+
rf.url.must_equal(PDC_SITE + 'rest_api/v1/released%2Dfiles/39')
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# WebMock.disable! # enable to re-record
|
4
|
+
|
5
|
+
describe PDC::V1::VariantCpe do
|
6
|
+
before do
|
7
|
+
VCR.insert_cassette fixture_name
|
8
|
+
end
|
9
|
+
|
10
|
+
after do
|
11
|
+
VCR.eject_cassette
|
12
|
+
end
|
13
|
+
|
14
|
+
let(:cpe) { PDC::V1::VariantCpe }
|
15
|
+
|
16
|
+
describe 'count' do
|
17
|
+
it 'cpe returns number' do
|
18
|
+
count = cpe.count
|
19
|
+
count.must_equal 1
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'cpe works with where' do
|
23
|
+
count = cpe.where(cpe: 'cpe:test').count
|
24
|
+
count.must_equal 1
|
25
|
+
count = cpe.where(variant_uid: 'Calamari').count
|
26
|
+
count.must_equal 1
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -28,7 +28,7 @@ Minitest::Reporters.use! [
|
|
28
28
|
# require all support files
|
29
29
|
Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }
|
30
30
|
|
31
|
-
PDC_SITE = 'https://
|
31
|
+
PDC_SITE = 'https://example.com/'.freeze
|
32
32
|
|
33
33
|
PDC.configure do |config|
|
34
34
|
config.site = PDC_SITE
|
@@ -36,6 +36,3 @@ PDC.configure do |config|
|
|
36
36
|
config.disable_caching = true
|
37
37
|
### config.log_level = :debug # enable to see details log
|
38
38
|
end
|
39
|
-
|
40
|
-
# TODO: decide if this is okay to do
|
41
|
-
include Fixtures
|
data/spec/support/fixtures.rb
CHANGED
@@ -9,8 +9,10 @@ module PDC
|
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
module Minitest
|
13
|
+
class Spec
|
14
|
+
include PDC::Minitest::FixtureExtentions
|
15
|
+
end
|
14
16
|
end
|
15
17
|
|
16
18
|
# fixtures for testing the PDC::Resource::Modules
|
@@ -26,6 +28,7 @@ module Fixtures
|
|
26
28
|
include PDC::Resource::Attributes
|
27
29
|
include PDC::Resource::Identity
|
28
30
|
include PDC::Resource::Scopes
|
31
|
+
include PDC::Resource::Associations
|
29
32
|
end
|
30
33
|
|
31
34
|
class CustomPrimaryKeyModel
|
@@ -35,6 +38,7 @@ module Fixtures
|
|
35
38
|
include PDC::Resource::Attributes
|
36
39
|
include PDC::Resource::Identity
|
37
40
|
include PDC::Resource::Scopes
|
41
|
+
include PDC::Resource::Associations
|
38
42
|
|
39
43
|
self.primary_key = :foobar
|
40
44
|
end
|
@@ -46,6 +50,7 @@ module Fixtures
|
|
46
50
|
include PDC::Resource::Identity
|
47
51
|
include PDC::Resource::Attributes
|
48
52
|
include PDC::Resource::Scopes
|
53
|
+
include PDC::Resource::Associations
|
49
54
|
end
|
50
55
|
|
51
56
|
class Model < ModelBase; end
|
@@ -58,6 +63,7 @@ module Fixtures
|
|
58
63
|
include PDC::Resource::Identity
|
59
64
|
include PDC::Resource::Attributes
|
60
65
|
include PDC::Resource::Scopes
|
66
|
+
include PDC::Resource::Associations
|
61
67
|
end
|
62
68
|
end
|
63
69
|
end
|
@@ -112,3 +118,24 @@ module Fixtures
|
|
112
118
|
attribute :age, parser: FixNumParser
|
113
119
|
end
|
114
120
|
end
|
121
|
+
|
122
|
+
module Fixtures
|
123
|
+
class Association < PDC::Base
|
124
|
+
# stub the connection
|
125
|
+
SITE = 'https://example.com/'.freeze
|
126
|
+
self.connection = Faraday.new(url: SITE) do |faraday|
|
127
|
+
faraday.request :json
|
128
|
+
faraday.use PDC::Response::Parser
|
129
|
+
faraday.adapter Faraday.default_adapter
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
class ProductVersion < Association
|
134
|
+
has_many :releases, uri: 'rest_api/v1/releases/?product_version=:product_version_id'
|
135
|
+
has_many :active_releases, class_name: 'Fixtures::Release', uri: 'rest_api/v1/releases/?product_version=:product_version_id&active=true'
|
136
|
+
end
|
137
|
+
|
138
|
+
class Release < Association
|
139
|
+
self.primary_key = :release_id
|
140
|
+
end
|
141
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sunil Thaha
|
@@ -9,10 +9,10 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: activemodel
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 3.2.22.2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: activesupport
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
@@ -40,75 +40,75 @@ dependencies:
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 3.2.22.2
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: faraday
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.
|
48
|
+
version: 0.9.2
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
55
|
+
version: 0.9.2
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: faraday-http-cache
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 1.3.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 1.3.0
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: faraday_middleware
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.
|
76
|
+
version: 0.10.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.
|
83
|
+
version: 0.10.0
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
85
|
+
name: multi_json
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: '1.11'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: '1.11'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
99
|
+
name: uri_template
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
104
|
+
version: 0.7.0
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
111
|
+
version: 0.7.0
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: curb
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- examples/local_pdc_dev.rb
|
163
163
|
- examples/logger.rb
|
164
164
|
- examples/pdc_curb_access_token.rb
|
165
|
+
- examples/pdc_global_component_contact.rb
|
165
166
|
- examples/pdc_release_rpm_mapping.rb
|
166
167
|
- examples/pdc_resource_tests.rb
|
167
168
|
- examples/pdc_test_cache.rb
|
@@ -186,6 +187,10 @@ files:
|
|
186
187
|
- lib/pdc/http/result.rb
|
187
188
|
- lib/pdc/logger.rb
|
188
189
|
- lib/pdc/resource.rb
|
190
|
+
- lib/pdc/resource/associations.rb
|
191
|
+
- lib/pdc/resource/associations/association.rb
|
192
|
+
- lib/pdc/resource/associations/builder.rb
|
193
|
+
- lib/pdc/resource/associations/has_many.rb
|
189
194
|
- lib/pdc/resource/attribute_modifier.rb
|
190
195
|
- lib/pdc/resource/attribute_store.rb
|
191
196
|
- lib/pdc/resource/attributes.rb
|
@@ -205,36 +210,60 @@ files:
|
|
205
210
|
- lib/pdc/v1.rb
|
206
211
|
- lib/pdc/v1/arch.rb
|
207
212
|
- lib/pdc/v1/content_delivery_repo.rb
|
213
|
+
- lib/pdc/v1/global_component_contact.rb
|
214
|
+
- lib/pdc/v1/multi_destination.rb
|
208
215
|
- lib/pdc/v1/product.rb
|
209
216
|
- lib/pdc/v1/release.rb
|
210
217
|
- lib/pdc/v1/release_rpm_mapping.rb
|
211
218
|
- lib/pdc/v1/release_variant.rb
|
219
|
+
- lib/pdc/v1/released_file.rb
|
220
|
+
- lib/pdc/v1/variant_cpe.rb
|
212
221
|
- lib/pdc/version.rb
|
213
222
|
- pdc.gemspec
|
214
223
|
- spec/fixtures/vcr/_page_count_returns_total_count.yml
|
224
|
+
- spec/fixtures/vcr/behaves_like_an_array.yml
|
215
225
|
- spec/fixtures/vcr/brew_can_be_nil.yml
|
216
226
|
- spec/fixtures/vcr/brew_may_be_present.yml
|
217
227
|
- spec/fixtures/vcr/caches_multiple_response.yml
|
218
228
|
- spec/fixtures/vcr/caches_response_with_a_query.yml
|
219
229
|
- spec/fixtures/vcr/caches_response_with_multiple_query.yml
|
220
230
|
- spec/fixtures/vcr/caches_response_without_query.yml
|
231
|
+
- spec/fixtures/vcr/can_find_global_contact_by_component_name.yml
|
221
232
|
- spec/fixtures/vcr/can_get_release_by_multi_product_version.yml
|
222
233
|
- spec/fixtures/vcr/can_iterate_using_each.yml
|
223
234
|
- spec/fixtures/vcr/content_delivery_repos_must_return_a_record.yml
|
235
|
+
- spec/fixtures/vcr/cpe_returns_number.yml
|
236
|
+
- spec/fixtures/vcr/cpe_works_with_where.yml
|
237
|
+
- spec/fixtures/vcr/destination_returns_count.yml
|
238
|
+
- spec/fixtures/vcr/destination_works_with_where.yml
|
224
239
|
- spec/fixtures/vcr/fetches_variants_of_a_release.yml
|
240
|
+
- spec/fixtures/vcr/find_on_has_many_association.yml
|
241
|
+
- spec/fixtures/vcr/get_released_files_by_file_primary_key.yml
|
242
|
+
- spec/fixtures/vcr/get_released_files_by_release_id.yml
|
243
|
+
- spec/fixtures/vcr/has_many_association.yml
|
225
244
|
- spec/fixtures/vcr/has_serveral_cdn_content_delivery_repos.yml
|
226
245
|
- spec/fixtures/vcr/must_has_compose.yml
|
227
246
|
- spec/fixtures/vcr/must_has_version__attributes.yml
|
228
247
|
- spec/fixtures/vcr/must_return_number_of_resources.yml
|
229
248
|
- spec/fixtures/vcr/preserves_the_filters.yml
|
249
|
+
- spec/fixtures/vcr/returns_a_contact_email.yml
|
250
|
+
- spec/fixtures/vcr/returns_a_gloabl_contact_id.yml
|
251
|
+
- spec/fixtures/vcr/returns_a_mail_name.yml
|
252
|
+
- spec/fixtures/vcr/returns_contact_for_component.yml
|
253
|
+
- spec/fixtures/vcr/returns_contact_role.yml
|
254
|
+
- spec/fixtures/vcr/returns_cpe.yml
|
255
|
+
- spec/fixtures/vcr/returns_number_of_released_files.yml
|
256
|
+
- spec/fixtures/vcr/returns_release_file_by_retrieve.yml
|
230
257
|
- spec/fixtures/vcr/returns_resources_on_that_page.yml
|
231
258
|
- spec/fixtures/vcr/returns_the_total_count_and_not_items_in_page.yml
|
232
259
|
- spec/fixtures/vcr/returns_url_of_a_release.yml
|
233
260
|
- spec/fixtures/vcr/returns_url_of_a_release_variant.yml
|
261
|
+
- spec/fixtures/vcr/scopes_on_associations.yml
|
234
262
|
- spec/fixtures/vcr/should_not_be_in_the_list_of_attributes.yml
|
235
263
|
- spec/fixtures/vcr/works_with_where.yml
|
236
264
|
- spec/pdc/config_spec.rb
|
237
265
|
- spec/pdc/http/errors_spec.rb
|
266
|
+
- spec/pdc/resource/associations_spec.rb
|
238
267
|
- spec/pdc/resource/attributes_spec.rb
|
239
268
|
- spec/pdc/resource/cache_spec.rb
|
240
269
|
- spec/pdc/resource/count_spec.rb
|
@@ -247,9 +276,13 @@ files:
|
|
247
276
|
- spec/pdc/resource/wip_spec.rb
|
248
277
|
- spec/pdc/v1/arch_spec.rb
|
249
278
|
- spec/pdc/v1/content_delivery_repo_spec.rb
|
279
|
+
- spec/pdc/v1/global_component_contact_spec.rb
|
280
|
+
- spec/pdc/v1/multi_destination_sepc.rb
|
250
281
|
- spec/pdc/v1/release_rpm_mapping_spec.rb
|
251
282
|
- spec/pdc/v1/release_spec.rb
|
252
283
|
- spec/pdc/v1/release_variant_spec.rb
|
284
|
+
- spec/pdc/v1/released_file_spec.rb
|
285
|
+
- spec/pdc/v1/variant_cpe_spec.rb
|
253
286
|
- spec/pdc/version_spec.rb
|
254
287
|
- spec/spec_helper.rb
|
255
288
|
- spec/support/fixtures.rb
|
@@ -276,35 +309,55 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
309
|
version: '0'
|
277
310
|
requirements: []
|
278
311
|
rubyforge_project:
|
279
|
-
rubygems_version: 2.
|
312
|
+
rubygems_version: 2.5.2.1
|
280
313
|
signing_key:
|
281
314
|
specification_version: 4
|
282
315
|
summary: Ruby gem for use with Product-Definition-Center
|
283
316
|
test_files:
|
284
317
|
- spec/fixtures/vcr/_page_count_returns_total_count.yml
|
318
|
+
- spec/fixtures/vcr/behaves_like_an_array.yml
|
285
319
|
- spec/fixtures/vcr/brew_can_be_nil.yml
|
286
320
|
- spec/fixtures/vcr/brew_may_be_present.yml
|
287
321
|
- spec/fixtures/vcr/caches_multiple_response.yml
|
288
322
|
- spec/fixtures/vcr/caches_response_with_a_query.yml
|
289
323
|
- spec/fixtures/vcr/caches_response_with_multiple_query.yml
|
290
324
|
- spec/fixtures/vcr/caches_response_without_query.yml
|
325
|
+
- spec/fixtures/vcr/can_find_global_contact_by_component_name.yml
|
291
326
|
- spec/fixtures/vcr/can_get_release_by_multi_product_version.yml
|
292
327
|
- spec/fixtures/vcr/can_iterate_using_each.yml
|
293
328
|
- spec/fixtures/vcr/content_delivery_repos_must_return_a_record.yml
|
329
|
+
- spec/fixtures/vcr/cpe_returns_number.yml
|
330
|
+
- spec/fixtures/vcr/cpe_works_with_where.yml
|
331
|
+
- spec/fixtures/vcr/destination_returns_count.yml
|
332
|
+
- spec/fixtures/vcr/destination_works_with_where.yml
|
294
333
|
- spec/fixtures/vcr/fetches_variants_of_a_release.yml
|
334
|
+
- spec/fixtures/vcr/find_on_has_many_association.yml
|
335
|
+
- spec/fixtures/vcr/get_released_files_by_file_primary_key.yml
|
336
|
+
- spec/fixtures/vcr/get_released_files_by_release_id.yml
|
337
|
+
- spec/fixtures/vcr/has_many_association.yml
|
295
338
|
- spec/fixtures/vcr/has_serveral_cdn_content_delivery_repos.yml
|
296
339
|
- spec/fixtures/vcr/must_has_compose.yml
|
297
340
|
- spec/fixtures/vcr/must_has_version__attributes.yml
|
298
341
|
- spec/fixtures/vcr/must_return_number_of_resources.yml
|
299
342
|
- spec/fixtures/vcr/preserves_the_filters.yml
|
343
|
+
- spec/fixtures/vcr/returns_a_contact_email.yml
|
344
|
+
- spec/fixtures/vcr/returns_a_gloabl_contact_id.yml
|
345
|
+
- spec/fixtures/vcr/returns_a_mail_name.yml
|
346
|
+
- spec/fixtures/vcr/returns_contact_for_component.yml
|
347
|
+
- spec/fixtures/vcr/returns_contact_role.yml
|
348
|
+
- spec/fixtures/vcr/returns_cpe.yml
|
349
|
+
- spec/fixtures/vcr/returns_number_of_released_files.yml
|
350
|
+
- spec/fixtures/vcr/returns_release_file_by_retrieve.yml
|
300
351
|
- spec/fixtures/vcr/returns_resources_on_that_page.yml
|
301
352
|
- spec/fixtures/vcr/returns_the_total_count_and_not_items_in_page.yml
|
302
353
|
- spec/fixtures/vcr/returns_url_of_a_release.yml
|
303
354
|
- spec/fixtures/vcr/returns_url_of_a_release_variant.yml
|
355
|
+
- spec/fixtures/vcr/scopes_on_associations.yml
|
304
356
|
- spec/fixtures/vcr/should_not_be_in_the_list_of_attributes.yml
|
305
357
|
- spec/fixtures/vcr/works_with_where.yml
|
306
358
|
- spec/pdc/config_spec.rb
|
307
359
|
- spec/pdc/http/errors_spec.rb
|
360
|
+
- spec/pdc/resource/associations_spec.rb
|
308
361
|
- spec/pdc/resource/attributes_spec.rb
|
309
362
|
- spec/pdc/resource/cache_spec.rb
|
310
363
|
- spec/pdc/resource/count_spec.rb
|
@@ -317,9 +370,13 @@ test_files:
|
|
317
370
|
- spec/pdc/resource/wip_spec.rb
|
318
371
|
- spec/pdc/v1/arch_spec.rb
|
319
372
|
- spec/pdc/v1/content_delivery_repo_spec.rb
|
373
|
+
- spec/pdc/v1/global_component_contact_spec.rb
|
374
|
+
- spec/pdc/v1/multi_destination_sepc.rb
|
320
375
|
- spec/pdc/v1/release_rpm_mapping_spec.rb
|
321
376
|
- spec/pdc/v1/release_spec.rb
|
322
377
|
- spec/pdc/v1/release_variant_spec.rb
|
378
|
+
- spec/pdc/v1/released_file_spec.rb
|
379
|
+
- spec/pdc/v1/variant_cpe_spec.rb
|
323
380
|
- spec/pdc/version_spec.rb
|
324
381
|
- spec/spec_helper.rb
|
325
382
|
- spec/support/fixtures.rb
|