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,430 @@
|
|
|
1
|
+
---
|
|
2
|
+
recorded_with: VCR 2.2.4
|
|
3
|
+
http_interactions:
|
|
4
|
+
- request:
|
|
5
|
+
method: get
|
|
6
|
+
uri: https://localhost/pulp/api/consumergroups/integration_test_consumer_group/
|
|
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="MSc6EpOcTQcDcCzCFwiaKvstWKq6Xe3idEIE81jxg", oauth_signature="9k6q7RXu2%2FnHSCBdXuVRlOC3ts4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290623", 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:03 GMT
|
|
31
|
+
Connection:
|
|
32
|
+
- close
|
|
33
|
+
Content-Type:
|
|
34
|
+
- application/json
|
|
35
|
+
Content-Length:
|
|
36
|
+
- "186"
|
|
37
|
+
body:
|
|
38
|
+
string: "{\"description\": \"Test description.\", \"_ns\": \"consumergroups\", \"key_value_pairs\": {}, \"consumerids\": [], \"_id\": \"integration_test_consumer_group\", \"id\": \"integration_test_consumer_group\"}"
|
|
39
|
+
http_version:
|
|
40
|
+
recorded_at: Thu, 30 Aug 2012 01:37:03 GMT
|
|
41
|
+
- request:
|
|
42
|
+
method: post
|
|
43
|
+
uri: https://localhost/pulp/api/consumergroups/integration_test_consumer_group/installerrata/
|
|
44
|
+
body:
|
|
45
|
+
string: "{\"errataids\":[\"RHEA-2010:0002\"],\"scheduled_time\":\"2013-08-29T21:37:04-04:00\"}"
|
|
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="PTBH32MTu2eCcmlHuItgOxbtenz73gLZ077AttuLqs", oauth_signature="A%2FZW3YXz64SZAM7cbOiUNAt31gY%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290624", oauth_version="1.0"
|
|
59
|
+
Content-Length:
|
|
60
|
+
- "77"
|
|
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:04 GMT
|
|
70
|
+
Connection:
|
|
71
|
+
- close
|
|
72
|
+
Content-Type:
|
|
73
|
+
- application/json
|
|
74
|
+
Content-Length:
|
|
75
|
+
- "59"
|
|
76
|
+
body:
|
|
77
|
+
string: "{\"tasks\": [], \"id\": \"ec69b5be-0d23-47d8-912c-4230c70565e6\"}"
|
|
78
|
+
http_version:
|
|
79
|
+
recorded_at: Thu, 30 Aug 2012 01:37:05 GMT
|
|
80
|
+
- request:
|
|
81
|
+
method: post
|
|
82
|
+
uri: https://localhost/pulp/api/consumergroups/integration_test_consumer_group/updatepackages/
|
|
83
|
+
body:
|
|
84
|
+
string: "{\"packagenames\":[\"elephant\"],\"scheduled_time\":\"2013-08-29T21:37:05-04:00\"}"
|
|
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="Exx1jFC0g3KCaIyn3G9ZLs00NyubZ2jSz7HR8BKw", oauth_signature="wDEWT2rNqxJaj68LbdNZIDbbfrk%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290625", oauth_version="1.0"
|
|
98
|
+
Content-Length:
|
|
99
|
+
- "74"
|
|
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:05 GMT
|
|
109
|
+
Connection:
|
|
110
|
+
- close
|
|
111
|
+
Content-Type:
|
|
112
|
+
- application/json
|
|
113
|
+
Content-Length:
|
|
114
|
+
- "59"
|
|
115
|
+
body:
|
|
116
|
+
string: "{\"tasks\": [], \"id\": \"3aad6d25-3216-45e6-9298-6ffefaaec51f\"}"
|
|
117
|
+
http_version:
|
|
118
|
+
recorded_at: Thu, 30 Aug 2012 01:37:05 GMT
|
|
119
|
+
- request:
|
|
120
|
+
method: post
|
|
121
|
+
uri: https://localhost/pulp/api/consumergroups/integration_test_consumer_group/installpackages/
|
|
122
|
+
body:
|
|
123
|
+
string: "{\"packagenames\":[\"cheetah\"],\"scheduled_time\":\"2013-08-29T21:37:06-04:00\"}"
|
|
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_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="8ztdpWqOPhKQpgk4oDYr484cuvjfYL3DlCHTlwNQBY", oauth_signature="YUtCvgpvtHYD2NzEGmnPx56s4kU%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290626", oauth_version="1.0"
|
|
137
|
+
Content-Length:
|
|
138
|
+
- "73"
|
|
139
|
+
response:
|
|
140
|
+
status:
|
|
141
|
+
code: 200
|
|
142
|
+
message: OK
|
|
143
|
+
headers:
|
|
144
|
+
Server:
|
|
145
|
+
- Apache/2.2.22 (Fedora)
|
|
146
|
+
Date:
|
|
147
|
+
- Thu, 30 Aug 2012 01:37:06 GMT
|
|
148
|
+
Connection:
|
|
149
|
+
- close
|
|
150
|
+
Content-Type:
|
|
151
|
+
- application/json
|
|
152
|
+
Content-Length:
|
|
153
|
+
- "59"
|
|
154
|
+
body:
|
|
155
|
+
string: "{\"tasks\": [], \"id\": \"fcfc4aae-e35c-422f-adf4-71d0cc867756\"}"
|
|
156
|
+
http_version:
|
|
157
|
+
recorded_at: Thu, 30 Aug 2012 01:37:06 GMT
|
|
158
|
+
- request:
|
|
159
|
+
method: post
|
|
160
|
+
uri: https://localhost/pulp/api/consumergroups/integration_test_consumer_group/add_consumer/
|
|
161
|
+
body:
|
|
162
|
+
string: "\"integration_test_consumer\""
|
|
163
|
+
headers:
|
|
164
|
+
Pulp-User:
|
|
165
|
+
- admin
|
|
166
|
+
Accept-Language:
|
|
167
|
+
- en
|
|
168
|
+
Accept-Encoding:
|
|
169
|
+
- gzip, deflate
|
|
170
|
+
Accept:
|
|
171
|
+
- application/json
|
|
172
|
+
Content-Type:
|
|
173
|
+
- application/json
|
|
174
|
+
Authorization:
|
|
175
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="WCllc2DOGaswOI2DoOHb4ZJgrzF1tErCbjR5FfAwMI", oauth_signature="O%2Fv8lj0DSuCergrwdppfL8s%2FWCE%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290626", oauth_version="1.0"
|
|
176
|
+
Content-Length:
|
|
177
|
+
- "27"
|
|
178
|
+
response:
|
|
179
|
+
status:
|
|
180
|
+
code: 200
|
|
181
|
+
message: OK
|
|
182
|
+
headers:
|
|
183
|
+
Server:
|
|
184
|
+
- Apache/2.2.22 (Fedora)
|
|
185
|
+
Date:
|
|
186
|
+
- Thu, 30 Aug 2012 01:37:06 GMT
|
|
187
|
+
Connection:
|
|
188
|
+
- close
|
|
189
|
+
Content-Type:
|
|
190
|
+
- application/json
|
|
191
|
+
Content-Length:
|
|
192
|
+
- "4"
|
|
193
|
+
body:
|
|
194
|
+
string: "true"
|
|
195
|
+
http_version:
|
|
196
|
+
recorded_at: Thu, 30 Aug 2012 01:37:06 GMT
|
|
197
|
+
- request:
|
|
198
|
+
method: post
|
|
199
|
+
uri: https://localhost/pulp/api/consumergroups/integration_test_consumer_group/delete_consumer/
|
|
200
|
+
body:
|
|
201
|
+
string: "\"integration_test_consumer\""
|
|
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_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="bPuflMpM6VWLDu3N1OEYysGFuf77MKRePTld8wugc", oauth_signature="uiURyPfzcSYuR8Zu03GS2N95e5U%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290626", oauth_version="1.0"
|
|
215
|
+
Content-Length:
|
|
216
|
+
- "27"
|
|
217
|
+
response:
|
|
218
|
+
status:
|
|
219
|
+
code: 200
|
|
220
|
+
message: OK
|
|
221
|
+
headers:
|
|
222
|
+
Server:
|
|
223
|
+
- Apache/2.2.22 (Fedora)
|
|
224
|
+
Date:
|
|
225
|
+
- Thu, 30 Aug 2012 01:37:06 GMT
|
|
226
|
+
Connection:
|
|
227
|
+
- close
|
|
228
|
+
Content-Type:
|
|
229
|
+
- application/json
|
|
230
|
+
Content-Length:
|
|
231
|
+
- "4"
|
|
232
|
+
body:
|
|
233
|
+
string: "null"
|
|
234
|
+
http_version:
|
|
235
|
+
recorded_at: Thu, 30 Aug 2012 01:37:06 GMT
|
|
236
|
+
- request:
|
|
237
|
+
method: post
|
|
238
|
+
uri: https://localhost/pulp/api/consumergroups/integration_test_consumer_group/uninstallpackages/
|
|
239
|
+
body:
|
|
240
|
+
string: "{\"packagenames\":[\"elephant\"],\"scheduled_time\":\"2013-08-29T21:37:06-04:00\"}"
|
|
241
|
+
headers:
|
|
242
|
+
Pulp-User:
|
|
243
|
+
- admin
|
|
244
|
+
Accept-Language:
|
|
245
|
+
- en
|
|
246
|
+
Accept-Encoding:
|
|
247
|
+
- gzip, deflate
|
|
248
|
+
Accept:
|
|
249
|
+
- application/json
|
|
250
|
+
Content-Type:
|
|
251
|
+
- application/json
|
|
252
|
+
Authorization:
|
|
253
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="3bArdTsZ0qdO5F1EepLYawtefGb2damVBhHM6TSQ", oauth_signature="uIjzN7W9agxAW2ofugmgJVbBEeQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290626", oauth_version="1.0"
|
|
254
|
+
Content-Length:
|
|
255
|
+
- "74"
|
|
256
|
+
response:
|
|
257
|
+
status:
|
|
258
|
+
code: 200
|
|
259
|
+
message: OK
|
|
260
|
+
headers:
|
|
261
|
+
Server:
|
|
262
|
+
- Apache/2.2.22 (Fedora)
|
|
263
|
+
Date:
|
|
264
|
+
- Thu, 30 Aug 2012 01:37:06 GMT
|
|
265
|
+
Connection:
|
|
266
|
+
- close
|
|
267
|
+
Content-Type:
|
|
268
|
+
- application/json
|
|
269
|
+
Content-Length:
|
|
270
|
+
- "59"
|
|
271
|
+
body:
|
|
272
|
+
string: "{\"tasks\": [], \"id\": \"79fbc335-3092-4949-9325-790e7d188296\"}"
|
|
273
|
+
http_version:
|
|
274
|
+
recorded_at: Thu, 30 Aug 2012 01:37:06 GMT
|
|
275
|
+
- request:
|
|
276
|
+
method: post
|
|
277
|
+
uri: https://localhost/pulp/api/consumergroups/integration_test_consumer_group/uninstallpackagegroups/
|
|
278
|
+
body:
|
|
279
|
+
string: "{\"grpids\":[\"mammals\"],\"scheduled_time\":\"2013-08-29T21:37:07-04:00\"}"
|
|
280
|
+
headers:
|
|
281
|
+
Pulp-User:
|
|
282
|
+
- admin
|
|
283
|
+
Accept-Language:
|
|
284
|
+
- en
|
|
285
|
+
Accept-Encoding:
|
|
286
|
+
- gzip, deflate
|
|
287
|
+
Accept:
|
|
288
|
+
- application/json
|
|
289
|
+
Content-Type:
|
|
290
|
+
- application/json
|
|
291
|
+
Authorization:
|
|
292
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="2DHAWHstG7sMQWq5NCCCgBMAp8RXKHIXvjXSaznI", oauth_signature="sM1NiEQX3W028WQX%2BL9qYlAUoBk%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290627", oauth_version="1.0"
|
|
293
|
+
Content-Length:
|
|
294
|
+
- "67"
|
|
295
|
+
response:
|
|
296
|
+
status:
|
|
297
|
+
code: 200
|
|
298
|
+
message: OK
|
|
299
|
+
headers:
|
|
300
|
+
Server:
|
|
301
|
+
- Apache/2.2.22 (Fedora)
|
|
302
|
+
Date:
|
|
303
|
+
- Thu, 30 Aug 2012 01:37:07 GMT
|
|
304
|
+
Connection:
|
|
305
|
+
- close
|
|
306
|
+
Content-Type:
|
|
307
|
+
- application/json
|
|
308
|
+
Content-Length:
|
|
309
|
+
- "59"
|
|
310
|
+
body:
|
|
311
|
+
string: "{\"tasks\": [], \"id\": \"ee081a7f-5901-44b1-953f-24eff317e7af\"}"
|
|
312
|
+
http_version:
|
|
313
|
+
recorded_at: Thu, 30 Aug 2012 01:37:07 GMT
|
|
314
|
+
- request:
|
|
315
|
+
method: post
|
|
316
|
+
uri: https://localhost/pulp/api/consumergroups/
|
|
317
|
+
body:
|
|
318
|
+
string: "{\"consumerids\":[],\"id\":\"integration_test_consumer_group\",\"description\":\"Test description.\"}"
|
|
319
|
+
headers:
|
|
320
|
+
Pulp-User:
|
|
321
|
+
- admin
|
|
322
|
+
Accept-Language:
|
|
323
|
+
- en
|
|
324
|
+
Accept-Encoding:
|
|
325
|
+
- gzip, deflate
|
|
326
|
+
Accept:
|
|
327
|
+
- application/json
|
|
328
|
+
Content-Type:
|
|
329
|
+
- application/json
|
|
330
|
+
Authorization:
|
|
331
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="OXL2Keu7BnZqjjQnER9Ndsvvi1IosqxVEhIfmHkEWGg", oauth_signature="wsfRF%2FrkuetQIpxPM33vQTACSM0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290627", oauth_version="1.0"
|
|
332
|
+
Content-Length:
|
|
333
|
+
- "91"
|
|
334
|
+
response:
|
|
335
|
+
status:
|
|
336
|
+
code: 201
|
|
337
|
+
message: Created
|
|
338
|
+
headers:
|
|
339
|
+
Server:
|
|
340
|
+
- Apache/2.2.22 (Fedora)
|
|
341
|
+
Date:
|
|
342
|
+
- Thu, 30 Aug 2012 01:37:07 GMT
|
|
343
|
+
Connection:
|
|
344
|
+
- close
|
|
345
|
+
Content-Type:
|
|
346
|
+
- application/json
|
|
347
|
+
Location:
|
|
348
|
+
- integration_test_consumer_group
|
|
349
|
+
Content-Length:
|
|
350
|
+
- "186"
|
|
351
|
+
body:
|
|
352
|
+
string: "{\"description\": \"Test description.\", \"_ns\": \"consumergroups\", \"key_value_pairs\": {}, \"consumerids\": [], \"_id\": \"integration_test_consumer_group\", \"id\": \"integration_test_consumer_group\"}"
|
|
353
|
+
http_version:
|
|
354
|
+
recorded_at: Thu, 30 Aug 2012 01:37:07 GMT
|
|
355
|
+
- request:
|
|
356
|
+
method: post
|
|
357
|
+
uri: https://localhost/pulp/api/consumergroups/integration_test_consumer_group/installpackagegroups/
|
|
358
|
+
body:
|
|
359
|
+
string: "{\"grpids\":[\"mammals\"],\"scheduled_time\":\"2013-08-29T21:37:07-04:00\"}"
|
|
360
|
+
headers:
|
|
361
|
+
Pulp-User:
|
|
362
|
+
- admin
|
|
363
|
+
Accept-Language:
|
|
364
|
+
- en
|
|
365
|
+
Accept-Encoding:
|
|
366
|
+
- gzip, deflate
|
|
367
|
+
Accept:
|
|
368
|
+
- application/json
|
|
369
|
+
Content-Type:
|
|
370
|
+
- application/json
|
|
371
|
+
Authorization:
|
|
372
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="tAE13oHNyXCPPcWCx2KSQ9DKfVsBSaBWXMIDWvG9UIE", oauth_signature="zaNH8VRnT8xsav3jHUIbTtBZ7i4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290627", oauth_version="1.0"
|
|
373
|
+
Content-Length:
|
|
374
|
+
- "67"
|
|
375
|
+
response:
|
|
376
|
+
status:
|
|
377
|
+
code: 200
|
|
378
|
+
message: OK
|
|
379
|
+
headers:
|
|
380
|
+
Server:
|
|
381
|
+
- Apache/2.2.22 (Fedora)
|
|
382
|
+
Date:
|
|
383
|
+
- Thu, 30 Aug 2012 01:37:07 GMT
|
|
384
|
+
Connection:
|
|
385
|
+
- close
|
|
386
|
+
Content-Type:
|
|
387
|
+
- application/json
|
|
388
|
+
Content-Length:
|
|
389
|
+
- "59"
|
|
390
|
+
body:
|
|
391
|
+
string: "{\"tasks\": [], \"id\": \"27d30446-eb53-4373-a68a-89124388782f\"}"
|
|
392
|
+
http_version:
|
|
393
|
+
recorded_at: Thu, 30 Aug 2012 01:37:07 GMT
|
|
394
|
+
- request:
|
|
395
|
+
method: delete
|
|
396
|
+
uri: https://localhost/pulp/api/consumergroups/integration_test_consumer_group/
|
|
397
|
+
body:
|
|
398
|
+
string: ""
|
|
399
|
+
headers:
|
|
400
|
+
Pulp-User:
|
|
401
|
+
- admin
|
|
402
|
+
Accept-Language:
|
|
403
|
+
- en
|
|
404
|
+
Accept-Encoding:
|
|
405
|
+
- gzip, deflate
|
|
406
|
+
Accept:
|
|
407
|
+
- application/json
|
|
408
|
+
Content-Type:
|
|
409
|
+
- application/json
|
|
410
|
+
Authorization:
|
|
411
|
+
- OAuth oauth_consumer_key="katello", oauth_nonce="oA56YVDQvCRI6ziDvXFhhKo02daDPOJIEo1hYn0QpnQ", oauth_signature="mN7v9Av9kREH579g4SrIxSfaWeU%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290627", oauth_version="1.0"
|
|
412
|
+
response:
|
|
413
|
+
status:
|
|
414
|
+
code: 200
|
|
415
|
+
message: OK
|
|
416
|
+
headers:
|
|
417
|
+
Server:
|
|
418
|
+
- Apache/2.2.22 (Fedora)
|
|
419
|
+
Date:
|
|
420
|
+
- Thu, 30 Aug 2012 01:37:07 GMT
|
|
421
|
+
Connection:
|
|
422
|
+
- close
|
|
423
|
+
Content-Type:
|
|
424
|
+
- application/json
|
|
425
|
+
Content-Length:
|
|
426
|
+
- "4"
|
|
427
|
+
body:
|
|
428
|
+
string: "true"
|
|
429
|
+
http_version:
|
|
430
|
+
recorded_at: Thu, 30 Aug 2012 01:37:07 GMT
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
recorded_with: VCR 2.2.4
|
|
3
|
+
http_interactions:
|
|
4
|
+
- request:
|
|
5
|
+
method: post
|
|
6
|
+
uri: https://localhost/pulp/api/consumers/?owner=
|
|
7
|
+
body:
|
|
8
|
+
string: "{\"key_value_pairs\":{},\"id\":\"integration_test_consumer\",\"description\":\"\"}"
|
|
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_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="sC5RE5ULyUphPhatUrMgKIC8Yrk1rtVkH7M7gdfkYPg", oauth_signature="74JWbwo2MOv1MgEq1wX4dmGpMQU%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290645", oauth_version="1.0"
|
|
22
|
+
Content-Length:
|
|
23
|
+
- "72"
|
|
24
|
+
response:
|
|
25
|
+
status:
|
|
26
|
+
code: 201
|
|
27
|
+
message: Created
|
|
28
|
+
headers:
|
|
29
|
+
Server:
|
|
30
|
+
- Apache/2.2.22 (Fedora)
|
|
31
|
+
Date:
|
|
32
|
+
- Thu, 30 Aug 2012 01:37:25 GMT
|
|
33
|
+
Connection:
|
|
34
|
+
- close
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Location:
|
|
38
|
+
- /pulp/api/consumers/integration_test_consumer/
|
|
39
|
+
Content-Length:
|
|
40
|
+
- "1822"
|
|
41
|
+
body:
|
|
42
|
+
string: "{\"description\": \"\", \"certificate\": \"-----BEGIN RSA PRIVATE KEY-----\\nMIICXgIBAAKBgQC2Mo9W3h749NlRpKSLf4+Lbidyd2EVFB/wg2FU0rqtrv9dxvG7\\nhTvtTeDbCuuADVSh/+PPsj3VYOsJdW6K6zcuYnQRoEbI78mXb17atlt5AZJz6V4x\\n7GZC9+KeTohO9BucgffGKiyxhpXmtNg7Fbp4MvcclFKUpllmN6TM/YbOHQIDAQAB\\nAoGBAJgVciLvvGjRcUm+Jf+vlfGsHE9nKOmAZ/zKngdA88Sg69aqhwOhfllihYwx\\n/ExiVD/5qn6naQfhI7A8ju500xSB2dSRBJCMYyAFl1nDT5WwJVeR3PDX+6WcefnP\\ndIzizkUMaqss8MqanGf811/o+LwtQYogBWpLeip6iwJbC8BhAkEA7J0XTkLuDVXZ\\niCdtKPj23ry6GJ8vO0Ti9+xWUAYnzDF68XCvkqws9n3TFcIIkCHQoNrRyhOiE6V6\\n91HQborAZQJBAMUgGsw9+m4ntHwBDH5Lxk5EOkaAmXYJxwa+qYx5HqDAbA+xlgU3\\nah75EjnKFrkgI5OjLSyyy52SS8BokJu0D1kCQQDG44Ujk77mFrOzbvCi8CMTNzB2\\nYdghydW+8DndKk9ppG3jZQUwFOn2h+1W7LKl9MaZb1XItpgWS5MBMRQy1w7BAkEA\\ngXOp5YK2GOzeK6kMqUvduLw5gN8m6EtXdmhzM5q+sFZtIIlAucBAYoKyo1zBO2WN\\nt4CrQ/VOnfXa5UpF3NqMUQJAJglK6el1ZzFQ9968VFFokgWBvAfImGIBPSu7hsKH\\ndz63fOxHd/Op8RzoP8L1nPkhKpektHaeFWEgmLrdVKcwLw==\\n-----END RSA PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIIB1jCCAT8CAgSbMA0GCSqGSIb3DQEBBQUAMEIxITAfBgNVBAMMGHRpZ2VyLnVz\\nZXJzeXMucmVkaGF0LmNvbTELMAkGA1UEBhMCVVMxEDAOBgNVBAcMB1JhbGVpZ2gw\\nHhcNMTIwODMwMDEzNzI1WhcNMjIwODI4MDEzNzI1WjAkMSIwIAYDVQQDFBlpbnRl\\nZ3JhdGlvbl90ZXN0X2NvbnN1bWVyMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB\\ngQC2Mo9W3h749NlRpKSLf4+Lbidyd2EVFB/wg2FU0rqtrv9dxvG7hTvtTeDbCuuA\\nDVSh/+PPsj3VYOsJdW6K6zcuYnQRoEbI78mXb17atlt5AZJz6V4x7GZC9+KeTohO\\n9BucgffGKiyxhpXmtNg7Fbp4MvcclFKUpllmN6TM/YbOHQIDAQABMA0GCSqGSIb3\\nDQEBBQUAA4GBALFAmlx8QSKowDyqluefXBE+et/iRP24Ejyhbbkd1jxtv0hs/7Pe\\nMVUithE47Max3UCiKk2F77dpZ7SCZc5UTDHhuBT/3orXSqbjFqYwFmkelygQnVBy\\nbA0zDImUJP0IJyUkW5oh8i12T44fvggboHm8MQkFeyFRyIGdDDKdqhit\\n-----END CERTIFICATE-----\", \"_ns\": \"consumers\", \"package_profile\": [], \"capabilities\": {}, \"key_value_pairs\": {}, \"_id\": \"integration_test_consumer\", \"id\": \"integration_test_consumer\", \"repoids\": []}"
|
|
43
|
+
http_version:
|
|
44
|
+
recorded_at: Thu, 30 Aug 2012 01:37:25 GMT
|
|
45
|
+
- request:
|
|
46
|
+
method: put
|
|
47
|
+
uri: https://localhost/pulp/api/consumers/integration_test_consumer/package_profile/
|
|
48
|
+
body:
|
|
49
|
+
string: "{\"package_profile\":[{\"version\":\"0.2\",\"epoch\":0,\"arch\":\"noarch\",\"release\":\"0.7\",\"name\":\"elephant\"}],\"id\":\"integration_test_consumer\"}"
|
|
50
|
+
headers:
|
|
51
|
+
Pulp-User:
|
|
52
|
+
- admin
|
|
53
|
+
Accept-Language:
|
|
54
|
+
- en
|
|
55
|
+
Accept-Encoding:
|
|
56
|
+
- gzip, deflate
|
|
57
|
+
Accept:
|
|
58
|
+
- application/json
|
|
59
|
+
Content-Type:
|
|
60
|
+
- application/json
|
|
61
|
+
Authorization:
|
|
62
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="ulXarIJyhKtgpHQIc65iQQe1CSZUpiNKhHBJFar4Q", oauth_signature="p1%2FGBzMUqfgUStdae4sZU4WQpek%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290645", oauth_version="1.0"
|
|
63
|
+
Content-Length:
|
|
64
|
+
- "132"
|
|
65
|
+
response:
|
|
66
|
+
status:
|
|
67
|
+
code: 200
|
|
68
|
+
message: OK
|
|
69
|
+
headers:
|
|
70
|
+
Server:
|
|
71
|
+
- Apache/2.2.22 (Fedora)
|
|
72
|
+
Date:
|
|
73
|
+
- Thu, 30 Aug 2012 01:37:25 GMT
|
|
74
|
+
Connection:
|
|
75
|
+
- close
|
|
76
|
+
Content-Type:
|
|
77
|
+
- application/json
|
|
78
|
+
Content-Length:
|
|
79
|
+
- "4"
|
|
80
|
+
body:
|
|
81
|
+
string: "true"
|
|
82
|
+
http_version:
|
|
83
|
+
recorded_at: Thu, 30 Aug 2012 01:37:25 GMT
|
|
84
|
+
- request:
|
|
85
|
+
method: delete
|
|
86
|
+
uri: https://localhost/pulp/api/consumers/integration_test_consumer/
|
|
87
|
+
body:
|
|
88
|
+
string: ""
|
|
89
|
+
headers:
|
|
90
|
+
Pulp-User:
|
|
91
|
+
- admin
|
|
92
|
+
Accept-Language:
|
|
93
|
+
- en
|
|
94
|
+
Accept-Encoding:
|
|
95
|
+
- gzip, deflate
|
|
96
|
+
Accept:
|
|
97
|
+
- application/json
|
|
98
|
+
Content-Type:
|
|
99
|
+
- application/json
|
|
100
|
+
Authorization:
|
|
101
|
+
- OAuth oauth_consumer_key="katello", oauth_nonce="XSB7mfvVmRlh58pk3a9mJfHgSskkymT02OhKAuEzg", oauth_signature="%2BhCv7XJnN80Swbs3QVLkEFZ%2FZYA%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346290645", oauth_version="1.0"
|
|
102
|
+
response:
|
|
103
|
+
status:
|
|
104
|
+
code: 200
|
|
105
|
+
message: OK
|
|
106
|
+
headers:
|
|
107
|
+
Server:
|
|
108
|
+
- Apache/2.2.22 (Fedora)
|
|
109
|
+
Date:
|
|
110
|
+
- Thu, 30 Aug 2012 01:37:25 GMT
|
|
111
|
+
Connection:
|
|
112
|
+
- close
|
|
113
|
+
Content-Type:
|
|
114
|
+
- application/json
|
|
115
|
+
Content-Length:
|
|
116
|
+
- "4"
|
|
117
|
+
body:
|
|
118
|
+
string: "true"
|
|
119
|
+
http_version:
|
|
120
|
+
recorded_at: Thu, 30 Aug 2012 01:37:25 GMT
|