pdc 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e74315885ba024c3bae059ec530761698a2b1b1
|
4
|
+
data.tar.gz: 5bdf6a27f924c35a4984aab43a0fcbed478a361b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eee57d0ad04994857fcc9c2991026f5a6368baecd40931aad8d6e104655ca2b0dd92e58fbf9b8584b4ce8e893be6fd9b7f0bbb5422057ab08435cd50beda25fe
|
7
|
+
data.tar.gz: 2936d8525f7716f60364b5faeb94a315a7862ce9ac94e1d8abbe32ac673528393e7ae23104a2c0543549760e71a9817c48453e33e4209e2ff9c30fef5080daf2
|
@@ -2,7 +2,8 @@ module PDC::V1
|
|
2
2
|
class ReleaseVariant < PDC::Base
|
3
3
|
self.primary_key = :id
|
4
4
|
|
5
|
-
attributes :release, :uid, :name, :type, :arches
|
5
|
+
attributes :release, :uid, :name, :type, :arches,
|
6
|
+
:variant_version, :variant_release
|
6
7
|
|
7
8
|
def release
|
8
9
|
Release.find(attributes[:release])
|
data/lib/pdc/version.rb
CHANGED
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://pdc.host.dev.eng.pek2.redhat.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},{"release":"ceph-1.3-updates@rhel-7","id":"Calamari","uid":"Calamari","name":"Calamari","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.3@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.3-updates@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.0.4@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.2-updates@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.2-updates@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.1.0@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.2@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.1.0@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.2@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.3@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.3-updates@rhel-7","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"satellite-6.0.4@rhel-6","id":"Capsule","uid":"Capsule","name":"Capsule","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"rhel-7.3","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"rhel-7.1-eus","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"supp-6.8@rhel-6","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["i386","x86_64"],"variant_version":null,"variant_release":null},{"release":"rhel-7.1","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null},{"release":"supp-6.7@rhel-6","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["i386","x86_64"],"variant_version":null,"variant_release":null},{"release":"rcmtools-1.5@rhel-7","id":"Client","uid":"Client","name":"Client","type":"variant","arches":["x86_64"],"variant_version":null,"variant_release":null}]}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 01 Sep 2017 01:49:15 GMT
|
47
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PDC::V1::ReleaseVariant do
|
4
|
+
before do
|
5
|
+
VCR.insert_cassette fixture_name
|
6
|
+
end
|
7
|
+
|
8
|
+
after do
|
9
|
+
VCR.eject_cassette
|
10
|
+
end
|
11
|
+
|
12
|
+
let(:release_variant) { PDC::V1::ReleaseVariant.first }
|
13
|
+
|
14
|
+
it 'must has version_ attributes' do
|
15
|
+
attributes = release_variant.attributes
|
16
|
+
attributes.must_include :variant_version, :variant_release
|
17
|
+
end
|
18
|
+
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sunil Thaha
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-09-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -223,6 +223,7 @@ files:
|
|
223
223
|
- spec/fixtures/vcr/fetches_variants_of_a_release.yml
|
224
224
|
- spec/fixtures/vcr/has_serveral_cdn_content_delivery_repos.yml
|
225
225
|
- spec/fixtures/vcr/must_has_compose.yml
|
226
|
+
- spec/fixtures/vcr/must_has_version__attributes.yml
|
226
227
|
- spec/fixtures/vcr/must_return_number_of_resources.yml
|
227
228
|
- spec/fixtures/vcr/preserves_the_filters.yml
|
228
229
|
- spec/fixtures/vcr/returns_resources_on_that_page.yml
|
@@ -247,6 +248,7 @@ files:
|
|
247
248
|
- spec/pdc/v1/content_delivery_repo_spec.rb
|
248
249
|
- spec/pdc/v1/release_rpm_mapping_spec.rb
|
249
250
|
- spec/pdc/v1/release_spec.rb
|
251
|
+
- spec/pdc/v1/release_variant_spec.rb
|
250
252
|
- spec/pdc/version_spec.rb
|
251
253
|
- spec/spec_helper.rb
|
252
254
|
- spec/support/fixtures.rb
|
@@ -290,6 +292,7 @@ test_files:
|
|
290
292
|
- spec/fixtures/vcr/fetches_variants_of_a_release.yml
|
291
293
|
- spec/fixtures/vcr/has_serveral_cdn_content_delivery_repos.yml
|
292
294
|
- spec/fixtures/vcr/must_has_compose.yml
|
295
|
+
- spec/fixtures/vcr/must_has_version__attributes.yml
|
293
296
|
- spec/fixtures/vcr/must_return_number_of_resources.yml
|
294
297
|
- spec/fixtures/vcr/preserves_the_filters.yml
|
295
298
|
- spec/fixtures/vcr/returns_resources_on_that_page.yml
|
@@ -314,6 +317,7 @@ test_files:
|
|
314
317
|
- spec/pdc/v1/content_delivery_repo_spec.rb
|
315
318
|
- spec/pdc/v1/release_rpm_mapping_spec.rb
|
316
319
|
- spec/pdc/v1/release_spec.rb
|
320
|
+
- spec/pdc/v1/release_variant_spec.rb
|
317
321
|
- spec/pdc/version_spec.rb
|
318
322
|
- spec/spec_helper.rb
|
319
323
|
- spec/support/fixtures.rb
|