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,215 @@
|
|
|
1
|
+
---
|
|
2
|
+
recorded_with: VCR 2.2.4
|
|
3
|
+
http_interactions:
|
|
4
|
+
- request:
|
|
5
|
+
method: post
|
|
6
|
+
uri: https://localhost/pulp/api/repositories/integration_test_id/generate_metadata/
|
|
7
|
+
body:
|
|
8
|
+
string: ""
|
|
9
|
+
headers:
|
|
10
|
+
Content-Length:
|
|
11
|
+
- "0"
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*; q=0.5, application/xml"
|
|
14
|
+
Accept-Language:
|
|
15
|
+
- en
|
|
16
|
+
Authorization:
|
|
17
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="OXtT9p2xAyLSO2r5DgSfssjqzqtGs4zl1VraN0", oauth_signature="as4O0vvDLzkdnTPbowNUzmx44KE%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346291348", oauth_version="1.0"
|
|
18
|
+
Pulp-User:
|
|
19
|
+
- admin
|
|
20
|
+
Content-Type:
|
|
21
|
+
- application/json
|
|
22
|
+
Accept-Encoding:
|
|
23
|
+
- gzip, deflate
|
|
24
|
+
response:
|
|
25
|
+
status:
|
|
26
|
+
code: 202
|
|
27
|
+
message: Accepted
|
|
28
|
+
headers:
|
|
29
|
+
Content-Length:
|
|
30
|
+
- "358"
|
|
31
|
+
Server:
|
|
32
|
+
- Apache/2.2.22 (Fedora)
|
|
33
|
+
Date:
|
|
34
|
+
- Thu, 30 Aug 2012 01:49:08 GMT
|
|
35
|
+
Connection:
|
|
36
|
+
- close
|
|
37
|
+
Content-Type:
|
|
38
|
+
- application/json
|
|
39
|
+
body:
|
|
40
|
+
string: "{\"scheduled_time\": \"2012-08-30T01:49:08Z\", \"exception\": null, \"traceback\": null, \"job_id\": null, \"class_name\": \"RepoApi\", \"start_time\": null, \"args\": [\"integration_test_id\"], \"method_name\": \"_generate_metadata\", \"finish_time\": null, \"state\": \"waiting\", \"result\": null, \"scheduler\": \"immediate\", \"progress\": null, \"id\": \"e3658359-f244-11e1-b3ec-bc305bcab086\"}"
|
|
41
|
+
http_version:
|
|
42
|
+
recorded_at: Thu, 30 Aug 2012 01:49:08 GMT
|
|
43
|
+
- request:
|
|
44
|
+
method: post
|
|
45
|
+
uri: https://localhost/pulp/api/repositories/integration_test_id/sync/
|
|
46
|
+
body:
|
|
47
|
+
string: "{\"threads\":4}"
|
|
48
|
+
headers:
|
|
49
|
+
Content-Length:
|
|
50
|
+
- "13"
|
|
51
|
+
Accept:
|
|
52
|
+
- "*/*; q=0.5, application/xml"
|
|
53
|
+
Accept-Language:
|
|
54
|
+
- en
|
|
55
|
+
Authorization:
|
|
56
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="9NOsELIelMKxUmgE74OP1c6gV3oba3sHGfF2UeMkI", oauth_signature="a43DwIwvWe%2FTLWEnxqphpZblYNk%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346291356", oauth_version="1.0"
|
|
57
|
+
Pulp-User:
|
|
58
|
+
- admin
|
|
59
|
+
Content-Type:
|
|
60
|
+
- application/json
|
|
61
|
+
Accept-Encoding:
|
|
62
|
+
- gzip, deflate
|
|
63
|
+
response:
|
|
64
|
+
status:
|
|
65
|
+
code: 202
|
|
66
|
+
message: Accepted
|
|
67
|
+
headers:
|
|
68
|
+
Content-Length:
|
|
69
|
+
- "340"
|
|
70
|
+
Server:
|
|
71
|
+
- Apache/2.2.22 (Fedora)
|
|
72
|
+
Date:
|
|
73
|
+
- Thu, 30 Aug 2012 01:49:16 GMT
|
|
74
|
+
Connection:
|
|
75
|
+
- close
|
|
76
|
+
Content-Type:
|
|
77
|
+
- application/json
|
|
78
|
+
body:
|
|
79
|
+
string: "{\"scheduled_time\": \"2012-08-30T01:49:16Z\", \"exception\": null, \"traceback\": null, \"job_id\": null, \"class_name\": null, \"start_time\": null, \"args\": [\"integration_test_id\"], \"method_name\": \"_sync\", \"finish_time\": null, \"state\": \"waiting\", \"result\": null, \"scheduler\": \"immediate\", \"progress\": null, \"id\": \"e83a1b82-f244-11e1-9394-bc305bcab086\"}"
|
|
80
|
+
http_version:
|
|
81
|
+
recorded_at: Thu, 30 Aug 2012 01:49:16 GMT
|
|
82
|
+
- request:
|
|
83
|
+
method: get
|
|
84
|
+
uri: https://localhost/pulp/api/repositories/integration_test_id/sync/
|
|
85
|
+
body:
|
|
86
|
+
string: ""
|
|
87
|
+
headers:
|
|
88
|
+
Accept:
|
|
89
|
+
- "*/*; q=0.5, application/xml"
|
|
90
|
+
Accept-Language:
|
|
91
|
+
- en
|
|
92
|
+
Authorization:
|
|
93
|
+
- OAuth oauth_consumer_key="katello", oauth_nonce="XBahcO0fPAy38d3tayV1q4cYb2FZ8Go4tihqmr3Q", oauth_signature="CwDNBz9917S3QlJO2KKqXKvuMsQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346291369", oauth_version="1.0"
|
|
94
|
+
Pulp-User:
|
|
95
|
+
- admin
|
|
96
|
+
Content-Type:
|
|
97
|
+
- application/json
|
|
98
|
+
Accept-Encoding:
|
|
99
|
+
- gzip, deflate
|
|
100
|
+
response:
|
|
101
|
+
status:
|
|
102
|
+
code: 200
|
|
103
|
+
message: OK
|
|
104
|
+
headers:
|
|
105
|
+
Content-Length:
|
|
106
|
+
- "857"
|
|
107
|
+
Server:
|
|
108
|
+
- Apache/2.2.22 (Fedora)
|
|
109
|
+
Date:
|
|
110
|
+
- Thu, 30 Aug 2012 01:49:29 GMT
|
|
111
|
+
Connection:
|
|
112
|
+
- close
|
|
113
|
+
Content-Type:
|
|
114
|
+
- application/json
|
|
115
|
+
body:
|
|
116
|
+
string: "[{\"scheduled_time\": null, \"exception\": null, \"traceback\": null, \"job_id\": null, \"class_name\": null, \"start_time\": \"2012-08-29T21:49:24-04:00\", \"args\": [\"integration_test_id\"], \"method_name\": \"_sync\", \"finish_time\": \"2012-08-29T21:49:26-04:00\", \"state\": \"finished\", \"result\": true, \"scheduler\": \"immediate\", \"progress\": {\"status\": \"running\", \"size_total\": 17872, \"num_download\": 2, \"items_left\": 0, \"items_total\": 10, \"step\": \"Running Createrepo\", \"num_success\": 10, \"item_name\": \"\", \"item_type\": \"\", \"size_left\": 0, \"details\": {\"tree_file\": {\"num_success\": 2, \"total_count\": 2, \"items_left\": 0, \"size_left\": 0, \"num_error\": 0, \"total_size_bytes\": 0}, \"rpm\": {\"num_success\": 8, \"total_count\": 8, \"items_left\": 0, \"size_left\": 0, \"num_error\": 0, \"total_size_bytes\": 17872}}, \"error_details\": [], \"num_error\": 0}, \"id\": \"ed36e4fa-f244-11e1-b444-bc305bcab086\"}]"
|
|
117
|
+
http_version:
|
|
118
|
+
recorded_at: Thu, 30 Aug 2012 01:49:29 GMT
|
|
119
|
+
- request:
|
|
120
|
+
method: get
|
|
121
|
+
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/
|
|
122
|
+
body:
|
|
123
|
+
string: ""
|
|
124
|
+
headers:
|
|
125
|
+
Accept:
|
|
126
|
+
- application/json
|
|
127
|
+
Content-Type:
|
|
128
|
+
- application/json
|
|
129
|
+
Accept-Encoding:
|
|
130
|
+
- gzip, deflate
|
|
131
|
+
response:
|
|
132
|
+
status:
|
|
133
|
+
code: 200
|
|
134
|
+
message: OK
|
|
135
|
+
headers:
|
|
136
|
+
Content-Length:
|
|
137
|
+
- "265"
|
|
138
|
+
Server:
|
|
139
|
+
- Apache/2.2.22 (Fedora)
|
|
140
|
+
Date:
|
|
141
|
+
- Mon, 10 Sep 2012 02:11:39 GMT
|
|
142
|
+
Connection:
|
|
143
|
+
- close
|
|
144
|
+
Content-Type:
|
|
145
|
+
- application/json
|
|
146
|
+
body:
|
|
147
|
+
string: "{\"scratchpad\": {}, \"display_name\": \"integration_test_id\", \"description\": null, \"_ns\": \"repos\", \"notes\": {}, \"content_unit_count\": 0, \"_id\": {\"$oid\": \"504d4c4aec6a6d6976001998\"}, \"id\": \"integration_test_id\", \"_href\": \"/pulp/api/v2/repositories/integration_test_id/\"}"
|
|
148
|
+
http_version:
|
|
149
|
+
recorded_at: Mon, 10 Sep 2012 02:11:39 GMT
|
|
150
|
+
- request:
|
|
151
|
+
method: get
|
|
152
|
+
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/?details=true
|
|
153
|
+
body:
|
|
154
|
+
string: ""
|
|
155
|
+
headers:
|
|
156
|
+
Accept:
|
|
157
|
+
- application/json
|
|
158
|
+
Content-Type:
|
|
159
|
+
- application/json
|
|
160
|
+
Accept-Encoding:
|
|
161
|
+
- gzip, deflate
|
|
162
|
+
response:
|
|
163
|
+
status:
|
|
164
|
+
code: 200
|
|
165
|
+
message: OK
|
|
166
|
+
headers:
|
|
167
|
+
Content-Length:
|
|
168
|
+
- "627"
|
|
169
|
+
Server:
|
|
170
|
+
- Apache/2.2.22 (Fedora)
|
|
171
|
+
Date:
|
|
172
|
+
- Mon, 10 Sep 2012 02:27:24 GMT
|
|
173
|
+
Connection:
|
|
174
|
+
- close
|
|
175
|
+
Content-Type:
|
|
176
|
+
- application/json
|
|
177
|
+
body:
|
|
178
|
+
string: "{\"scratchpad\": {}, \"display_name\": \"integration_test_id\", \"description\": null, \"_ns\": \"repos\", \"notes\": {}, \"content_unit_count\": 0, \"_id\": {\"$oid\": \"504d4fe3ec6a6d29b4000029\"}, \"id\": \"integration_test_id\", \"_href\": \"/pulp/api/v2/repositories/integration_test_id/\", \"importers\": [{\"repo_id\": \"integration_test_id\", \"_ns\": \"repo_importers\", \"importer_type_id\": \"yum_importer\", \"last_sync\": null, \"scratchpad\": null, \"scheduled_syncs\": [], \"_id\": {\"$oid\": \"504d4fe3ec6a6d29b400002a\"}, \"config\": {\"feed_url\": \"file:///home/ehelms/workspace/runcible/test/integration/resources/helpers\"}, \"id\": \"yum_importer\"}], \"distributors\": []}"
|
|
179
|
+
http_version:
|
|
180
|
+
recorded_at: Mon, 10 Sep 2012 02:27:24 GMT
|
|
181
|
+
- request:
|
|
182
|
+
method: post
|
|
183
|
+
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/actions/sync/
|
|
184
|
+
body:
|
|
185
|
+
string: "{}"
|
|
186
|
+
headers:
|
|
187
|
+
Content-Length:
|
|
188
|
+
- "2"
|
|
189
|
+
Accept:
|
|
190
|
+
- application/json
|
|
191
|
+
Content-Type:
|
|
192
|
+
- application/json
|
|
193
|
+
Accept-Encoding:
|
|
194
|
+
- gzip, deflate
|
|
195
|
+
response:
|
|
196
|
+
status:
|
|
197
|
+
code: 202
|
|
198
|
+
message: Accepted
|
|
199
|
+
headers:
|
|
200
|
+
Content-Length:
|
|
201
|
+
- "445"
|
|
202
|
+
Content-Encoding:
|
|
203
|
+
- utf-8
|
|
204
|
+
Server:
|
|
205
|
+
- Apache/2.2.22 (Fedora)
|
|
206
|
+
Date:
|
|
207
|
+
- Mon, 10 Sep 2012 05:57:05 GMT
|
|
208
|
+
Connection:
|
|
209
|
+
- close
|
|
210
|
+
Content-Type:
|
|
211
|
+
- application/json
|
|
212
|
+
body:
|
|
213
|
+
string: "[{\"task_group_id\": \"7b3b6eda-1207-45d4-9ef0-83ebe3802680\", \"exception\": null, \"_href\": \"/pulp/api/v2/task_groups/7b3b6eda-1207-45d4-9ef0-83ebe3802680/\", \"task_id\": \"59852119-fb0c-11e1-aa7e-5254004526ad\", \"tags\": [\"pulp:repository:integration_test_id\", \"pulp:action:sync\"], \"reasons\": [], \"start_time\": null, \"traceback\": null, \"schedule_id\": null, \"finish_time\": null, \"state\": \"waiting\", \"result\": null, \"progress\": {}, \"response\": \"accepted\"}]"
|
|
214
|
+
http_version:
|
|
215
|
+
recorded_at: Mon, 10 Sep 2012 05:57:05 GMT
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
recorded_with: VCR 2.2.4
|
|
3
|
+
http_interactions:
|
|
4
|
+
- request:
|
|
5
|
+
method: post
|
|
6
|
+
uri: https://admin:admin@localhost/pulp/api/v2/roles/super-users/users
|
|
7
|
+
body:
|
|
8
|
+
string: "{\"login\":\"integration_test_user\"}"
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip, deflate
|
|
12
|
+
Content-Type:
|
|
13
|
+
- application/json
|
|
14
|
+
Content-Length:
|
|
15
|
+
- "33"
|
|
16
|
+
Accept:
|
|
17
|
+
- application/json
|
|
18
|
+
response:
|
|
19
|
+
status:
|
|
20
|
+
code: 404
|
|
21
|
+
message: Not Found
|
|
22
|
+
headers:
|
|
23
|
+
Server:
|
|
24
|
+
- Apache/2.2.22 (Fedora)
|
|
25
|
+
Content-Type:
|
|
26
|
+
- text/html; charset=UTF-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- "9"
|
|
29
|
+
Connection:
|
|
30
|
+
- close
|
|
31
|
+
Date:
|
|
32
|
+
- Sun, 09 Sep 2012 04:24:17 GMT
|
|
33
|
+
body:
|
|
34
|
+
string: not found
|
|
35
|
+
http_version:
|
|
36
|
+
recorded_at: Sun, 09 Sep 2012 04:24:17 GMT
|
|
37
|
+
- request:
|
|
38
|
+
method: post
|
|
39
|
+
uri: https://admin:admin@localhost/pulp/api/v2roles/super-users/users
|
|
40
|
+
body:
|
|
41
|
+
string: "{\"login\":\"integration_test_user\"}"
|
|
42
|
+
headers:
|
|
43
|
+
Accept-Encoding:
|
|
44
|
+
- gzip, deflate
|
|
45
|
+
Content-Type:
|
|
46
|
+
- application/json
|
|
47
|
+
Content-Length:
|
|
48
|
+
- "33"
|
|
49
|
+
Accept:
|
|
50
|
+
- application/json
|
|
51
|
+
response:
|
|
52
|
+
status:
|
|
53
|
+
code: 404
|
|
54
|
+
message: Not Found
|
|
55
|
+
headers:
|
|
56
|
+
Server:
|
|
57
|
+
- Apache/2.2.22 (Fedora)
|
|
58
|
+
Content-Type:
|
|
59
|
+
- text/html; charset=UTF-8
|
|
60
|
+
Content-Length:
|
|
61
|
+
- "9"
|
|
62
|
+
Connection:
|
|
63
|
+
- close
|
|
64
|
+
Date:
|
|
65
|
+
- Sun, 09 Sep 2012 04:24:52 GMT
|
|
66
|
+
body:
|
|
67
|
+
string: not found
|
|
68
|
+
http_version:
|
|
69
|
+
recorded_at: Sun, 09 Sep 2012 04:24:52 GMT
|
|
70
|
+
- request:
|
|
71
|
+
method: post
|
|
72
|
+
uri: https://admin:admin@localhost/pulp/api/v2/roles/super-users//users/
|
|
73
|
+
body:
|
|
74
|
+
string: "{\"login\":\"integration_test_user\"}"
|
|
75
|
+
headers:
|
|
76
|
+
Content-Type:
|
|
77
|
+
- application/json
|
|
78
|
+
Accept-Encoding:
|
|
79
|
+
- gzip, deflate
|
|
80
|
+
Content-Length:
|
|
81
|
+
- "33"
|
|
82
|
+
Accept:
|
|
83
|
+
- application/json
|
|
84
|
+
response:
|
|
85
|
+
status:
|
|
86
|
+
code: 200
|
|
87
|
+
message: OK
|
|
88
|
+
headers:
|
|
89
|
+
Server:
|
|
90
|
+
- Apache/2.2.22 (Fedora)
|
|
91
|
+
Content-Type:
|
|
92
|
+
- application/json
|
|
93
|
+
Connection:
|
|
94
|
+
- close
|
|
95
|
+
Content-Length:
|
|
96
|
+
- "4"
|
|
97
|
+
Date:
|
|
98
|
+
- Mon, 10 Sep 2012 01:18:30 GMT
|
|
99
|
+
body:
|
|
100
|
+
string: "null"
|
|
101
|
+
http_version:
|
|
102
|
+
recorded_at: Mon, 10 Sep 2012 01:18:30 GMT
|
|
103
|
+
- request:
|
|
104
|
+
method: delete
|
|
105
|
+
uri: https://admin:admin@localhost/pulp/api/v2/roles/super-users//users/integration_test_user/
|
|
106
|
+
body:
|
|
107
|
+
string: ""
|
|
108
|
+
headers:
|
|
109
|
+
Content-Type:
|
|
110
|
+
- application/json
|
|
111
|
+
Accept-Encoding:
|
|
112
|
+
- gzip, deflate
|
|
113
|
+
Accept:
|
|
114
|
+
- application/json
|
|
115
|
+
response:
|
|
116
|
+
status:
|
|
117
|
+
code: 200
|
|
118
|
+
message: OK
|
|
119
|
+
headers:
|
|
120
|
+
Server:
|
|
121
|
+
- Apache/2.2.22 (Fedora)
|
|
122
|
+
Content-Type:
|
|
123
|
+
- application/json
|
|
124
|
+
Connection:
|
|
125
|
+
- close
|
|
126
|
+
Content-Length:
|
|
127
|
+
- "4"
|
|
128
|
+
Date:
|
|
129
|
+
- Mon, 10 Sep 2012 01:18:30 GMT
|
|
130
|
+
body:
|
|
131
|
+
string: "null"
|
|
132
|
+
http_version:
|
|
133
|
+
recorded_at: Mon, 10 Sep 2012 01:18:30 GMT
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://localhost/pulp/api/roles/super-users//add/
|
|
6
|
+
body:
|
|
7
|
+
string: "{\"username\":\"integration_test_user\"}"
|
|
8
|
+
headers:
|
|
9
|
+
Authorization:
|
|
10
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="KzEQH8n4h3eLYabk61UmEibiv3rPD2iB1F7gViA", oauth_signature="s7EAE1R%2Fo1ImCkf4FrkkUst0kwo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346291179", oauth_version="1.0"
|
|
11
|
+
Accept-Encoding:
|
|
12
|
+
- gzip, deflate
|
|
13
|
+
Pulp-User:
|
|
14
|
+
- admin
|
|
15
|
+
Content-Length:
|
|
16
|
+
- "36"
|
|
17
|
+
Accept-Language:
|
|
18
|
+
- en
|
|
19
|
+
Accept:
|
|
20
|
+
- "*/*; q=0.5, application/xml"
|
|
21
|
+
Content-Type:
|
|
22
|
+
- application/json
|
|
23
|
+
response:
|
|
24
|
+
status:
|
|
25
|
+
code: 200
|
|
26
|
+
message: OK
|
|
27
|
+
headers:
|
|
28
|
+
Server:
|
|
29
|
+
- Apache/2.2.22 (Fedora)
|
|
30
|
+
Connection:
|
|
31
|
+
- close
|
|
32
|
+
Content-Length:
|
|
33
|
+
- "4"
|
|
34
|
+
Content-Type:
|
|
35
|
+
- application/json
|
|
36
|
+
Date:
|
|
37
|
+
- Thu, 30 Aug 2012 01:46:19 GMT
|
|
38
|
+
body:
|
|
39
|
+
string: "true"
|
|
40
|
+
http_version:
|
|
41
|
+
recorded_at: Thu, 30 Aug 2012 01:46:19 GMT
|
|
42
|
+
- request:
|
|
43
|
+
method: post
|
|
44
|
+
uri: https://localhost/pulp/api/roles/super-users//remove/
|
|
45
|
+
body:
|
|
46
|
+
string: "{\"username\":\"integration_test_user\"}"
|
|
47
|
+
headers:
|
|
48
|
+
Authorization:
|
|
49
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="G4C8yJDGSXosThUu9FCgm35pqjIwWa9uoqdWcu8SsBA", oauth_signature="7YV4pb7LKncgJU4mss1DX1pBSXg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346291179", oauth_version="1.0"
|
|
50
|
+
Accept-Encoding:
|
|
51
|
+
- gzip, deflate
|
|
52
|
+
Pulp-User:
|
|
53
|
+
- admin
|
|
54
|
+
Content-Length:
|
|
55
|
+
- "36"
|
|
56
|
+
Accept-Language:
|
|
57
|
+
- en
|
|
58
|
+
Accept:
|
|
59
|
+
- "*/*; q=0.5, application/xml"
|
|
60
|
+
Content-Type:
|
|
61
|
+
- application/json
|
|
62
|
+
response:
|
|
63
|
+
status:
|
|
64
|
+
code: 200
|
|
65
|
+
message: OK
|
|
66
|
+
headers:
|
|
67
|
+
Server:
|
|
68
|
+
- Apache/2.2.22 (Fedora)
|
|
69
|
+
Connection:
|
|
70
|
+
- close
|
|
71
|
+
Content-Length:
|
|
72
|
+
- "4"
|
|
73
|
+
Content-Type:
|
|
74
|
+
- application/json
|
|
75
|
+
Date:
|
|
76
|
+
- Thu, 30 Aug 2012 01:46:19 GMT
|
|
77
|
+
body:
|
|
78
|
+
string: "true"
|
|
79
|
+
http_version:
|
|
80
|
+
recorded_at: Thu, 30 Aug 2012 01:46:19 GMT
|
|
81
|
+
- request:
|
|
82
|
+
method: post
|
|
83
|
+
uri: https://localhost/pulp/api/roles/super-users//remove/
|
|
84
|
+
body:
|
|
85
|
+
string: "{\"username\":\"integration_test_user\"}"
|
|
86
|
+
headers:
|
|
87
|
+
Authorization:
|
|
88
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="wlXvYf7gfzAnF8QweD5IMfMXbq9vCEOivyibgmfl1g", oauth_signature="BfFKztTi%2FecFCartIaoaKLoaeEg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1346291179", oauth_version="1.0"
|
|
89
|
+
Accept-Encoding:
|
|
90
|
+
- gzip, deflate
|
|
91
|
+
Pulp-User:
|
|
92
|
+
- admin
|
|
93
|
+
Content-Length:
|
|
94
|
+
- "36"
|
|
95
|
+
Accept-Language:
|
|
96
|
+
- en
|
|
97
|
+
Accept:
|
|
98
|
+
- "*/*; q=0.5, application/xml"
|
|
99
|
+
Content-Type:
|
|
100
|
+
- application/json
|
|
101
|
+
response:
|
|
102
|
+
status:
|
|
103
|
+
code: 200
|
|
104
|
+
message: OK
|
|
105
|
+
headers:
|
|
106
|
+
Server:
|
|
107
|
+
- Apache/2.2.22 (Fedora)
|
|
108
|
+
Connection:
|
|
109
|
+
- close
|
|
110
|
+
Content-Length:
|
|
111
|
+
- "5"
|
|
112
|
+
Content-Type:
|
|
113
|
+
- application/json
|
|
114
|
+
Date:
|
|
115
|
+
- Thu, 30 Aug 2012 01:46:19 GMT
|
|
116
|
+
body:
|
|
117
|
+
string: "false"
|
|
118
|
+
http_version:
|
|
119
|
+
recorded_at: Thu, 30 Aug 2012 01:46:19 GMT
|
|
120
|
+
recorded_with: VCR 2.2.4
|