runcible 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +18 -0
- data/Gemfile +19 -0
- data/LICENSE +22 -0
- data/README.md +29 -0
- data/Rakefile +37 -0
- data/lib/runcible.rb +25 -0
- data/lib/runcible/base.rb +113 -0
- data/lib/runcible/extensions/repository.rb +67 -0
- data/lib/runcible/oauth_setup.rb +29 -0
- data/lib/runcible/resources/repository.rb +82 -0
- data/lib/runcible/resources/role.rb +46 -0
- data/lib/runcible/resources/task.rb +49 -0
- data/lib/runcible/resources/user.rb +50 -0
- data/lib/runcible/version.rb +3 -0
- data/rel-eng/packages/.readme +3 -0
- data/rel-eng/tito.props +5 -0
- data/runcible.gemspec +17 -0
- data/runcible.spec +48 -0
- data/test/.gitkeep +0 -0
- data/test/integration/extensions/repository_test.rb +117 -0
- data/test/integration/fixtures/repositories/zoo5/.treeinfo +12 -0
- data/test/integration/fixtures/repositories/zoo5/CHANGESET +11 -0
- data/test/integration/fixtures/repositories/zoo5/PULP_MANIFEST +1 -0
- data/test/integration/fixtures/repositories/zoo5/cheetah-0.3-0.8.noarch.rpm +0 -0
- data/test/integration/fixtures/repositories/zoo5/create.sh +20 -0
- data/test/integration/fixtures/repositories/zoo5/elephant-0.3-0.8.noarch.rpm +0 -0
- data/test/integration/fixtures/repositories/zoo5/empty.iso +0 -0
- data/test/integration/fixtures/repositories/zoo5/giraffe-0.3-0.8.noarch.rpm +0 -0
- data/test/integration/fixtures/repositories/zoo5/images/test1.img +0 -0
- data/test/integration/fixtures/repositories/zoo5/images/test2.img +0 -0
- data/test/integration/fixtures/repositories/zoo5/lion-0.3-0.8.noarch.rpm +0 -0
- data/test/integration/fixtures/repositories/zoo5/monkey-0.3-0.8.noarch.rpm +0 -0
- data/test/integration/fixtures/repositories/zoo5/penguin-0.3-0.8.noarch.rpm +0 -0
- data/test/integration/fixtures/repositories/zoo5/repodata/06661e2a9839cf0beebcf409410ca4f93c09081f4e772fd0d03e1faf62705a11-comps.xml +39 -0
- data/test/integration/fixtures/repositories/zoo5/repodata/0c4d57a68f9a3b13dabc6f8b01ca8958aa796167cececee04717edfc26d02f2d-other.xml.gz +0 -0
- data/test/integration/fixtures/repositories/zoo5/repodata/298ce23f48b3613e030d19f3d9c2ff2df31c2f08479bdf94cebb87c208e48c0e-filelists.xml.gz +0 -0
- data/test/integration/fixtures/repositories/zoo5/repodata/32c0e38317aade0c057b173ff62344e912e1bd650409c6ac31aecee78e3413af-comps.xml.gz +0 -0
- data/test/integration/fixtures/repositories/zoo5/repodata/34d954906c7ce7aa2254e24d7be0a9049e0a2f436add023ca056123a2d48e30e-updateinfo.xml.gz +0 -0
- data/test/integration/fixtures/repositories/zoo5/repodata/63aedd074d9f0daf7c6be8c61f91d76a962bb6ceda86b9abd2140f154c320fa2-other.sqlite.bz2 +0 -0
- data/test/integration/fixtures/repositories/zoo5/repodata/69d65cdebffc6199d3adb3e38b06ca9abaae6c1c7366805099987b28f182178d-filelists.sqlite.bz2 +0 -0
- data/test/integration/fixtures/repositories/zoo5/repodata/799241a518a4a6b11a68f8e6fbdb719875f87832f60accc0851ced0d6a0497c6-updateinfo.xml.gz +0 -0
- data/test/integration/fixtures/repositories/zoo5/repodata/a4ea9fcdce31dc8673c7a9ba66c086bd6a16e1eff717e3896dd1cac444a1423c-primary.xml.gz +0 -0
- data/test/integration/fixtures/repositories/zoo5/repodata/fb9b9508e148368d0edf7e03dc905b343937fd958e6531cce6380933d18c3455-primary.sqlite.bz2 +0 -0
- data/test/integration/fixtures/repositories/zoo5/repodata/repomd.xml +75 -0
- data/test/integration/fixtures/repositories/zoo5/squirrel-0.3-0.8.noarch.rpm +0 -0
- data/test/integration/fixtures/repositories/zoo5/updateinfo.xml +26 -0
- data/test/integration/fixtures/repositories/zoo5/walrus-0.3-0.8.noarch.rpm +0 -0
- data/test/integration/fixtures/vcr_cassettes/extensions/pulp_repository_extensions.yml +137 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_consumer.yml +1529 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_consumer_group.yml +430 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_consumer_helper.yml +120 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_distribution.yml +77 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_errata.yml +77 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_filter.yml +233 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_filter_helper.yml +81 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_package.yml +155 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_package_group.yml +40 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_package_group_category.yml +40 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_ping.yml +40 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_repository.yml +1196 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_repository_helper.yml +8659 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_repository_sync.yml +215 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_role.yml +133 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_roles.yml +120 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_task.yml +943 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_user.yml +288 -0
- data/test/integration/fixtures/vcr_cassettes/pulp_user_helper.yml +195 -0
- data/test/integration/resources/helpers/consumer_helper.rb +49 -0
- data/test/integration/resources/helpers/filter_helper.rb +44 -0
- data/test/integration/resources/helpers/repository_helper.rb +127 -0
- data/test/integration/resources/pulp_consumer_group_test.rb +182 -0
- data/test/integration/resources/pulp_consumer_test.rb +200 -0
- data/test/integration/resources/pulp_distribution_test.rb +55 -0
- data/test/integration/resources/pulp_errata_test.rb +60 -0
- data/test/integration/resources/pulp_filter_test.rb +92 -0
- data/test/integration/resources/pulp_package_group_category_test.rb +55 -0
- data/test/integration/resources/pulp_package_group_test.rb +56 -0
- data/test/integration/resources/pulp_package_test.rb +79 -0
- data/test/integration/resources/pulp_ping_test.rb +31 -0
- data/test/integration/resources/pulp_repository_test.rb +307 -0
- data/test/integration/resources/pulp_role_test.rb +62 -0
- data/test/integration/resources/pulp_task_test.rb +79 -0
- data/test/integration/resources/pulp_user_test.rb +105 -0
- data/test/integration/test_runner.rb +113 -0
- data/test/integration/vcr_setup.rb +22 -0
- data/test/unit/test_base.rb +62 -0
- metadata +218 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
recorded_with: VCR 2.2.4
|
|
3
|
+
http_interactions:
|
|
4
|
+
- request:
|
|
5
|
+
method: get
|
|
6
|
+
uri: https://localhost/pulp/api/repositories/integration_test_id/
|
|
7
|
+
body:
|
|
8
|
+
string: ""
|
|
9
|
+
headers:
|
|
10
|
+
Pulp-User:
|
|
11
|
+
- admin
|
|
12
|
+
Accept-Language:
|
|
13
|
+
- en
|
|
14
|
+
Accept-Encoding:
|
|
15
|
+
- gzip, deflate
|
|
16
|
+
Accept:
|
|
17
|
+
- application/json
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/json
|
|
20
|
+
Authorization:
|
|
21
|
+
- OAuth oauth_consumer_key="katello", oauth_nonce="QlhvKMwcwIjSfhkVd9JB3EoQxtjBnJyTLUxpxnV5514", oauth_signature="L52BPlZ6bGdAY0s3d3YHJQymvwI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290653", oauth_version="1.0"
|
|
22
|
+
response:
|
|
23
|
+
status:
|
|
24
|
+
code: 200
|
|
25
|
+
message: OK
|
|
26
|
+
headers:
|
|
27
|
+
Server:
|
|
28
|
+
- Apache/2.2.22 (Fedora)
|
|
29
|
+
Date:
|
|
30
|
+
- Thu, 30 Aug 2012 01:37:33 GMT
|
|
31
|
+
Connection:
|
|
32
|
+
- close
|
|
33
|
+
Content-Type:
|
|
34
|
+
- application/json
|
|
35
|
+
Content-Length:
|
|
36
|
+
- "1407"
|
|
37
|
+
body:
|
|
38
|
+
string: "{\"package_count\": 8, \"distributionid\": [\"ks-Test Family-TestVariant-16-x86_64\"], \"consumer_cert\": null, \"consumer_ca\": null, \"filters\": [], \"id\": \"integration_test_id\", \"preserve_metadata\": false, \"publish\": true, \"source\": {\"url\": \"file:///home/edhelms/workspace/katello/src/test/integration/fixtures/repositories/zoo5\", \"type\": \"local\"}, \"groupid\": [], \"files\": \"/pulp/api/repositories/integration_test_id/files/\", \"relative_path\": \"integration_test_id\", \"sync_schedule\": null, \"arch\": \"noarch\", \"feed_cert\": null, \"name\": \"integration_test_id\", \"feed_ca\": null, \"notes\": {}, \"last_sync\": \"2012-08-29T21:37:31-04:00\", \"content_types\": \"yum\", \"clone_ids\": [], \"checksum_type\": \"sha256\", \"sync_options\": {}, \"_id\": \"integration_test_id\", \"packages\": \"/pulp/api/repositories/integration_test_id/packages/\", \"packagegroups\": \"/pulp/api/repositories/integration_test_id/packagegroups/\", \"packagegroupcategories\": \"/pulp/api/repositories/integration_test_id/packagegroupcategories/\", \"errata\": \"/pulp/api/repositories/integration_test_id/errata/\", \"distribution\": \"/pulp/api/repositories/integration_test_id/distribution/\", \"keys\": \"/pulp/api/repositories/integration_test_id/keys/\", \"comps\": \"/pulp/api/repositories/integration_test_id/comps/\", \"uri_ref\": \"/pulp/api/repositories/integration_test_id/\", \"uri\": \"https://localhost/pulp/repos/integration_test_id/\", \"files_count\": 49, \"next_scheduled_time\": null}"
|
|
39
|
+
http_version:
|
|
40
|
+
recorded_at: Thu, 30 Aug 2012 01:37:33 GMT
|
|
41
|
+
- request:
|
|
42
|
+
method: get
|
|
43
|
+
uri: https://localhost/pulp/api/distributions/ks-Test%20Family-TestVariant-16-x86_64/
|
|
44
|
+
body:
|
|
45
|
+
string: ""
|
|
46
|
+
headers:
|
|
47
|
+
Pulp-User:
|
|
48
|
+
- admin
|
|
49
|
+
Accept-Language:
|
|
50
|
+
- en
|
|
51
|
+
Accept-Encoding:
|
|
52
|
+
- gzip, deflate
|
|
53
|
+
Accept:
|
|
54
|
+
- application/json
|
|
55
|
+
Content-Type:
|
|
56
|
+
- application/json
|
|
57
|
+
Authorization:
|
|
58
|
+
- OAuth oauth_consumer_key="katello", oauth_nonce="hVteya9TeI2GRnN5UgqDIz8mdgfqU8dLSsLqIp63w", oauth_signature="bZgiriHa98SKrAJYp%2F2KFB7powg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290653", oauth_version="1.0"
|
|
59
|
+
response:
|
|
60
|
+
status:
|
|
61
|
+
code: 200
|
|
62
|
+
message: OK
|
|
63
|
+
headers:
|
|
64
|
+
Server:
|
|
65
|
+
- Apache/2.2.22 (Fedora)
|
|
66
|
+
Date:
|
|
67
|
+
- Thu, 30 Aug 2012 01:37:33 GMT
|
|
68
|
+
Connection:
|
|
69
|
+
- close
|
|
70
|
+
Content-Type:
|
|
71
|
+
- application/json
|
|
72
|
+
Content-Length:
|
|
73
|
+
- "847"
|
|
74
|
+
body:
|
|
75
|
+
string: "{\"files\": [\"/var/lib/pulp/distributions/ks-Test Family-TestVariant-16-x86_64/.treeinfo\", \"/var/lib/pulp/distributions/ks-Test Family-TestVariant-16-x86_64/test2.img\", \"/var/lib/pulp/distributions/ks-Test Family-TestVariant-16-x86_64/test1.img\"], \"description\": \"ks-Test Family-TestVariant-16-x86_64\", \"family\": \"Test Family\", \"url\": [\"http://localhost/pulp/ks/ACME_Corporation/Library/custom/Fake_Repos/New_Local_Zoo/\", \"http://localhost/pulp/ks/integration_test_id/\"], \"relativepath\": \"/var/lib/pulp/distributions/ks-Test Family-TestVariant-16-x86_64\", \"variant\": \"TestVariant\", \"id\": \"ks-Test Family-TestVariant-16-x86_64\", \"version\": \"16\", \"timestamp\": \"2011-12-05T14:09:13\", \"_id\": \"ks-Test Family-TestVariant-16-x86_64\", \"arch\": \"x86_64\", \"_ns\": \"distribution\", \"repoids\": [\"ACME_Corporation-Fake_Repos-New_Local_Zoo\", \"integration_test_id\"]}"
|
|
76
|
+
http_version:
|
|
77
|
+
recorded_at: Thu, 30 Aug 2012 01:37:33 GMT
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
recorded_with: VCR 2.2.4
|
|
3
|
+
http_interactions:
|
|
4
|
+
- request:
|
|
5
|
+
method: get
|
|
6
|
+
uri: https://localhost/pulp/api/errata/RHEA-2010:0002/
|
|
7
|
+
body:
|
|
8
|
+
string: ""
|
|
9
|
+
headers:
|
|
10
|
+
Pulp-User:
|
|
11
|
+
- admin
|
|
12
|
+
Accept-Language:
|
|
13
|
+
- en
|
|
14
|
+
Accept-Encoding:
|
|
15
|
+
- gzip, deflate
|
|
16
|
+
Accept:
|
|
17
|
+
- application/json
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/json
|
|
20
|
+
Authorization:
|
|
21
|
+
- OAuth oauth_consumer_key="katello", oauth_nonce="11w8kshDF4LTUHuBc4hhRMeOfumMq8moMZZDfRnI", oauth_signature="4x9AQUFNyALHqyfb99Kl%2Bqu1NDI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290660", oauth_version="1.0"
|
|
22
|
+
response:
|
|
23
|
+
status:
|
|
24
|
+
code: 200
|
|
25
|
+
message: OK
|
|
26
|
+
headers:
|
|
27
|
+
Server:
|
|
28
|
+
- Apache/2.2.22 (Fedora)
|
|
29
|
+
Date:
|
|
30
|
+
- Thu, 30 Aug 2012 01:37:40 GMT
|
|
31
|
+
Connection:
|
|
32
|
+
- close
|
|
33
|
+
Content-Type:
|
|
34
|
+
- application/json
|
|
35
|
+
Content-Length:
|
|
36
|
+
- "716"
|
|
37
|
+
body:
|
|
38
|
+
string: "{\"issued\": \"2010-01-01 01:01:01\", \"references\": [], \"pkglist\": [{\"packages\": [{\"src\": \"http://www.fedoraproject.org\", \"name\": \"elephant\", \"filename\": \"elephant-0.3-0.8.noarch.rpm\", \"epoch\": null, \"version\": \"0.3\", \"release\": \"0.8\", \"arch\": \"noarch\"}], \"name\": \"1\", \"short\": \"\"}], \"id\": \"RHEA-2010:0002\", \"severity\": \"\", \"title\": \"One package errata\", \"_ns\": \"errata\", \"version\": \"1\", \"reboot_suggested\": false, \"type\": \"security\", \"immutable\": true, \"status\": \"stable\", \"updated\": \"\", \"description\": \"One package errata\", \"repo_defined\": true, \"pushcount\": 1, \"from_str\": \"lzap+pub@redhat.com\", \"repoids\": [\"integration_test_id\"], \"rights\": \"\", \"solution\": \"\", \"summary\": \"\", \"release\": \"1\", \"_id\": \"RHEA-2010:0002\"}"
|
|
39
|
+
http_version:
|
|
40
|
+
recorded_at: Thu, 30 Aug 2012 01:37:40 GMT
|
|
41
|
+
- request:
|
|
42
|
+
method: get
|
|
43
|
+
uri: https://localhost/pulp/api/errata/?type=security
|
|
44
|
+
body:
|
|
45
|
+
string: ""
|
|
46
|
+
headers:
|
|
47
|
+
Pulp-User:
|
|
48
|
+
- admin
|
|
49
|
+
Accept-Language:
|
|
50
|
+
- en
|
|
51
|
+
Accept-Encoding:
|
|
52
|
+
- gzip, deflate
|
|
53
|
+
Accept:
|
|
54
|
+
- application/json
|
|
55
|
+
Content-Type:
|
|
56
|
+
- application/json
|
|
57
|
+
Authorization:
|
|
58
|
+
- OAuth oauth_consumer_key="katello", oauth_nonce="n5Ajhd9efYNQ17Y2eGQnaRLBkqVQnX3EAZDWkSAh4g", oauth_signature="5q7Deq%2BQHI8NiZfl81Z%2BFmWQHOc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290660", oauth_version="1.0"
|
|
59
|
+
response:
|
|
60
|
+
status:
|
|
61
|
+
code: 200
|
|
62
|
+
message: OK
|
|
63
|
+
headers:
|
|
64
|
+
Server:
|
|
65
|
+
- Apache/2.2.22 (Fedora)
|
|
66
|
+
Date:
|
|
67
|
+
- Thu, 30 Aug 2012 01:37:40 GMT
|
|
68
|
+
Connection:
|
|
69
|
+
- close
|
|
70
|
+
Content-Type:
|
|
71
|
+
- application/json
|
|
72
|
+
Content-Length:
|
|
73
|
+
- "5029"
|
|
74
|
+
body:
|
|
75
|
+
string: "[{\"issued\": \"2010-01-01 01:01:01\", \"references\": [], \"pkglist\": [], \"id\": \"RHEA-2010:0001\", \"severity\": \"\", \"title\": \"Empty errata\", \"_ns\": \"errata\", \"version\": \"1\", \"reboot_suggested\": false, \"type\": \"security\", \"immutable\": true, \"status\": \"stable\", \"updated\": \"\", \"description\": \"Empty errata\", \"repo_defined\": true, \"pushcount\": 1, \"from_str\": \"lzap+pub@redhat.com\", \"repoids\": [\"integration_test_id\"], \"rights\": \"\", \"solution\": \"\", \"summary\": \"\", \"release\": \"1\", \"_id\": \"RHEA-2010:0001\"}, {\"issued\": \"2010-01-01 01:01:01\", \"references\": [], \"pkglist\": [{\"packages\": [{\"src\": \"http://www.fedoraproject.org\", \"name\": \"elephant\", \"filename\": \"elephant-0.3-0.8.noarch.rpm\", \"epoch\": null, \"version\": \"0.3\", \"release\": \"0.8\", \"arch\": \"noarch\"}], \"name\": \"1\", \"short\": \"\"}], \"id\": \"RHEA-2010:0002\", \"severity\": \"\", \"title\": \"One package errata\", \"_ns\": \"errata\", \"version\": \"1\", \"reboot_suggested\": false, \"type\": \"security\", \"immutable\": true, \"status\": \"stable\", \"updated\": \"\", \"description\": \"One package errata\", \"repo_defined\": true, \"pushcount\": 1, \"from_str\": \"lzap+pub@redhat.com\", \"repoids\": [\"integration_test_id\"], \"rights\": \"\", \"solution\": \"\", \"summary\": \"\", \"release\": \"1\", \"_id\": \"RHEA-2010:0002\"}, {\"issued\": \"2012-02-29 11:01:09\", \"references\": [], \"pkglist\": [{\"packages\": [{\"src\": \"http://www.fedoraproject.org\", \"name\": \"bear\", \"filename\": \"bear-4.1-1.noarch.rpm\", \"epoch\": null, \"version\": \"4.1\", \"release\": \"1\", \"arch\": \"noarch\"}], \"name\": \"1\", \"short\": \"\"}], \"id\": \"RHEA-2012:0001\", \"severity\": \"\", \"title\": \"Bear_Erratum\", \"_ns\": \"errata\", \"version\": \"1\", \"reboot_suggested\": false, \"type\": \"security\", \"immutable\": true, \"status\": \"stable\", \"updated\": \"\", \"description\": \"Bear_Erratum\", \"repo_defined\": true, \"pushcount\": 1, \"from_str\": \"errata@redhat.com\", \"repoids\": [\"ACME_Corporation-Fake_Repos-zoo3\", \"ACME_Corporation-Test-Fake_Repos-zoo3\", \"ACME_Corporation-QA-Fake_Repos-zoo3\"], \"rights\": \"\", \"solution\": \"\", \"summary\": \"\", \"release\": \"1\", \"_id\": \"RHEA-2012:0001\"}, {\"issued\": \"2012-02-29 11:01:13\", \"references\": [], \"pkglist\": [{\"packages\": [{\"src\": \"http://www.fedoraproject.org\", \"name\": \"gorilla\", \"filename\": \"gorilla-0.62-1.noarch.rpm\", \"epoch\": null, \"version\": \"0.62\", \"release\": \"1\", \"arch\": \"noarch\"}], \"name\": \"1\", \"short\": \"\"}], \"id\": \"RHEA-2012:0004\", \"severity\": \"\", \"title\": \"Gorilla_Erratum\", \"_ns\": \"errata\", \"version\": \"1\", \"reboot_suggested\": false, \"type\": \"security\", \"immutable\": true, \"status\": \"stable\", \"updated\": \"\", \"description\": \"Gorilla_Erratum\", \"repo_defined\": true, \"pushcount\": 1, \"from_str\": \"errata@redhat.com\", \"repoids\": [\"ACME_Corporation-Fake_Repos-zoo3\", \"ACME_Corporation-Test-Fake_Repos-zoo3\", \"ACME_Corporation-QA-Fake_Repos-zoo3\"], \"rights\": \"\", \"solution\": \"\", \"summary\": \"\", \"release\": \"1\", \"_id\": \"RHEA-2012:0004\"}, {\"issued\": \"2012-02-29 11:01:10\", \"references\": [], \"pkglist\": [{\"packages\": [{\"src\": \"http://www.fedoraproject.org\", \"name\": \"walrus\", \"filename\": \"walrus-5.21-1.noarch.rpm\", \"epoch\": null, \"version\": \"5.21\", \"release\": \"1\", \"arch\": \"noarch\"}, {\"src\": \"http://www.fedoraproject.org\", \"name\": \"penguin\", \"filename\": \"penguin-0.9.1-1.noarch.rpm\", \"epoch\": null, \"version\": \"0.9.1\", \"release\": \"1\", \"arch\": \"noarch\"}, {\"src\": \"http://www.fedoraproject.org\", \"name\": \"shark\", \"filename\": \"shark-0.1-1.noarch.rpm\", \"epoch\": null, \"version\": \"0.1\", \"release\": \"1\", \"arch\": \"noarch\"}], \"name\": \"1\", \"short\": \"\"}], \"id\": \"RHEA-2012:0002\", \"severity\": \"\", \"title\": \"Sea_Erratum\", \"_ns\": \"errata\", \"version\": \"1\", \"reboot_suggested\": false, \"type\": \"security\", \"immutable\": true, \"status\": \"stable\", \"updated\": \"\", \"description\": \"Sea_Erratum\", \"repo_defined\": true, \"pushcount\": 1, \"from_str\": \"errata@redhat.com\", \"repoids\": [\"ACME_Corporation-Fake_Repos-zoo3\", \"ACME_Corporation-Test-Fake_Repos-zoo3\", \"ACME_Corporation-QA-Fake_Repos-zoo3\"], \"rights\": \"\", \"solution\": \"\", \"summary\": \"\", \"release\": \"1\", \"_id\": \"RHEA-2012:0002\"}, {\"issued\": \"2012-02-29 11:01:11\", \"references\": [], \"pkglist\": [{\"packages\": [{\"src\": \"http://www.fedoraproject.org\", \"name\": \"crow\", \"filename\": \"crow-0.8-1.noarch.rpm\", \"epoch\": null, \"version\": \"0.8\", \"release\": \"1\", \"arch\": \"noarch\"}, {\"src\": \"http://www.fedoraproject.org\", \"name\": \"stork\", \"filename\": \"stork-0.12-2.noarch.rpm\", \"epoch\": null, \"version\": \"0.12\", \"release\": \"2\", \"arch\": \"noarch\"}, {\"src\": \"http://www.fedoraproject.org\", \"name\": \"duck\", \"filename\": \"duck-0.6-1.noarch.rpm\", \"epoch\": null, \"version\": \"0.6\", \"release\": \"1\", \"arch\": \"noarch\"}], \"name\": \"1\", \"short\": \"\"}], \"id\": \"RHEA-2012:0003\", \"severity\": \"\", \"title\": \"Bird_Erratum\", \"_ns\": \"errata\", \"version\": \"1\", \"reboot_suggested\": false, \"type\": \"security\", \"immutable\": true, \"status\": \"stable\", \"updated\": \"\", \"description\": \"Bird_Erratum\", \"repo_defined\": true, \"pushcount\": 1, \"from_str\": \"errata@redhat.com\", \"repoids\": [\"ACME_Corporation-Fake_Repos-zoo3\", \"ACME_Corporation-Test-Fake_Repos-zoo3\", \"ACME_Corporation-QA-Fake_Repos-zoo3\"], \"rights\": \"\", \"solution\": \"\", \"summary\": \"\", \"release\": \"1\", \"_id\": \"RHEA-2012:0003\"}]"
|
|
76
|
+
http_version:
|
|
77
|
+
recorded_at: Thu, 30 Aug 2012 01:37:40 GMT
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
---
|
|
2
|
+
recorded_with: VCR 2.2.4
|
|
3
|
+
http_interactions:
|
|
4
|
+
- request:
|
|
5
|
+
method: get
|
|
6
|
+
uri: https://localhost/pulp/api/filters/integration_test_filter/
|
|
7
|
+
body:
|
|
8
|
+
string: ""
|
|
9
|
+
headers:
|
|
10
|
+
Pulp-User:
|
|
11
|
+
- admin
|
|
12
|
+
Accept-Language:
|
|
13
|
+
- en
|
|
14
|
+
Accept-Encoding:
|
|
15
|
+
- gzip, deflate
|
|
16
|
+
Accept:
|
|
17
|
+
- application/json
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/json
|
|
20
|
+
Authorization:
|
|
21
|
+
- OAuth oauth_consumer_key="katello", oauth_nonce="bD9TYRLCZM8g61i1Fyux2uSr5imBXI3XVczO5RoI", oauth_signature="N2dWQrDJ276t84uzVSMR1PoKooc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290662", oauth_version="1.0"
|
|
22
|
+
response:
|
|
23
|
+
status:
|
|
24
|
+
code: 200
|
|
25
|
+
message: OK
|
|
26
|
+
headers:
|
|
27
|
+
Server:
|
|
28
|
+
- Apache/2.2.22 (Fedora)
|
|
29
|
+
Date:
|
|
30
|
+
- Thu, 30 Aug 2012 01:37:42 GMT
|
|
31
|
+
Connection:
|
|
32
|
+
- close
|
|
33
|
+
Content-Type:
|
|
34
|
+
- application/json
|
|
35
|
+
Content-Length:
|
|
36
|
+
- "156"
|
|
37
|
+
body:
|
|
38
|
+
string: "{\"description\": null, \"_ns\": \"filters\", \"package_list\": [\"cheetah\"], \"_id\": \"integration_test_filter\", \"type\": \"blacklist\", \"id\": \"integration_test_filter\"}"
|
|
39
|
+
http_version:
|
|
40
|
+
recorded_at: Thu, 30 Aug 2012 01:37:42 GMT
|
|
41
|
+
- request:
|
|
42
|
+
method: post
|
|
43
|
+
uri: https://localhost/pulp/api/filters/integration_test_filter/remove_packages/
|
|
44
|
+
body:
|
|
45
|
+
string: "{\"packages\":[\"cheetah\",\"lion\"]}"
|
|
46
|
+
headers:
|
|
47
|
+
Pulp-User:
|
|
48
|
+
- admin
|
|
49
|
+
Accept-Language:
|
|
50
|
+
- en
|
|
51
|
+
Accept-Encoding:
|
|
52
|
+
- gzip, deflate
|
|
53
|
+
Accept:
|
|
54
|
+
- application/json
|
|
55
|
+
Content-Type:
|
|
56
|
+
- application/json
|
|
57
|
+
Authorization:
|
|
58
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="lNE8j8f7V4lO084GbF8j6MH69zm6RSywy9sjQ9DpkBM", oauth_signature="NJqSF6dGdlHaMi%2Bih9zERrakOps%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290662", oauth_version="1.0"
|
|
59
|
+
Content-Length:
|
|
60
|
+
- "31"
|
|
61
|
+
response:
|
|
62
|
+
status:
|
|
63
|
+
code: 200
|
|
64
|
+
message: OK
|
|
65
|
+
headers:
|
|
66
|
+
Server:
|
|
67
|
+
- Apache/2.2.22 (Fedora)
|
|
68
|
+
Date:
|
|
69
|
+
- Thu, 30 Aug 2012 01:37:42 GMT
|
|
70
|
+
Connection:
|
|
71
|
+
- close
|
|
72
|
+
Content-Type:
|
|
73
|
+
- application/json
|
|
74
|
+
Content-Length:
|
|
75
|
+
- "4"
|
|
76
|
+
body:
|
|
77
|
+
string: "true"
|
|
78
|
+
http_version:
|
|
79
|
+
recorded_at: Thu, 30 Aug 2012 01:37:43 GMT
|
|
80
|
+
- request:
|
|
81
|
+
method: post
|
|
82
|
+
uri: https://localhost/pulp/api/filters/integration_test_filter/add_packages/
|
|
83
|
+
body:
|
|
84
|
+
string: "{\"packages\":[\"cheetah\",\"lion\"]}"
|
|
85
|
+
headers:
|
|
86
|
+
Pulp-User:
|
|
87
|
+
- admin
|
|
88
|
+
Accept-Language:
|
|
89
|
+
- en
|
|
90
|
+
Accept-Encoding:
|
|
91
|
+
- gzip, deflate
|
|
92
|
+
Accept:
|
|
93
|
+
- application/json
|
|
94
|
+
Content-Type:
|
|
95
|
+
- application/json
|
|
96
|
+
Authorization:
|
|
97
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="WkKvYdvDoU34YXZq9GqLLIt1zFApNJuzQ6svWzjjIB0", oauth_signature="1vRvpeQoNX4GywyCxuWa0FcxlrQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290663", oauth_version="1.0"
|
|
98
|
+
Content-Length:
|
|
99
|
+
- "31"
|
|
100
|
+
response:
|
|
101
|
+
status:
|
|
102
|
+
code: 200
|
|
103
|
+
message: OK
|
|
104
|
+
headers:
|
|
105
|
+
Server:
|
|
106
|
+
- Apache/2.2.22 (Fedora)
|
|
107
|
+
Date:
|
|
108
|
+
- Thu, 30 Aug 2012 01:37:43 GMT
|
|
109
|
+
Connection:
|
|
110
|
+
- close
|
|
111
|
+
Content-Type:
|
|
112
|
+
- application/json
|
|
113
|
+
Content-Length:
|
|
114
|
+
- "4"
|
|
115
|
+
body:
|
|
116
|
+
string: "true"
|
|
117
|
+
http_version:
|
|
118
|
+
recorded_at: Thu, 30 Aug 2012 01:37:43 GMT
|
|
119
|
+
- request:
|
|
120
|
+
method: delete
|
|
121
|
+
uri: https://localhost/pulp/api/filters/integration_test_filter/
|
|
122
|
+
body:
|
|
123
|
+
string: ""
|
|
124
|
+
headers:
|
|
125
|
+
Pulp-User:
|
|
126
|
+
- admin
|
|
127
|
+
Accept-Language:
|
|
128
|
+
- en
|
|
129
|
+
Accept-Encoding:
|
|
130
|
+
- gzip, deflate
|
|
131
|
+
Accept:
|
|
132
|
+
- application/json
|
|
133
|
+
Content-Type:
|
|
134
|
+
- application/json
|
|
135
|
+
Authorization:
|
|
136
|
+
- OAuth oauth_consumer_key="katello", oauth_nonce="hnWbcVoGcMC18X79cXoCGoOtOWumtLl62zxu24aSA", oauth_signature="JlxWDSOfizXFC%2Bux51FGXB9lO4s%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290663", oauth_version="1.0"
|
|
137
|
+
response:
|
|
138
|
+
status:
|
|
139
|
+
code: 200
|
|
140
|
+
message: OK
|
|
141
|
+
headers:
|
|
142
|
+
Server:
|
|
143
|
+
- Apache/2.2.22 (Fedora)
|
|
144
|
+
Date:
|
|
145
|
+
- Thu, 30 Aug 2012 01:37:43 GMT
|
|
146
|
+
Connection:
|
|
147
|
+
- close
|
|
148
|
+
Content-Type:
|
|
149
|
+
- application/json
|
|
150
|
+
Content-Length:
|
|
151
|
+
- "4"
|
|
152
|
+
body:
|
|
153
|
+
string: "true"
|
|
154
|
+
http_version:
|
|
155
|
+
recorded_at: Thu, 30 Aug 2012 01:37:43 GMT
|
|
156
|
+
- request:
|
|
157
|
+
method: post
|
|
158
|
+
uri: https://localhost/pulp/api/filters/
|
|
159
|
+
body:
|
|
160
|
+
string: "{\"type\":\"blacklist\",\"package_list\":[\"cheetah\"],\"id\":\"integration_test_filter\"}"
|
|
161
|
+
headers:
|
|
162
|
+
Pulp-User:
|
|
163
|
+
- admin
|
|
164
|
+
Accept-Language:
|
|
165
|
+
- en
|
|
166
|
+
Accept-Encoding:
|
|
167
|
+
- gzip, deflate
|
|
168
|
+
Accept:
|
|
169
|
+
- application/json
|
|
170
|
+
Content-Type:
|
|
171
|
+
- application/json
|
|
172
|
+
Authorization:
|
|
173
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="ZzJ1vTpPKfuc5aIgI5HWpc72tX6rD9GFNJtBHPKKA", oauth_signature="I8ium%2B7I%2BB7GtCQlh5ko%2FiCxmII%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290663", oauth_version="1.0"
|
|
174
|
+
Content-Length:
|
|
175
|
+
- "78"
|
|
176
|
+
response:
|
|
177
|
+
status:
|
|
178
|
+
code: 201
|
|
179
|
+
message: Created
|
|
180
|
+
headers:
|
|
181
|
+
Server:
|
|
182
|
+
- Apache/2.2.22 (Fedora)
|
|
183
|
+
Date:
|
|
184
|
+
- Thu, 30 Aug 2012 01:37:43 GMT
|
|
185
|
+
Connection:
|
|
186
|
+
- close
|
|
187
|
+
Content-Type:
|
|
188
|
+
- application/json
|
|
189
|
+
Location:
|
|
190
|
+
- integration_test_filter
|
|
191
|
+
Content-Length:
|
|
192
|
+
- "156"
|
|
193
|
+
body:
|
|
194
|
+
string: "{\"description\": null, \"_ns\": \"filters\", \"package_list\": [\"cheetah\"], \"_id\": \"integration_test_filter\", \"type\": \"blacklist\", \"id\": \"integration_test_filter\"}"
|
|
195
|
+
http_version:
|
|
196
|
+
recorded_at: Thu, 30 Aug 2012 01:37:43 GMT
|
|
197
|
+
- request:
|
|
198
|
+
method: delete
|
|
199
|
+
uri: https://localhost/pulp/api/filters/integration_test_filter/
|
|
200
|
+
body:
|
|
201
|
+
string: ""
|
|
202
|
+
headers:
|
|
203
|
+
Pulp-User:
|
|
204
|
+
- admin
|
|
205
|
+
Accept-Language:
|
|
206
|
+
- en
|
|
207
|
+
Accept-Encoding:
|
|
208
|
+
- gzip, deflate
|
|
209
|
+
Accept:
|
|
210
|
+
- application/json
|
|
211
|
+
Content-Type:
|
|
212
|
+
- application/json
|
|
213
|
+
Authorization:
|
|
214
|
+
- OAuth oauth_consumer_key="katello", oauth_nonce="dwcREteOaauc16JQP9VTwbFRqpXAeqpAQd2wF1G3Dw", oauth_signature="%2BYfIs4ePj%2Foe9nXgI12LRr%2F9PFE%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290663", oauth_version="1.0"
|
|
215
|
+
response:
|
|
216
|
+
status:
|
|
217
|
+
code: 200
|
|
218
|
+
message: OK
|
|
219
|
+
headers:
|
|
220
|
+
Server:
|
|
221
|
+
- Apache/2.2.22 (Fedora)
|
|
222
|
+
Date:
|
|
223
|
+
- Thu, 30 Aug 2012 01:37:43 GMT
|
|
224
|
+
Connection:
|
|
225
|
+
- close
|
|
226
|
+
Content-Type:
|
|
227
|
+
- application/json
|
|
228
|
+
Content-Length:
|
|
229
|
+
- "4"
|
|
230
|
+
body:
|
|
231
|
+
string: "true"
|
|
232
|
+
http_version:
|
|
233
|
+
recorded_at: Thu, 30 Aug 2012 01:37:43 GMT
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://localhost/pulp/api/filters/
|
|
6
|
+
body:
|
|
7
|
+
string: "{\"type\":\"blacklist\",\"package_list\":[\"cheetah\"],\"id\":\"integration_test_filter\"}"
|
|
8
|
+
headers:
|
|
9
|
+
Pulp-User:
|
|
10
|
+
- admin
|
|
11
|
+
Accept-Language:
|
|
12
|
+
- en
|
|
13
|
+
Content-Type:
|
|
14
|
+
- application/json
|
|
15
|
+
Accept-Encoding:
|
|
16
|
+
- gzip, deflate
|
|
17
|
+
Accept:
|
|
18
|
+
- "*/*; q=0.5, application/xml"
|
|
19
|
+
Authorization:
|
|
20
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="A0kMbwTNZ0fmekKPmotBriASw8O7LQZ7AhkvdwXqY", oauth_signature="%2BGeCFhDRjHJlLH3VVXmzV%2F18hFg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346291261", oauth_version="1.0"
|
|
21
|
+
Content-Length:
|
|
22
|
+
- "78"
|
|
23
|
+
response:
|
|
24
|
+
status:
|
|
25
|
+
code: 201
|
|
26
|
+
message: Created
|
|
27
|
+
headers:
|
|
28
|
+
Location:
|
|
29
|
+
- integration_test_filter
|
|
30
|
+
Content-Type:
|
|
31
|
+
- application/json
|
|
32
|
+
Server:
|
|
33
|
+
- Apache/2.2.22 (Fedora)
|
|
34
|
+
Date:
|
|
35
|
+
- Thu, 30 Aug 2012 01:47:41 GMT
|
|
36
|
+
Connection:
|
|
37
|
+
- close
|
|
38
|
+
Content-Length:
|
|
39
|
+
- "156"
|
|
40
|
+
body:
|
|
41
|
+
string: "{\"description\": null, \"_ns\": \"filters\", \"package_list\": [\"cheetah\"], \"_id\": \"integration_test_filter\", \"type\": \"blacklist\", \"id\": \"integration_test_filter\"}"
|
|
42
|
+
http_version:
|
|
43
|
+
recorded_at: Thu, 30 Aug 2012 01:47:42 GMT
|
|
44
|
+
- request:
|
|
45
|
+
method: delete
|
|
46
|
+
uri: https://localhost/pulp/api/filters/integration_test_filter/
|
|
47
|
+
body:
|
|
48
|
+
string: ""
|
|
49
|
+
headers:
|
|
50
|
+
Pulp-User:
|
|
51
|
+
- admin
|
|
52
|
+
Accept-Language:
|
|
53
|
+
- en
|
|
54
|
+
Content-Type:
|
|
55
|
+
- application/json
|
|
56
|
+
Accept-Encoding:
|
|
57
|
+
- gzip, deflate
|
|
58
|
+
Accept:
|
|
59
|
+
- "*/*; q=0.5, application/xml"
|
|
60
|
+
Authorization:
|
|
61
|
+
- OAuth oauth_consumer_key="katello", oauth_nonce="RTpLqQKqW8Z8uZNe3Bec2C9gGgU8Jawf4TvvniiYIRc", oauth_signature="dZrg25KUMc%2BwcloLr0zX3YAQVvw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346291314", oauth_version="1.0"
|
|
62
|
+
response:
|
|
63
|
+
status:
|
|
64
|
+
code: 200
|
|
65
|
+
message: OK
|
|
66
|
+
headers:
|
|
67
|
+
Content-Type:
|
|
68
|
+
- application/json
|
|
69
|
+
Server:
|
|
70
|
+
- Apache/2.2.22 (Fedora)
|
|
71
|
+
Date:
|
|
72
|
+
- Thu, 30 Aug 2012 01:48:34 GMT
|
|
73
|
+
Connection:
|
|
74
|
+
- close
|
|
75
|
+
Content-Length:
|
|
76
|
+
- "4"
|
|
77
|
+
body:
|
|
78
|
+
string: "true"
|
|
79
|
+
http_version:
|
|
80
|
+
recorded_at: Thu, 30 Aug 2012 01:48:34 GMT
|
|
81
|
+
recorded_with: VCR 2.2.4
|