deadwood 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/COPYING +19 -0
- data/README.md +19 -0
- data/Rakefile +65 -0
- data/examples/deadwood-config.yml +5 -0
- data/lib/deadwood.rb +45 -0
- data/lib/deadwood/active_resource_oauth_client.rb +74 -0
- data/lib/deadwood/model/activation_key.rb +24 -0
- data/lib/deadwood/model/base.rb +82 -0
- data/lib/deadwood/model/changeset.rb +28 -0
- data/lib/deadwood/model/consumer.rb +18 -0
- data/lib/deadwood/model/crl.rb +18 -0
- data/lib/deadwood/model/entitlement.rb +18 -0
- data/lib/deadwood/model/environment.rb +40 -0
- data/lib/deadwood/model/errata.rb +18 -0
- data/lib/deadwood/model/gpg_key.rb +37 -0
- data/lib/deadwood/model/organization.rb +21 -0
- data/lib/deadwood/model/pool.rb +18 -0
- data/lib/deadwood/model/product.rb +33 -0
- data/lib/deadwood/model/provider.rb +24 -0
- data/lib/deadwood/model/repository.rb +18 -0
- data/lib/deadwood/model/role.rb +38 -0
- data/lib/deadwood/model/status.rb +18 -0
- data/lib/deadwood/model/subscription.rb +18 -0
- data/lib/deadwood/model/system.rb +24 -0
- data/lib/deadwood/model/system_group.rb +33 -0
- data/lib/deadwood/model/task.rb +18 -0
- data/lib/deadwood/model/template.rb +24 -0
- data/lib/deadwood/model/user.rb +28 -0
- data/lib/deadwood/model/version.rb +18 -0
- data/rake/rpmtask.rb +126 -0
- data/spec/models/activation_key_spec.rb +35 -0
- data/spec/models/base_spec.rb +30 -0
- data/spec/models/changeset_spec.rb +38 -0
- data/spec/models/crl_spec.rb +25 -0
- data/spec/models/environment_spec.rb +54 -0
- data/spec/models/gpg_key_spec.rb +30 -0
- data/spec/models/organization_spec.rb +75 -0
- data/spec/models/product_spec.rb +38 -0
- data/spec/models/provider_spec.rb +72 -0
- data/spec/models/repository_spec.rb +36 -0
- data/spec/models/role_spec.rb +57 -0
- data/spec/models/system_group_spec.rb +31 -0
- data/spec/models/task_spec.rb +26 -0
- data/spec/models/template_spec.rb +37 -0
- data/spec/models/user_spec.rb +53 -0
- data/spec/spec_helper.rb +50 -0
- data/spec/vcr/cassettes/create_activation_key.yml +255 -0
- data/spec/vcr/cassettes/create_changeset.yml +257 -0
- data/spec/vcr/cassettes/create_find_all_environment.yml +130 -0
- data/spec/vcr/cassettes/create_find_single_environment.yml +130 -0
- data/spec/vcr/cassettes/create_gpg_key.yml +173 -0
- data/spec/vcr/cassettes/create_provider_for_default_org.yml +171 -0
- data/spec/vcr/cassettes/create_repository.yml +261 -0
- data/spec/vcr/cassettes/create_role.yml +130 -0
- data/spec/vcr/cassettes/create_system.yml +171 -0
- data/spec/vcr/cassettes/create_template.yml +253 -0
- data/spec/vcr/cassettes/create_user.yml +130 -0
- data/spec/vcr/cassettes/create_user_role.yml +263 -0
- data/spec/vcr/cassettes/find_ACME_Corporation.yml +44 -0
- data/spec/vcr/cassettes/find_admin.yml +44 -0
- data/spec/vcr/cassettes/find_crl.yml +62 -0
- data/spec/vcr/cassettes/find_template.yml +44 -0
- data/spec/vcr/cassettes/find_users.yml +44 -0
- data/spec/vcr/cassettes/organization_1_exists.yml +85 -0
- data/spec/vcr/cassettes/organization_create.yml +128 -0
- data/spec/vcr/cassettes/organization_default_exists.yml +44 -0
- data/spec/vcr/cassettes/organization_exists.yml +44 -0
- data/spec/vcr/cassettes/organization_update.yml +130 -0
- data/spec/vcr/cassettes/provider_1_exists.yml +44 -0
- data/spec/vcr/cassettes/providers_all_exists.yml +44 -0
- data/spec/vcr/cassettes/read_products.yml +257 -0
- data/spec/vcr/cassettes/update_environment_name_description.yml +216 -0
- data/spec/vcr/cassettes/update_provider_for_org.yml +175 -0
- data/spec/vcr/cassettes/update_role.yml +175 -0
- data/spec/vcr/cassettes/update_user.yml +130 -0
- data/spec/vcr_setup.rb +46 -0
- metadata +242 -0
@@ -0,0 +1,216 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/environments?name=Test&organization_id=ACME_Corporation&prior=1
|
6
|
+
body:
|
7
|
+
string: "{\"environment\":{\"name\":\"Test\",\"prior\":1}}"
|
8
|
+
headers:
|
9
|
+
Content-Length:
|
10
|
+
- "41"
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
Http-Katello-User:
|
14
|
+
- admin
|
15
|
+
User-Agent:
|
16
|
+
- OAuth gem v0.4.6
|
17
|
+
Authorization:
|
18
|
+
- OAuth oauth_body_hash="lCe2lMYXISkHQNPzaGPJ0yiK97Y%3D", oauth_consumer_key="cloud_forms", oauth_nonce="7V29zz1CdIUk3QuqjQ1cHGdASKGStDg7mZJF1q5w", oauth_signature="cUtTAtZBtuD%2FnUHHEN4Cu68w%2Brg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486925", oauth_version="1.0"
|
19
|
+
Accept:
|
20
|
+
- "*/*"
|
21
|
+
response:
|
22
|
+
status:
|
23
|
+
code: 200
|
24
|
+
message: OK
|
25
|
+
headers:
|
26
|
+
X-Candlepin-Version:
|
27
|
+
- katello/0.2.44-1.el6
|
28
|
+
Content-Type:
|
29
|
+
- application/json; charset=utf-8
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0, private, must-revalidate
|
32
|
+
Etag:
|
33
|
+
- "\"26697e0679ceac86c89714afe375150c\""
|
34
|
+
Server:
|
35
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
36
|
+
X-Runtime:
|
37
|
+
- "0.256188"
|
38
|
+
Transfer-Encoding:
|
39
|
+
- chunked
|
40
|
+
X-Ua-Compatible:
|
41
|
+
- IE=Edge,chrome=1
|
42
|
+
Date:
|
43
|
+
- Mon, 20 Aug 2012 18:22:04 GMT
|
44
|
+
body:
|
45
|
+
string: "{\"library\":false,\"prior\":\"Library\",\"id\":161,\"organization\":\"ACME_Corporation\",\"organization_id\":1,\"updated_at\":\"2012-08-20T18:22:04Z\",\"name\":\"Test\",\"description\":null,\"prior_id\":1,\"created_at\":\"2012-08-20T18:22:04Z\"}"
|
46
|
+
http_version:
|
47
|
+
recorded_at: Mon, 20 Aug 2012 18:22:05 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://10.11.230.105/katello/api/environments/161
|
51
|
+
body:
|
52
|
+
string: ""
|
53
|
+
headers:
|
54
|
+
Http-Katello-User:
|
55
|
+
- admin
|
56
|
+
User-Agent:
|
57
|
+
- OAuth gem v0.4.6
|
58
|
+
Authorization:
|
59
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="ZQRaPPVcqwJBfRWzXc5IWDX5NmoAIZpyaBm7ezfoaCk", oauth_signature="XGCo0OPMY%2BdHVywRUgD2vsSWzWQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486925", oauth_version="1.0"
|
60
|
+
Accept:
|
61
|
+
- application/json
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 200
|
65
|
+
message: OK
|
66
|
+
headers:
|
67
|
+
X-Candlepin-Version:
|
68
|
+
- katello/0.2.44-1.el6
|
69
|
+
Content-Type:
|
70
|
+
- application/json; charset=utf-8
|
71
|
+
Cache-Control:
|
72
|
+
- max-age=0, private, must-revalidate
|
73
|
+
Etag:
|
74
|
+
- "\"26697e0679ceac86c89714afe375150c\""
|
75
|
+
Server:
|
76
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
77
|
+
X-Runtime:
|
78
|
+
- "0.020771"
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
X-Ua-Compatible:
|
82
|
+
- IE=Edge,chrome=1
|
83
|
+
Date:
|
84
|
+
- Mon, 20 Aug 2012 18:22:04 GMT
|
85
|
+
body:
|
86
|
+
string: "{\"library\":false,\"prior\":\"Library\",\"id\":161,\"organization\":\"ACME_Corporation\",\"organization_id\":1,\"updated_at\":\"2012-08-20T18:22:04Z\",\"name\":\"Test\",\"description\":null,\"prior_id\":1,\"created_at\":\"2012-08-20T18:22:04Z\"}"
|
87
|
+
http_version:
|
88
|
+
recorded_at: Mon, 20 Aug 2012 18:22:05 GMT
|
89
|
+
- request:
|
90
|
+
method: put
|
91
|
+
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/environments/161
|
92
|
+
body:
|
93
|
+
string: "{\"environment\":{\"description\":\"Test update\"}}"
|
94
|
+
headers:
|
95
|
+
Content-Length:
|
96
|
+
- "45"
|
97
|
+
Content-Type:
|
98
|
+
- application/json
|
99
|
+
Http-Katello-User:
|
100
|
+
- admin
|
101
|
+
User-Agent:
|
102
|
+
- OAuth gem v0.4.6
|
103
|
+
Authorization:
|
104
|
+
- OAuth oauth_body_hash="bkfzvOXIr6lM727J5E2JLwc4Z0U%3D", oauth_consumer_key="cloud_forms", oauth_nonce="gkshTQ7nRayqiRJsV4G9c3nABdl1Njv6g1Cxc8NBoGg", oauth_signature="7tsl6czES%2F4%2F6I6Oc%2BNgnWhguIQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486925", oauth_version="1.0"
|
105
|
+
Accept:
|
106
|
+
- "*/*"
|
107
|
+
response:
|
108
|
+
status:
|
109
|
+
code: 200
|
110
|
+
message: OK
|
111
|
+
headers:
|
112
|
+
X-Candlepin-Version:
|
113
|
+
- katello/0.2.44-1.el6
|
114
|
+
Content-Type:
|
115
|
+
- application/json; charset=utf-8
|
116
|
+
Cache-Control:
|
117
|
+
- max-age=0, private, must-revalidate
|
118
|
+
Etag:
|
119
|
+
- "\"57c8c8319c1189f12f7849e61791b127\""
|
120
|
+
Server:
|
121
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
122
|
+
X-Runtime:
|
123
|
+
- "0.039845"
|
124
|
+
Transfer-Encoding:
|
125
|
+
- chunked
|
126
|
+
X-Ua-Compatible:
|
127
|
+
- IE=Edge,chrome=1
|
128
|
+
Date:
|
129
|
+
- Mon, 20 Aug 2012 18:22:04 GMT
|
130
|
+
body:
|
131
|
+
string: "{\"library\":false,\"prior\":\"Library\",\"id\":161,\"organization\":\"ACME_Corporation\",\"organization_id\":1,\"updated_at\":\"2012-08-20T18:22:05Z\",\"name\":\"Test\",\"description\":\"Test update\",\"prior_id\":1,\"created_at\":\"2012-08-20T18:22:04Z\"}"
|
132
|
+
http_version:
|
133
|
+
recorded_at: Mon, 20 Aug 2012 18:22:05 GMT
|
134
|
+
- request:
|
135
|
+
method: get
|
136
|
+
uri: https://10.11.230.105/katello/api/environments/161
|
137
|
+
body:
|
138
|
+
string: ""
|
139
|
+
headers:
|
140
|
+
Http-Katello-User:
|
141
|
+
- admin
|
142
|
+
User-Agent:
|
143
|
+
- OAuth gem v0.4.6
|
144
|
+
Authorization:
|
145
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="zBc12GRVQyQ1x6Jb5z3tcuYEWWsATN3r6lh4WE", oauth_signature="5x5eF9gKouz5Gq7qELhwscUW9Kg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486925", oauth_version="1.0"
|
146
|
+
Accept:
|
147
|
+
- application/json
|
148
|
+
response:
|
149
|
+
status:
|
150
|
+
code: 200
|
151
|
+
message: OK
|
152
|
+
headers:
|
153
|
+
X-Candlepin-Version:
|
154
|
+
- katello/0.2.44-1.el6
|
155
|
+
Content-Type:
|
156
|
+
- application/json; charset=utf-8
|
157
|
+
Cache-Control:
|
158
|
+
- max-age=0, private, must-revalidate
|
159
|
+
Etag:
|
160
|
+
- "\"57c8c8319c1189f12f7849e61791b127\""
|
161
|
+
Server:
|
162
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
163
|
+
X-Runtime:
|
164
|
+
- "0.024076"
|
165
|
+
Transfer-Encoding:
|
166
|
+
- chunked
|
167
|
+
X-Ua-Compatible:
|
168
|
+
- IE=Edge,chrome=1
|
169
|
+
Date:
|
170
|
+
- Mon, 20 Aug 2012 18:22:05 GMT
|
171
|
+
body:
|
172
|
+
string: "{\"library\":false,\"prior\":\"Library\",\"id\":161,\"organization\":\"ACME_Corporation\",\"organization_id\":1,\"updated_at\":\"2012-08-20T18:22:05Z\",\"name\":\"Test\",\"description\":\"Test update\",\"prior_id\":1,\"created_at\":\"2012-08-20T18:22:04Z\"}"
|
173
|
+
http_version:
|
174
|
+
recorded_at: Mon, 20 Aug 2012 18:22:05 GMT
|
175
|
+
- request:
|
176
|
+
method: delete
|
177
|
+
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/environments/161
|
178
|
+
body:
|
179
|
+
string: ""
|
180
|
+
headers:
|
181
|
+
Http-Katello-User:
|
182
|
+
- admin
|
183
|
+
User-Agent:
|
184
|
+
- OAuth gem v0.4.6
|
185
|
+
Authorization:
|
186
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="Bd8xQxAr2Bv17PJkQpZOFmsSn58bgPjHznctmWROo94", oauth_signature="vSXAMvSDTLVvnRtO62suDotuG5U%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486925", oauth_version="1.0"
|
187
|
+
Accept:
|
188
|
+
- application/json
|
189
|
+
response:
|
190
|
+
status:
|
191
|
+
code: 200
|
192
|
+
message: OK
|
193
|
+
headers:
|
194
|
+
X-Candlepin-Version:
|
195
|
+
- katello/0.2.44-1.el6
|
196
|
+
Content-Type:
|
197
|
+
- application/json; charset=utf-8
|
198
|
+
Cache-Control:
|
199
|
+
- max-age=0, private, must-revalidate
|
200
|
+
Etag:
|
201
|
+
- "\"fd1d8f5924017a7278efe885ea4bfb88\""
|
202
|
+
Server:
|
203
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
204
|
+
X-Runtime:
|
205
|
+
- "0.267177"
|
206
|
+
Transfer-Encoding:
|
207
|
+
- chunked
|
208
|
+
X-Ua-Compatible:
|
209
|
+
- IE=Edge,chrome=1
|
210
|
+
Date:
|
211
|
+
- Mon, 20 Aug 2012 18:22:05 GMT
|
212
|
+
body:
|
213
|
+
string: Deleted environment '161'
|
214
|
+
http_version:
|
215
|
+
recorded_at: Mon, 20 Aug 2012 18:22:06 GMT
|
216
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,175 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://10.11.230.105/katello/api/providers/1
|
6
|
+
body:
|
7
|
+
string: ""
|
8
|
+
headers:
|
9
|
+
Http-Katello-User:
|
10
|
+
- admin
|
11
|
+
User-Agent:
|
12
|
+
- OAuth gem v0.4.6
|
13
|
+
Authorization:
|
14
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="oIPvBeoI0aCoUCisxA2tPuBAVyGKE9aGPQ9xBsHk", oauth_signature="qcJRVCgDppheCwQmgU04jeGkAP4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486935", oauth_version="1.0"
|
15
|
+
Accept:
|
16
|
+
- application/json
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
X-Candlepin-Version:
|
23
|
+
- katello/0.2.44-1.el6
|
24
|
+
Content-Type:
|
25
|
+
- application/json; charset=utf-8
|
26
|
+
Cache-Control:
|
27
|
+
- max-age=0, private, must-revalidate
|
28
|
+
Etag:
|
29
|
+
- "\"efb2bfd71ef5f3cde147e1dcbd96a9c0\""
|
30
|
+
Server:
|
31
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
+
X-Runtime:
|
33
|
+
- "0.021440"
|
34
|
+
Transfer-Encoding:
|
35
|
+
- chunked
|
36
|
+
X-Ua-Compatible:
|
37
|
+
- IE=Edge,chrome=1
|
38
|
+
Date:
|
39
|
+
- Mon, 20 Aug 2012 18:22:14 GMT
|
40
|
+
body:
|
41
|
+
string: "{\"provider_type\":\"Red Hat\",\"id\":1,\"task_status_id\":null,\"organization_id\":1,\"sync_state\":\"not_synced\",\"last_sync\":null,\"updated_at\":\"2012-08-20T17:47:14Z\",\"description\":null,\"name\":\"Red Hat\",\"created_at\":\"2012-07-02T18:47:39Z\",\"repository_url\":\"https://cdn.redhat.com\"}"
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 20 Aug 2012 18:22:15 GMT
|
44
|
+
- request:
|
45
|
+
method: put
|
46
|
+
uri: https://10.11.230.105/katello/api/providers/1
|
47
|
+
body:
|
48
|
+
string: "{\"provider\":{\"repository_url\":\"https://cdn.redhat.tv\"}}"
|
49
|
+
headers:
|
50
|
+
Content-Length:
|
51
|
+
- "55"
|
52
|
+
Content-Type:
|
53
|
+
- application/json
|
54
|
+
Http-Katello-User:
|
55
|
+
- admin
|
56
|
+
User-Agent:
|
57
|
+
- OAuth gem v0.4.6
|
58
|
+
Authorization:
|
59
|
+
- OAuth oauth_body_hash="wIb9SJIDMuf6x6OqXZBZzKDJnXs%3D", oauth_consumer_key="cloud_forms", oauth_nonce="kIhfbA1nsJLdaoZS2R6gahZsTcDCkAmJiVBOEgNSU", oauth_signature="3omWfiHWCIfzhERZqRrPwdr0Nfg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486935", oauth_version="1.0"
|
60
|
+
Accept:
|
61
|
+
- "*/*"
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 200
|
65
|
+
message: OK
|
66
|
+
headers:
|
67
|
+
X-Candlepin-Version:
|
68
|
+
- katello/0.2.44-1.el6
|
69
|
+
Content-Type:
|
70
|
+
- application/json; charset=utf-8
|
71
|
+
Cache-Control:
|
72
|
+
- max-age=0, private, must-revalidate
|
73
|
+
Etag:
|
74
|
+
- "\"ac40c4bda752163045423adb4475d5b1\""
|
75
|
+
Server:
|
76
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
77
|
+
X-Runtime:
|
78
|
+
- "0.044622"
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
X-Ua-Compatible:
|
82
|
+
- IE=Edge,chrome=1
|
83
|
+
Date:
|
84
|
+
- Mon, 20 Aug 2012 18:22:14 GMT
|
85
|
+
body:
|
86
|
+
string: "{\"provider_type\":\"Red Hat\",\"id\":1,\"task_status_id\":null,\"organization_id\":1,\"sync_state\":\"not_synced\",\"last_sync\":null,\"updated_at\":\"2012-08-20T18:22:14Z\",\"description\":null,\"name\":\"Red Hat\",\"created_at\":\"2012-07-02T18:47:39Z\",\"repository_url\":\"https://cdn.redhat.tv\"}"
|
87
|
+
http_version:
|
88
|
+
recorded_at: Mon, 20 Aug 2012 18:22:15 GMT
|
89
|
+
- request:
|
90
|
+
method: get
|
91
|
+
uri: https://10.11.230.105/katello/api/providers/1
|
92
|
+
body:
|
93
|
+
string: ""
|
94
|
+
headers:
|
95
|
+
Http-Katello-User:
|
96
|
+
- admin
|
97
|
+
User-Agent:
|
98
|
+
- OAuth gem v0.4.6
|
99
|
+
Authorization:
|
100
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="iWw6qtnhm43N1dNkbFzGsVhnoiIDfepWHxk6tbPJI", oauth_signature="ZtfLzkQ1Vs0c%2BHQXhTKsi1qe9%2Fc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486935", oauth_version="1.0"
|
101
|
+
Accept:
|
102
|
+
- application/json
|
103
|
+
response:
|
104
|
+
status:
|
105
|
+
code: 200
|
106
|
+
message: OK
|
107
|
+
headers:
|
108
|
+
X-Candlepin-Version:
|
109
|
+
- katello/0.2.44-1.el6
|
110
|
+
Content-Type:
|
111
|
+
- application/json; charset=utf-8
|
112
|
+
Cache-Control:
|
113
|
+
- max-age=0, private, must-revalidate
|
114
|
+
Etag:
|
115
|
+
- "\"ac40c4bda752163045423adb4475d5b1\""
|
116
|
+
Server:
|
117
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
118
|
+
X-Runtime:
|
119
|
+
- "0.019346"
|
120
|
+
Transfer-Encoding:
|
121
|
+
- chunked
|
122
|
+
X-Ua-Compatible:
|
123
|
+
- IE=Edge,chrome=1
|
124
|
+
Date:
|
125
|
+
- Mon, 20 Aug 2012 18:22:14 GMT
|
126
|
+
body:
|
127
|
+
string: "{\"provider_type\":\"Red Hat\",\"id\":1,\"task_status_id\":null,\"organization_id\":1,\"sync_state\":\"not_synced\",\"last_sync\":null,\"updated_at\":\"2012-08-20T18:22:14Z\",\"description\":null,\"name\":\"Red Hat\",\"created_at\":\"2012-07-02T18:47:39Z\",\"repository_url\":\"https://cdn.redhat.tv\"}"
|
128
|
+
http_version:
|
129
|
+
recorded_at: Mon, 20 Aug 2012 18:22:15 GMT
|
130
|
+
- request:
|
131
|
+
method: put
|
132
|
+
uri: https://10.11.230.105/katello/api/providers/1
|
133
|
+
body:
|
134
|
+
string: "{\"provider\":{\"repository_url\":\"https://cdn.redhat.com\"}}"
|
135
|
+
headers:
|
136
|
+
Content-Length:
|
137
|
+
- "56"
|
138
|
+
Content-Type:
|
139
|
+
- application/json
|
140
|
+
Http-Katello-User:
|
141
|
+
- admin
|
142
|
+
User-Agent:
|
143
|
+
- OAuth gem v0.4.6
|
144
|
+
Authorization:
|
145
|
+
- OAuth oauth_body_hash="QSbFdAahR5JYlvDItVWSdIbgz7M%3D", oauth_consumer_key="cloud_forms", oauth_nonce="VNkEpv54h5cpVh85D2i3GgBQCIdDEug9PMXHoQuU", oauth_signature="czDmJggJEBqzMCmw6a5Wx0MmCDk%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486935", oauth_version="1.0"
|
146
|
+
Accept:
|
147
|
+
- "*/*"
|
148
|
+
response:
|
149
|
+
status:
|
150
|
+
code: 200
|
151
|
+
message: OK
|
152
|
+
headers:
|
153
|
+
X-Candlepin-Version:
|
154
|
+
- katello/0.2.44-1.el6
|
155
|
+
Content-Type:
|
156
|
+
- application/json; charset=utf-8
|
157
|
+
Cache-Control:
|
158
|
+
- max-age=0, private, must-revalidate
|
159
|
+
Etag:
|
160
|
+
- "\"40b290cf5f6a5d862c72680e6dce144b\""
|
161
|
+
Server:
|
162
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
163
|
+
X-Runtime:
|
164
|
+
- "0.045570"
|
165
|
+
Transfer-Encoding:
|
166
|
+
- chunked
|
167
|
+
X-Ua-Compatible:
|
168
|
+
- IE=Edge,chrome=1
|
169
|
+
Date:
|
170
|
+
- Mon, 20 Aug 2012 18:22:14 GMT
|
171
|
+
body:
|
172
|
+
string: "{\"provider_type\":\"Red Hat\",\"id\":1,\"task_status_id\":null,\"organization_id\":1,\"sync_state\":\"not_synced\",\"last_sync\":null,\"updated_at\":\"2012-08-20T18:22:14Z\",\"description\":null,\"name\":\"Red Hat\",\"created_at\":\"2012-07-02T18:47:39Z\",\"repository_url\":\"https://cdn.redhat.com\"}"
|
173
|
+
http_version:
|
174
|
+
recorded_at: Mon, 20 Aug 2012 18:22:15 GMT
|
175
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,175 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://10.11.230.105/katello/api/roles?description=test%20role%20description&name=test_role_name
|
6
|
+
body:
|
7
|
+
string: "{\"role\":{\"description\":\"test role description\",\"name\":\"test_role_name\"}}"
|
8
|
+
headers:
|
9
|
+
Content-Length:
|
10
|
+
- "72"
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
Http-Katello-User:
|
14
|
+
- admin
|
15
|
+
User-Agent:
|
16
|
+
- OAuth gem v0.4.6
|
17
|
+
Authorization:
|
18
|
+
- OAuth oauth_body_hash="bVLqKzkzB1fNRnO07OkLDyh5Ars%3D", oauth_consumer_key="cloud_forms", oauth_nonce="W3EGlLkOh6OQDFrNgH1DouMRKfFOdpeFKkL8AqgAA", oauth_signature="yec5S%2F8WhlQTGlIM89SXH%2FYSvfs%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486941", oauth_version="1.0"
|
19
|
+
Accept:
|
20
|
+
- "*/*"
|
21
|
+
response:
|
22
|
+
status:
|
23
|
+
code: 200
|
24
|
+
message: OK
|
25
|
+
headers:
|
26
|
+
X-Candlepin-Version:
|
27
|
+
- katello/0.2.44-1.el6
|
28
|
+
Content-Type:
|
29
|
+
- application/json; charset=utf-8
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0, private, must-revalidate
|
32
|
+
Etag:
|
33
|
+
- "\"5318c74154d215a6728de0bde27eb770\""
|
34
|
+
Server:
|
35
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
36
|
+
X-Runtime:
|
37
|
+
- "0.041841"
|
38
|
+
Transfer-Encoding:
|
39
|
+
- chunked
|
40
|
+
X-Ua-Compatible:
|
41
|
+
- IE=Edge,chrome=1
|
42
|
+
Date:
|
43
|
+
- Mon, 20 Aug 2012 18:22:21 GMT
|
44
|
+
body:
|
45
|
+
string: "{\"id\":57,\"updated_at\":\"2012-08-20T18:22:21Z\",\"name\":\"test_role_name\",\"description\":\"test role description\",\"locked\":false,\"created_at\":\"2012-08-20T18:22:21Z\"}"
|
46
|
+
http_version:
|
47
|
+
recorded_at: Mon, 20 Aug 2012 18:22:21 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://10.11.230.105/katello/api/roles
|
51
|
+
body:
|
52
|
+
string: ""
|
53
|
+
headers:
|
54
|
+
Http-Katello-User:
|
55
|
+
- admin
|
56
|
+
User-Agent:
|
57
|
+
- OAuth gem v0.4.6
|
58
|
+
Authorization:
|
59
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="WNDx9DEyV42FQYaqMJsqENe2SZer8BsMM8jEELwAEw", oauth_signature="LPLdiMBa5Luj%2BP%2BK33Gl9yNs%2BV0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486941", oauth_version="1.0"
|
60
|
+
Accept:
|
61
|
+
- application/json
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 200
|
65
|
+
message: OK
|
66
|
+
headers:
|
67
|
+
X-Candlepin-Version:
|
68
|
+
- katello/0.2.44-1.el6
|
69
|
+
Content-Type:
|
70
|
+
- application/json; charset=utf-8
|
71
|
+
Cache-Control:
|
72
|
+
- max-age=0, private, must-revalidate
|
73
|
+
Etag:
|
74
|
+
- "\"7516be2ca1d231f87733db09daa374c8\""
|
75
|
+
Server:
|
76
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
77
|
+
X-Runtime:
|
78
|
+
- "0.150961"
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
X-Ua-Compatible:
|
82
|
+
- IE=Edge,chrome=1
|
83
|
+
Date:
|
84
|
+
- Mon, 20 Aug 2012 18:22:21 GMT
|
85
|
+
body:
|
86
|
+
string: "[{\"id\":1,\"updated_at\":\"2012-07-02T18:47:31Z\",\"name\":\"Administrator\",\"description\":\"Super administrator with all access.\",\"locked\":true,\"created_at\":\"2012-07-02T18:47:29Z\"},{\"id\":2,\"updated_at\":\"2012-07-02T18:47:37Z\",\"name\":\"Read Everything\",\"description\":\"Read only role.\",\"locked\":true,\"created_at\":\"2012-07-02T18:47:31Z\"},{\"id\":57,\"updated_at\":\"2012-08-20T18:22:21Z\",\"name\":\"test_role_name\",\"description\":\"test role description\",\"locked\":false,\"created_at\":\"2012-08-20T18:22:21Z\"}]"
|
87
|
+
http_version:
|
88
|
+
recorded_at: Mon, 20 Aug 2012 18:22:22 GMT
|
89
|
+
- request:
|
90
|
+
method: put
|
91
|
+
uri: https://10.11.230.105/katello/api/roles/57
|
92
|
+
body:
|
93
|
+
string: "{\"role\":{\"name\":\"test_role_name_updated\",\"description\":\"test role description\"}}"
|
94
|
+
headers:
|
95
|
+
Content-Length:
|
96
|
+
- "80"
|
97
|
+
Content-Type:
|
98
|
+
- application/json
|
99
|
+
Http-Katello-User:
|
100
|
+
- admin
|
101
|
+
User-Agent:
|
102
|
+
- OAuth gem v0.4.6
|
103
|
+
Authorization:
|
104
|
+
- OAuth oauth_body_hash="x7IVi%2BfXZuOPS4PP8%2FNykxvChGc%3D", oauth_consumer_key="cloud_forms", oauth_nonce="bPaKIVx00wCFT7kDC5Jh3zYuicTYI5EsGW2rbt7b28", oauth_signature="sNxyAK10aUjLNEWvbh0VPZ12xrQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486942", oauth_version="1.0"
|
105
|
+
Accept:
|
106
|
+
- "*/*"
|
107
|
+
response:
|
108
|
+
status:
|
109
|
+
code: 200
|
110
|
+
message: OK
|
111
|
+
headers:
|
112
|
+
X-Candlepin-Version:
|
113
|
+
- katello/0.2.44-1.el6
|
114
|
+
Content-Type:
|
115
|
+
- application/json; charset=utf-8
|
116
|
+
Cache-Control:
|
117
|
+
- max-age=0, private, must-revalidate
|
118
|
+
Etag:
|
119
|
+
- "\"99d3e13e446df8510ba64d2b9371e390\""
|
120
|
+
Server:
|
121
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
122
|
+
X-Runtime:
|
123
|
+
- "0.055138"
|
124
|
+
Transfer-Encoding:
|
125
|
+
- chunked
|
126
|
+
X-Ua-Compatible:
|
127
|
+
- IE=Edge,chrome=1
|
128
|
+
Date:
|
129
|
+
- Mon, 20 Aug 2012 18:22:21 GMT
|
130
|
+
body:
|
131
|
+
string: "{\"id\":57,\"updated_at\":\"2012-08-20T18:22:21Z\",\"name\":\"test_role_name_updated\",\"description\":\"test role description\",\"locked\":false,\"created_at\":\"2012-08-20T18:22:21Z\"}"
|
132
|
+
http_version:
|
133
|
+
recorded_at: Mon, 20 Aug 2012 18:22:22 GMT
|
134
|
+
- request:
|
135
|
+
method: delete
|
136
|
+
uri: https://10.11.230.105/katello/api/roles/57
|
137
|
+
body:
|
138
|
+
string: ""
|
139
|
+
headers:
|
140
|
+
Http-Katello-User:
|
141
|
+
- admin
|
142
|
+
User-Agent:
|
143
|
+
- OAuth gem v0.4.6
|
144
|
+
Authorization:
|
145
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="xxcgmIrdnLARyYYCPLyjdjJEQcLztfVT1ffxAgtAbI", oauth_signature="KzXWAFCGBfXZt71OB0XZAwMl84Q%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486942", oauth_version="1.0"
|
146
|
+
Accept:
|
147
|
+
- application/json
|
148
|
+
response:
|
149
|
+
status:
|
150
|
+
code: 200
|
151
|
+
message: OK
|
152
|
+
headers:
|
153
|
+
X-Candlepin-Version:
|
154
|
+
- katello/0.2.44-1.el6
|
155
|
+
Content-Type:
|
156
|
+
- application/json; charset=utf-8
|
157
|
+
Cache-Control:
|
158
|
+
- max-age=0, private, must-revalidate
|
159
|
+
Etag:
|
160
|
+
- "\"8677cc37763ea94b67a0084eabec0802\""
|
161
|
+
Server:
|
162
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
163
|
+
X-Runtime:
|
164
|
+
- "0.030141"
|
165
|
+
Transfer-Encoding:
|
166
|
+
- chunked
|
167
|
+
X-Ua-Compatible:
|
168
|
+
- IE=Edge,chrome=1
|
169
|
+
Date:
|
170
|
+
- Mon, 20 Aug 2012 18:22:21 GMT
|
171
|
+
body:
|
172
|
+
string: Deleted role '57'
|
173
|
+
http_version:
|
174
|
+
recorded_at: Mon, 20 Aug 2012 18:22:22 GMT
|
175
|
+
recorded_with: VCR 2.2.4
|