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,130 @@
|
|
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="TEeutN3MuaMZeOSxVuAAYQsVjxmNaG7r86NJVcy00", oauth_signature="6F0yMTAj4pyoN16Bs2MTP8N3hXI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", 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
|
+
- "\"d0b1650818c2bde6b140db53bc5e88af\""
|
34
|
+
Server:
|
35
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
36
|
+
X-Runtime:
|
37
|
+
- "0.048058"
|
38
|
+
Transfer-Encoding:
|
39
|
+
- chunked
|
40
|
+
X-Ua-Compatible:
|
41
|
+
- IE=Edge,chrome=1
|
42
|
+
Date:
|
43
|
+
- Mon, 20 Aug 2012 18:22:19 GMT
|
44
|
+
body:
|
45
|
+
string: "{\"id\":54,\"updated_at\":\"2012-08-20T18:22:19Z\",\"name\":\"test_role_name\",\"description\":\"test role description\",\"locked\":false,\"created_at\":\"2012-08-20T18:22:19Z\"}"
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 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="24SSyBGeBAIDx9TNYNkTvg7GG4QttkhbTkB0UYb5E", oauth_signature="vyP9DOJUOtUYVMHbbrWHD%2BMdHdc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", 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
|
+
- "\"49e659492a939edc77c332e29b20a7e5\""
|
75
|
+
Server:
|
76
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
77
|
+
X-Runtime:
|
78
|
+
- "0.022394"
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
X-Ua-Compatible:
|
82
|
+
- IE=Edge,chrome=1
|
83
|
+
Date:
|
84
|
+
- Mon, 20 Aug 2012 18:22:19 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\":54,\"updated_at\":\"2012-08-20T18:22:19Z\",\"name\":\"test_role_name\",\"description\":\"test role description\",\"locked\":false,\"created_at\":\"2012-08-20T18:22:19Z\"}]"
|
87
|
+
http_version:
|
88
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
89
|
+
- request:
|
90
|
+
method: delete
|
91
|
+
uri: https://10.11.230.105/katello/api/roles/54
|
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="3lotE4Ry1UKQvUnehBlilKB13MpbaW2KJxdossEoK4k", oauth_signature="VZEzJ8acj48TwhkBJRrt7QGgXSo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", 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
|
+
- "\"9fa402df940bccba933d6a8d793744b6\""
|
116
|
+
Server:
|
117
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
118
|
+
X-Runtime:
|
119
|
+
- "0.034834"
|
120
|
+
Transfer-Encoding:
|
121
|
+
- chunked
|
122
|
+
X-Ua-Compatible:
|
123
|
+
- IE=Edge,chrome=1
|
124
|
+
Date:
|
125
|
+
- Mon, 20 Aug 2012 18:22:19 GMT
|
126
|
+
body:
|
127
|
+
string: Deleted role '54'
|
128
|
+
http_version:
|
129
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
130
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,171 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/system_groups?description=Test%20system%20group%20description&max_systems=-1&name=Test_System_Group&organization_id=ACME_Corporation
|
6
|
+
body:
|
7
|
+
string: "{\"system_group\":{\"max_systems\":-1,\"description\":\"Test system group description\",\"name\":\"Test_System_Group\"}}"
|
8
|
+
headers:
|
9
|
+
Content-Length:
|
10
|
+
- "108"
|
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="mSCph1oN%2FsPAwxOTZOdsvV%2Fq%2FK0%3D", oauth_consumer_key="cloud_forms", oauth_nonce="TCaFEJSwBHPrMGZrY5w3sFGqZpXqS5PU3031EJvRY", oauth_signature="uIXOr3XPtcS9k422a9J%2BP4x62%2F4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", 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
|
+
- "\"50cb030e94f73e61ba7c4465598f0de8\""
|
34
|
+
Server:
|
35
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
36
|
+
X-Runtime:
|
37
|
+
- "0.196273"
|
38
|
+
Transfer-Encoding:
|
39
|
+
- chunked
|
40
|
+
X-Ua-Compatible:
|
41
|
+
- IE=Edge,chrome=1
|
42
|
+
Date:
|
43
|
+
- Mon, 20 Aug 2012 18:22:07 GMT
|
44
|
+
body:
|
45
|
+
string: "{\"pulp_id\":\"ACME_Corporation-Test_System_Group-926992fa\",\"id\":10,\"organization_id\":1,\"max_systems\":-1,\"updated_at\":\"2012-08-20T18:22:07Z\",\"name\":\"Test_System_Group\",\"description\":\"Test system group description\",\"locked\":false,\"created_at\":\"2012-08-20T18:22:07Z\"}"
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/system_groups
|
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="Vxd04tMYoKXgDQkEKfAHdl2DIbTxmKYWUdvdKZyvIvU", oauth_signature="7rzoBWjbeoL%2BHKwYQCwxdCEz%2FV8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", 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
|
+
- "\"a2d2c0c5e4739a34622a11f1245caf1c\""
|
75
|
+
Server:
|
76
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
77
|
+
X-Runtime:
|
78
|
+
- "0.022672"
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
X-Ua-Compatible:
|
82
|
+
- IE=Edge,chrome=1
|
83
|
+
Date:
|
84
|
+
- Mon, 20 Aug 2012 18:22:07 GMT
|
85
|
+
body:
|
86
|
+
string: "[{\"pulp_id\":\"ACME_Corporation-Test_System_Group-926992fa\",\"id\":10,\"organization_id\":1,\"max_systems\":-1,\"updated_at\":\"2012-08-20T18:22:07Z\",\"name\":\"Test_System_Group\",\"description\":\"Test system group description\",\"locked\":false,\"created_at\":\"2012-08-20T18:22:07Z\"}]"
|
87
|
+
http_version:
|
88
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
89
|
+
- request:
|
90
|
+
method: delete
|
91
|
+
uri: https://10.11.230.105/katello/api/organizations/1/system_groups/10
|
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="yPcqa5A8y73OgUMw2kUdz3meR7D7x78jkvJyLew0", oauth_signature="jbv%2FbALveyPtTYjr%2Bt%2Fbn%2FVYhHY%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", 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
|
+
- "\"963fd449ce0aee3a0472e80364501f5c\""
|
116
|
+
Server:
|
117
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
118
|
+
X-Runtime:
|
119
|
+
- "0.101426"
|
120
|
+
Transfer-Encoding:
|
121
|
+
- chunked
|
122
|
+
X-Ua-Compatible:
|
123
|
+
- IE=Edge,chrome=1
|
124
|
+
Date:
|
125
|
+
- Mon, 20 Aug 2012 18:22:08 GMT
|
126
|
+
body:
|
127
|
+
string: Deleted system group '10'
|
128
|
+
http_version:
|
129
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
130
|
+
- request:
|
131
|
+
method: get
|
132
|
+
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/system_groups
|
133
|
+
body:
|
134
|
+
string: ""
|
135
|
+
headers:
|
136
|
+
Http-Katello-User:
|
137
|
+
- admin
|
138
|
+
User-Agent:
|
139
|
+
- OAuth gem v0.4.6
|
140
|
+
Authorization:
|
141
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="F5DE6QlmEWq3hbXVWUcb1agXD97xmOvkCgpcbL6Okq4", oauth_signature="jujXX8PzTT4%2Fp%2F8CJyDd3z5Q568%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
142
|
+
Accept:
|
143
|
+
- application/json
|
144
|
+
response:
|
145
|
+
status:
|
146
|
+
code: 200
|
147
|
+
message: OK
|
148
|
+
headers:
|
149
|
+
X-Candlepin-Version:
|
150
|
+
- katello/0.2.44-1.el6
|
151
|
+
Content-Type:
|
152
|
+
- application/json; charset=utf-8
|
153
|
+
Cache-Control:
|
154
|
+
- max-age=0, private, must-revalidate
|
155
|
+
Etag:
|
156
|
+
- "\"d751713988987e9331980363e24189ce\""
|
157
|
+
Server:
|
158
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
159
|
+
X-Runtime:
|
160
|
+
- "0.030373"
|
161
|
+
Transfer-Encoding:
|
162
|
+
- chunked
|
163
|
+
X-Ua-Compatible:
|
164
|
+
- IE=Edge,chrome=1
|
165
|
+
Date:
|
166
|
+
- Mon, 20 Aug 2012 18:22:08 GMT
|
167
|
+
body:
|
168
|
+
string: "[]"
|
169
|
+
http_version:
|
170
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
171
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,253 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/environments
|
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="6MJxip3kPT7dxA0CJjid1NgSr7VrPQuuQ1FvtB3aAb4", oauth_signature="Y%2BS%2BzOQUe5YkMaK7cywe0pkyPY4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", 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
|
+
- "\"47a8ccc71417629ef034ca7f1eabbb05\""
|
30
|
+
Server:
|
31
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
+
X-Runtime:
|
33
|
+
- "0.026739"
|
34
|
+
Transfer-Encoding:
|
35
|
+
- chunked
|
36
|
+
X-Ua-Compatible:
|
37
|
+
- IE=Edge,chrome=1
|
38
|
+
Date:
|
39
|
+
- Mon, 20 Aug 2012 18:22:13 GMT
|
40
|
+
body:
|
41
|
+
string: "[{\"library\":true,\"prior\":null,\"id\":1,\"organization\":\"ACME_Corporation\",\"organization_id\":1,\"updated_at\":\"2012-07-02T18:47:39Z\",\"name\":\"Library\",\"description\":null,\"prior_id\":null,\"created_at\":\"2012-07-02T18:47:39Z\"}]"
|
42
|
+
http_version:
|
43
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
44
|
+
- request:
|
45
|
+
method: post
|
46
|
+
uri: https://10.11.230.105/katello/api/templates?description=test%20description&environment_id=1&name=test_template_name
|
47
|
+
body:
|
48
|
+
string: "{\"template\":{\"description\":\"test description\",\"name\":\"test_template_name\"}}"
|
49
|
+
headers:
|
50
|
+
Content-Length:
|
51
|
+
- "75"
|
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="VW%2FXoE%2F1MuKUEYJxEQH%2BkobzPQU%3D", oauth_consumer_key="cloud_forms", oauth_nonce="e1mwQ6KBapaoazLoeQ9E2IKEmQYXKfM8lzLB2AITc", oauth_signature="0TPV6LFcrnkQtWhOoNWEYQ0aK3M%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", 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
|
+
- "\"6b572d9f485997883661da7210c033c4\""
|
75
|
+
Server:
|
76
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
77
|
+
X-Runtime:
|
78
|
+
- "0.053882"
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
X-Ua-Compatible:
|
82
|
+
- IE=Edge,chrome=1
|
83
|
+
Date:
|
84
|
+
- Mon, 20 Aug 2012 18:22:13 GMT
|
85
|
+
body:
|
86
|
+
string: "{\"repositories\":[],\"products\":[],\"revision\":1,\"parameters_json\":\"{}\",\"package_groups\":[],\"id\":13,\"updated_at\":\"2012-08-20T18:22:13Z\",\"pg_categories\":[],\"name\":\"test_template_name\",\"description\":\"test description\",\"packages\":[],\"environment_id\":1,\"parameters\":{},\"parent_id\":null,\"created_at\":\"2012-08-20T18:22:13Z\"}"
|
87
|
+
http_version:
|
88
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
89
|
+
- request:
|
90
|
+
method: get
|
91
|
+
uri: https://10.11.230.105/katello/api/templates/13
|
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="jhE8nTvFBLUVysdrfbtK8I0w2x1IFSnjsQkKvp7VE", oauth_signature="YX8WC5sUwvBIhvCrF9aHDPAiRng%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", 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
|
+
- "\"6b572d9f485997883661da7210c033c4\""
|
116
|
+
Server:
|
117
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
118
|
+
X-Runtime:
|
119
|
+
- "0.026131"
|
120
|
+
Transfer-Encoding:
|
121
|
+
- chunked
|
122
|
+
X-Ua-Compatible:
|
123
|
+
- IE=Edge,chrome=1
|
124
|
+
Date:
|
125
|
+
- Mon, 20 Aug 2012 18:22:13 GMT
|
126
|
+
body:
|
127
|
+
string: "{\"repositories\":[],\"products\":[],\"revision\":1,\"parameters_json\":\"{}\",\"package_groups\":[],\"id\":13,\"updated_at\":\"2012-08-20T18:22:13Z\",\"pg_categories\":[],\"name\":\"test_template_name\",\"description\":\"test description\",\"packages\":[],\"environment_id\":1,\"parameters\":{},\"parent_id\":null,\"created_at\":\"2012-08-20T18:22:13Z\"}"
|
128
|
+
http_version:
|
129
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
130
|
+
- request:
|
131
|
+
method: get
|
132
|
+
uri: https://10.11.230.105/katello/api/environments/1/templates
|
133
|
+
body:
|
134
|
+
string: ""
|
135
|
+
headers:
|
136
|
+
Http-Katello-User:
|
137
|
+
- admin
|
138
|
+
User-Agent:
|
139
|
+
- OAuth gem v0.4.6
|
140
|
+
Authorization:
|
141
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="21uZlGuqorBJMrWsMvj1bDFBvP1wmtjhTuIDQeqpek", oauth_signature="YH9dzuBCcD8TgI3aG8tbjEyclR4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
142
|
+
Accept:
|
143
|
+
- application/json
|
144
|
+
response:
|
145
|
+
status:
|
146
|
+
code: 200
|
147
|
+
message: OK
|
148
|
+
headers:
|
149
|
+
X-Candlepin-Version:
|
150
|
+
- katello/0.2.44-1.el6
|
151
|
+
Content-Type:
|
152
|
+
- application/json; charset=utf-8
|
153
|
+
Cache-Control:
|
154
|
+
- max-age=0, private, must-revalidate
|
155
|
+
Etag:
|
156
|
+
- "\"ad7cb94d5f7f74d406c2bcdbbe6d2b16\""
|
157
|
+
Server:
|
158
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
159
|
+
X-Runtime:
|
160
|
+
- "0.145221"
|
161
|
+
Transfer-Encoding:
|
162
|
+
- chunked
|
163
|
+
X-Ua-Compatible:
|
164
|
+
- IE=Edge,chrome=1
|
165
|
+
Date:
|
166
|
+
- Mon, 20 Aug 2012 18:22:13 GMT
|
167
|
+
body:
|
168
|
+
string: "[{\"revision\":1,\"parameters_json\":\"{}\",\"id\":13,\"updated_at\":\"2012-08-20T18:22:13Z\",\"name\":\"test_template_name\",\"description\":\"test description\",\"environment_id\":1,\"parent_id\":null,\"created_at\":\"2012-08-20T18:22:13Z\"}]"
|
169
|
+
http_version:
|
170
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
171
|
+
- request:
|
172
|
+
method: delete
|
173
|
+
uri: https://10.11.230.105/katello/api/templates/13
|
174
|
+
body:
|
175
|
+
string: ""
|
176
|
+
headers:
|
177
|
+
Http-Katello-User:
|
178
|
+
- admin
|
179
|
+
User-Agent:
|
180
|
+
- OAuth gem v0.4.6
|
181
|
+
Authorization:
|
182
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="swVaPmS9cFwXqymtk0W27ffbml7JC5lnL31HgWrpvw", oauth_signature="ydwqnYPExnkBypX5YpQ%2FBqdLjyM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
183
|
+
Accept:
|
184
|
+
- application/json
|
185
|
+
response:
|
186
|
+
status:
|
187
|
+
code: 200
|
188
|
+
message: OK
|
189
|
+
headers:
|
190
|
+
X-Candlepin-Version:
|
191
|
+
- katello/0.2.44-1.el6
|
192
|
+
Content-Type:
|
193
|
+
- application/json; charset=utf-8
|
194
|
+
Cache-Control:
|
195
|
+
- max-age=0, private, must-revalidate
|
196
|
+
Etag:
|
197
|
+
- "\"9c49bb0262c5bd288a161bd8f8eb2cca\""
|
198
|
+
Server:
|
199
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
200
|
+
X-Runtime:
|
201
|
+
- "0.041612"
|
202
|
+
Transfer-Encoding:
|
203
|
+
- chunked
|
204
|
+
X-Ua-Compatible:
|
205
|
+
- IE=Edge,chrome=1
|
206
|
+
Date:
|
207
|
+
- Mon, 20 Aug 2012 18:22:13 GMT
|
208
|
+
body:
|
209
|
+
string: Deleted system template 'test_template_name'
|
210
|
+
http_version:
|
211
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
212
|
+
- request:
|
213
|
+
method: get
|
214
|
+
uri: https://10.11.230.105/katello/api/environments/1/templates
|
215
|
+
body:
|
216
|
+
string: ""
|
217
|
+
headers:
|
218
|
+
Http-Katello-User:
|
219
|
+
- admin
|
220
|
+
User-Agent:
|
221
|
+
- OAuth gem v0.4.6
|
222
|
+
Authorization:
|
223
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="egd9WwbZZu3eqDqKhnrOQROjmNvmZczxHGlmJR4qC30", oauth_signature="wJP7yhO%2FifO7Mi2QipMyOYTCg7M%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
224
|
+
Accept:
|
225
|
+
- application/json
|
226
|
+
response:
|
227
|
+
status:
|
228
|
+
code: 200
|
229
|
+
message: OK
|
230
|
+
headers:
|
231
|
+
X-Candlepin-Version:
|
232
|
+
- katello/0.2.44-1.el6
|
233
|
+
Content-Type:
|
234
|
+
- application/json; charset=utf-8
|
235
|
+
Cache-Control:
|
236
|
+
- max-age=0, private, must-revalidate
|
237
|
+
Etag:
|
238
|
+
- "\"d751713988987e9331980363e24189ce\""
|
239
|
+
Server:
|
240
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
241
|
+
X-Runtime:
|
242
|
+
- "0.022662"
|
243
|
+
Transfer-Encoding:
|
244
|
+
- chunked
|
245
|
+
X-Ua-Compatible:
|
246
|
+
- IE=Edge,chrome=1
|
247
|
+
Date:
|
248
|
+
- Mon, 20 Aug 2012 18:22:13 GMT
|
249
|
+
body:
|
250
|
+
string: "[]"
|
251
|
+
http_version:
|
252
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
253
|
+
recorded_with: VCR 2.2.4
|