deadwood 0.0.1 → 0.0.3
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/README.md +65 -3
- data/Rakefile +2 -4
- data/lib/deadwood/active_resource_oauth_client.rb +16 -8
- data/lib/deadwood/model/activation_key.rb +24 -8
- data/lib/deadwood/model/base.rb +16 -9
- data/lib/deadwood/model/changeset.rb +18 -10
- data/lib/deadwood/model/consumer.rb +16 -8
- data/lib/deadwood/model/crl.rb +16 -8
- data/lib/deadwood/model/entitlement.rb +16 -8
- data/lib/deadwood/model/environment.rb +22 -20
- data/lib/deadwood/model/errata.rb +16 -8
- data/lib/deadwood/model/gpg_key.rb +21 -16
- data/lib/deadwood/model/organization.rb +16 -8
- data/lib/deadwood/model/pool.rb +16 -8
- data/lib/deadwood/model/product.rb +22 -13
- data/lib/deadwood/model/provider.rb +18 -9
- data/lib/deadwood/model/repository.rb +16 -8
- data/lib/deadwood/model/role.rb +21 -14
- data/lib/deadwood/model/status.rb +16 -8
- data/lib/deadwood/model/subscription.rb +16 -8
- data/lib/deadwood/model/system.rb +18 -9
- data/lib/deadwood/model/system_group.rb +22 -13
- data/lib/deadwood/model/task.rb +16 -8
- data/lib/deadwood/model/template.rb +18 -9
- data/lib/deadwood/model/user.rb +16 -8
- data/lib/deadwood/model/version.rb +16 -8
- data/rake/rpmtask.rb +16 -13
- data/spec/models/activation_key_spec.rb +48 -8
- data/spec/models/base_spec.rb +16 -8
- data/spec/models/changeset_spec.rb +16 -8
- data/spec/models/crl_spec.rb +16 -8
- data/spec/models/environment_spec.rb +16 -8
- data/spec/models/gpg_key_spec.rb +16 -8
- data/spec/models/organization_spec.rb +16 -8
- data/spec/models/product_spec.rb +16 -8
- data/spec/models/provider_spec.rb +16 -8
- data/spec/models/repository_spec.rb +16 -8
- data/spec/models/role_spec.rb +16 -8
- data/spec/models/system_group_spec.rb +16 -8
- data/spec/models/task_spec.rb +16 -8
- data/spec/models/template_spec.rb +16 -8
- data/spec/models/user_spec.rb +16 -8
- data/spec/spec_helper.rb +15 -21
- data/spec/vcr/cassettes/create_activation_key.yml +91 -91
- data/spec/vcr/cassettes/create_changeset.yml +93 -93
- data/spec/vcr/cassettes/create_find_all_environment.yml +45 -45
- data/spec/vcr/cassettes/create_find_by_id_activation_key.yml +214 -0
- data/spec/vcr/cassettes/create_find_single_environment.yml +49 -49
- data/spec/vcr/cassettes/create_gpg_key.yml +64 -64
- data/spec/vcr/cassettes/create_provider_for_default_org.yml +63 -63
- data/spec/vcr/cassettes/create_repository.yml +98 -98
- data/spec/vcr/cassettes/create_role.yml +46 -46
- data/spec/vcr/cassettes/create_system.yml +59 -59
- data/spec/vcr/cassettes/create_template.yml +86 -86
- data/spec/vcr/cassettes/create_update_activation_key.yml +345 -0
- data/spec/vcr/cassettes/create_user.yml +48 -48
- data/spec/vcr/cassettes/create_user_role.yml +103 -103
- data/spec/vcr/cassettes/find_ACME_Corporation.yml +14 -14
- data/spec/vcr/cassettes/find_admin.yml +14 -14
- data/spec/vcr/cassettes/find_crl.yml +22 -22
- data/spec/vcr/cassettes/find_template.yml +13 -13
- data/spec/vcr/cassettes/find_users.yml +13 -13
- data/spec/vcr/cassettes/organization_1_exists.yml +28 -28
- data/spec/vcr/cassettes/organization_create.yml +46 -46
- data/spec/vcr/cassettes/organization_default_exists.yml +14 -14
- data/spec/vcr/cassettes/organization_exists.yml +13 -13
- data/spec/vcr/cassettes/organization_update.yml +44 -44
- data/spec/vcr/cassettes/provider_1_exists.yml +14 -14
- data/spec/vcr/cassettes/providers_all_exists.yml +15 -15
- data/spec/vcr/cassettes/read_products.yml +92 -92
- data/spec/vcr/cassettes/update_environment_name_description.yml +83 -83
- data/spec/vcr/cassettes/update_provider_for_org.yml +64 -64
- data/spec/vcr/cassettes/update_role.yml +67 -67
- data/spec/vcr/cassettes/update_user.yml +48 -48
- data/spec/vcr_setup.rb +16 -23
- metadata +8 -32
@@ -6,166 +6,166 @@ http_interactions:
|
|
6
6
|
body:
|
7
7
|
string: ""
|
8
8
|
headers:
|
9
|
-
Http-Katello-User:
|
10
|
-
- admin
|
11
9
|
User-Agent:
|
12
10
|
- OAuth gem v0.4.6
|
13
11
|
Authorization:
|
14
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
12
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="BZbnIlfjxB2E9d43BaMErzzRyjJB53ozsCZUoISozos", oauth_signature="POYMjQaJOCD0kvLbjc7eiHWdXIo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645406", oauth_version="1.0"
|
15
13
|
Accept:
|
16
14
|
- application/json
|
15
|
+
Http-Katello-User:
|
16
|
+
- admin
|
17
17
|
response:
|
18
18
|
status:
|
19
19
|
code: 200
|
20
20
|
message: OK
|
21
21
|
headers:
|
22
|
-
X-Candlepin-Version:
|
23
|
-
- katello/0.2.44-1.el6
|
24
22
|
Content-Type:
|
25
23
|
- application/json; charset=utf-8
|
26
|
-
Cache-Control:
|
27
|
-
- max-age=0, private, must-revalidate
|
28
|
-
Etag:
|
29
|
-
- "\"cbf080a165bbb6d83da84de85e2702b3\""
|
30
24
|
Server:
|
31
25
|
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
-
X-Runtime:
|
33
|
-
- "0.148078"
|
34
26
|
Transfer-Encoding:
|
35
27
|
- chunked
|
28
|
+
Date:
|
29
|
+
- Wed, 22 Aug 2012 14:23:25 GMT
|
36
30
|
X-Ua-Compatible:
|
37
31
|
- IE=Edge,chrome=1
|
38
|
-
|
39
|
-
-
|
32
|
+
Cache-Control:
|
33
|
+
- max-age=0, private, must-revalidate
|
34
|
+
X-Runtime:
|
35
|
+
- "0.029070"
|
36
|
+
Etag:
|
37
|
+
- "\"41519c7be78b0b4c8e35a64ca3f2df01\""
|
38
|
+
X-Candlepin-Version:
|
39
|
+
- katello/0.2.44-1.el6
|
40
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-
|
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-22T14:23:25Z\",\"description\":null,\"name\":\"Red Hat\",\"created_at\":\"2012-07-02T18:47:39Z\",\"repository_url\":\"https://cdn.redhat.com\"}]"
|
42
42
|
http_version:
|
43
|
-
recorded_at:
|
43
|
+
recorded_at: Wed, 22 Aug 2012 14:23:26 GMT
|
44
44
|
- request:
|
45
45
|
method: post
|
46
46
|
uri: https://10.11.230.105/katello/api/providers?description=Test%20provider%20description&name=test_provider_name&organization_id=ACME_Corporation&provider_type=Custom&repository_url=http://repo.example.com
|
47
47
|
body:
|
48
|
-
string: "{\"provider\":{\"
|
48
|
+
string: "{\"provider\":{\"repository_url\":\"http://repo.example.com\",\"name\":\"test_provider_name\",\"provider_type\":\"Custom\",\"description\":\"Test provider description\"}}"
|
49
49
|
headers:
|
50
|
-
Content-Length:
|
51
|
-
- "152"
|
52
50
|
Content-Type:
|
53
51
|
- application/json
|
54
|
-
|
55
|
-
-
|
52
|
+
Content-Length:
|
53
|
+
- "152"
|
56
54
|
User-Agent:
|
57
55
|
- OAuth gem v0.4.6
|
58
56
|
Authorization:
|
59
|
-
- OAuth oauth_body_hash="
|
57
|
+
- OAuth oauth_body_hash="1Y9n2lNA2iPyZ36N68A1eEIF%2FCw%3D", oauth_consumer_key="cloud_forms", oauth_nonce="3qEmfreVPqbQRsH944VzmhSQmkOjxEsxluMaOXNAGB0", oauth_signature="rWTXDHcx3uEpv0KargMm%2FCjTf6E%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645406", oauth_version="1.0"
|
60
58
|
Accept:
|
61
59
|
- "*/*"
|
60
|
+
Http-Katello-User:
|
61
|
+
- admin
|
62
62
|
response:
|
63
63
|
status:
|
64
64
|
code: 200
|
65
65
|
message: OK
|
66
66
|
headers:
|
67
|
-
X-Candlepin-Version:
|
68
|
-
- katello/0.2.44-1.el6
|
69
67
|
Content-Type:
|
70
68
|
- application/json; charset=utf-8
|
71
|
-
Cache-Control:
|
72
|
-
- max-age=0, private, must-revalidate
|
73
|
-
Etag:
|
74
|
-
- "\"1fc99419980e72b94898819e2578f4fa\""
|
75
69
|
Server:
|
76
70
|
- thin 1.2.11 codename Bat-Shit Crazy
|
77
|
-
X-Runtime:
|
78
|
-
- "0.047365"
|
79
71
|
Transfer-Encoding:
|
80
72
|
- chunked
|
73
|
+
Date:
|
74
|
+
- Wed, 22 Aug 2012 14:23:25 GMT
|
81
75
|
X-Ua-Compatible:
|
82
76
|
- IE=Edge,chrome=1
|
83
|
-
|
84
|
-
-
|
77
|
+
Cache-Control:
|
78
|
+
- max-age=0, private, must-revalidate
|
79
|
+
X-Runtime:
|
80
|
+
- "0.046230"
|
81
|
+
Etag:
|
82
|
+
- "\"ceaf597cd3593919628fe8087ca6c247\""
|
83
|
+
X-Candlepin-Version:
|
84
|
+
- katello/0.2.44-1.el6
|
85
85
|
body:
|
86
|
-
string: "{\"provider_type\":\"Custom\",\"id\":
|
86
|
+
string: "{\"provider_type\":\"Custom\",\"id\":109,\"task_status_id\":null,\"organization_id\":1,\"sync_state\":\"not_synced\",\"last_sync\":null,\"updated_at\":\"2012-08-22T14:23:25Z\",\"description\":\"Test provider description\",\"name\":\"test_provider_name\",\"created_at\":\"2012-08-22T14:23:25Z\",\"repository_url\":\"http://repo.example.com\"}"
|
87
87
|
http_version:
|
88
|
-
recorded_at:
|
88
|
+
recorded_at: Wed, 22 Aug 2012 14:23:26 GMT
|
89
89
|
- request:
|
90
90
|
method: get
|
91
91
|
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/providers
|
92
92
|
body:
|
93
93
|
string: ""
|
94
94
|
headers:
|
95
|
-
Http-Katello-User:
|
96
|
-
- admin
|
97
95
|
User-Agent:
|
98
96
|
- OAuth gem v0.4.6
|
99
97
|
Authorization:
|
100
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
98
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="N4fODFmhvaJI6Msax7hBhT57gwMqoftfk6RC7nC9k", oauth_signature="z4hQ2k6mwVuw2kCW24opofs5Nrk%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645406", oauth_version="1.0"
|
101
99
|
Accept:
|
102
100
|
- application/json
|
101
|
+
Http-Katello-User:
|
102
|
+
- admin
|
103
103
|
response:
|
104
104
|
status:
|
105
105
|
code: 200
|
106
106
|
message: OK
|
107
107
|
headers:
|
108
|
-
X-Candlepin-Version:
|
109
|
-
- katello/0.2.44-1.el6
|
110
108
|
Content-Type:
|
111
109
|
- application/json; charset=utf-8
|
112
|
-
Cache-Control:
|
113
|
-
- max-age=0, private, must-revalidate
|
114
|
-
Etag:
|
115
|
-
- "\"f34356e4941efab6dd323b89cfaa3a73\""
|
116
110
|
Server:
|
117
111
|
- thin 1.2.11 codename Bat-Shit Crazy
|
118
|
-
X-Runtime:
|
119
|
-
- "0.025819"
|
120
112
|
Transfer-Encoding:
|
121
113
|
- chunked
|
114
|
+
Date:
|
115
|
+
- Wed, 22 Aug 2012 14:23:25 GMT
|
122
116
|
X-Ua-Compatible:
|
123
117
|
- IE=Edge,chrome=1
|
124
|
-
|
125
|
-
-
|
118
|
+
Cache-Control:
|
119
|
+
- max-age=0, private, must-revalidate
|
120
|
+
X-Runtime:
|
121
|
+
- "0.027518"
|
122
|
+
Etag:
|
123
|
+
- "\"c347b476844014e45a97da4d0983a539\""
|
124
|
+
X-Candlepin-Version:
|
125
|
+
- katello/0.2.44-1.el6
|
126
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-
|
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-22T14:23:25Z\",\"description\":null,\"name\":\"Red Hat\",\"created_at\":\"2012-07-02T18:47:39Z\",\"repository_url\":\"https://cdn.redhat.com\"},{\"provider_type\":\"Custom\",\"id\":109,\"task_status_id\":null,\"organization_id\":1,\"sync_state\":\"not_synced\",\"last_sync\":null,\"updated_at\":\"2012-08-22T14:23:25Z\",\"description\":\"Test provider description\",\"name\":\"test_provider_name\",\"created_at\":\"2012-08-22T14:23:25Z\",\"repository_url\":\"http://repo.example.com\"}]"
|
128
128
|
http_version:
|
129
|
-
recorded_at:
|
129
|
+
recorded_at: Wed, 22 Aug 2012 14:23:26 GMT
|
130
130
|
- request:
|
131
131
|
method: delete
|
132
|
-
uri: https://10.11.230.105/katello/api/providers/
|
132
|
+
uri: https://10.11.230.105/katello/api/providers/109
|
133
133
|
body:
|
134
134
|
string: ""
|
135
135
|
headers:
|
136
|
-
Http-Katello-User:
|
137
|
-
- admin
|
138
136
|
User-Agent:
|
139
137
|
- OAuth gem v0.4.6
|
140
138
|
Authorization:
|
141
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
139
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="eQwpbsR6oYpObMojlpSnGUdDHwYAEzCELZvMTloLN0", oauth_signature="kaf4jWzBx76btCnWCMrjbvKSOeQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645406", oauth_version="1.0"
|
142
140
|
Accept:
|
143
141
|
- application/json
|
142
|
+
Http-Katello-User:
|
143
|
+
- admin
|
144
144
|
response:
|
145
145
|
status:
|
146
146
|
code: 200
|
147
147
|
message: OK
|
148
148
|
headers:
|
149
|
-
X-Candlepin-Version:
|
150
|
-
- katello/0.2.44-1.el6
|
151
149
|
Content-Type:
|
152
150
|
- application/json; charset=utf-8
|
153
|
-
Cache-Control:
|
154
|
-
- max-age=0, private, must-revalidate
|
155
|
-
Etag:
|
156
|
-
- "\"728712a61c5bf29dc38964dba52a259e\""
|
157
151
|
Server:
|
158
152
|
- thin 1.2.11 codename Bat-Shit Crazy
|
159
|
-
X-Runtime:
|
160
|
-
- "0.034932"
|
161
153
|
Transfer-Encoding:
|
162
154
|
- chunked
|
155
|
+
Date:
|
156
|
+
- Wed, 22 Aug 2012 14:23:25 GMT
|
163
157
|
X-Ua-Compatible:
|
164
158
|
- IE=Edge,chrome=1
|
165
|
-
|
166
|
-
-
|
159
|
+
Cache-Control:
|
160
|
+
- max-age=0, private, must-revalidate
|
161
|
+
X-Runtime:
|
162
|
+
- "0.032488"
|
163
|
+
Etag:
|
164
|
+
- "\"728712a61c5bf29dc38964dba52a259e\""
|
165
|
+
X-Candlepin-Version:
|
166
|
+
- katello/0.2.44-1.el6
|
167
167
|
body:
|
168
168
|
string: Deleted provider [ test_provider_name ]
|
169
169
|
http_version:
|
170
|
-
recorded_at:
|
170
|
+
recorded_at: Wed, 22 Aug 2012 14:23:26 GMT
|
171
171
|
recorded_with: VCR 2.2.4
|
@@ -4,258 +4,258 @@ http_interactions:
|
|
4
4
|
method: post
|
5
5
|
uri: https://10.11.230.105/katello/api/providers?description=Test%20provider%20description&name=test_provider_name&organization_id=ACME_Corporation&provider_type=Custom&repository_url=http://repo.example.com
|
6
6
|
body:
|
7
|
-
string: "{\"provider\":{\"
|
7
|
+
string: "{\"provider\":{\"repository_url\":\"http://repo.example.com\",\"name\":\"test_provider_name\",\"provider_type\":\"Custom\",\"description\":\"Test provider description\"}}"
|
8
8
|
headers:
|
9
|
-
Content-Length:
|
10
|
-
- "152"
|
11
9
|
Content-Type:
|
12
10
|
- application/json
|
13
|
-
|
14
|
-
-
|
11
|
+
Content-Length:
|
12
|
+
- "152"
|
15
13
|
User-Agent:
|
16
14
|
- OAuth gem v0.4.6
|
17
15
|
Authorization:
|
18
|
-
- OAuth oauth_body_hash="
|
16
|
+
- OAuth oauth_body_hash="1Y9n2lNA2iPyZ36N68A1eEIF%2FCw%3D", oauth_consumer_key="cloud_forms", oauth_nonce="eDrrqYV1yDTylV27u0Kn5Nhvc7HACMmb14kPUussCGI", oauth_signature="%2B1cDVxkuAljBy9X6J635Q3i7uBA%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
19
17
|
Accept:
|
20
18
|
- "*/*"
|
19
|
+
Http-Katello-User:
|
20
|
+
- admin
|
21
21
|
response:
|
22
22
|
status:
|
23
23
|
code: 200
|
24
24
|
message: OK
|
25
25
|
headers:
|
26
|
-
X-Candlepin-Version:
|
27
|
-
- katello/0.2.44-1.el6
|
28
26
|
Content-Type:
|
29
27
|
- application/json; charset=utf-8
|
30
|
-
Cache-Control:
|
31
|
-
- max-age=0, private, must-revalidate
|
32
|
-
Etag:
|
33
|
-
- "\"ec0637a6566b55c56da5135aaeb1ebe0\""
|
34
28
|
Server:
|
35
29
|
- thin 1.2.11 codename Bat-Shit Crazy
|
36
|
-
X-Runtime:
|
37
|
-
- "0.034137"
|
38
30
|
Transfer-Encoding:
|
39
31
|
- chunked
|
32
|
+
Date:
|
33
|
+
- Wed, 22 Aug 2012 14:23:26 GMT
|
40
34
|
X-Ua-Compatible:
|
41
35
|
- IE=Edge,chrome=1
|
42
|
-
|
43
|
-
-
|
36
|
+
Cache-Control:
|
37
|
+
- max-age=0, private, must-revalidate
|
38
|
+
X-Runtime:
|
39
|
+
- "0.174410"
|
40
|
+
Etag:
|
41
|
+
- "\"d820167ee2d8d2900ebe9afab3d9a550\""
|
42
|
+
X-Candlepin-Version:
|
43
|
+
- katello/0.2.44-1.el6
|
44
44
|
body:
|
45
|
-
string: "{\"provider_type\":\"Custom\",\"id\":
|
45
|
+
string: "{\"provider_type\":\"Custom\",\"id\":110,\"task_status_id\":null,\"organization_id\":1,\"sync_state\":\"not_synced\",\"last_sync\":null,\"updated_at\":\"2012-08-22T14:23:26Z\",\"description\":\"Test provider description\",\"name\":\"test_provider_name\",\"created_at\":\"2012-08-22T14:23:26Z\",\"repository_url\":\"http://repo.example.com\"}"
|
46
46
|
http_version:
|
47
47
|
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
48
48
|
- request:
|
49
49
|
method: post
|
50
|
-
uri: https://10.11.230.105/katello/api/providers/
|
50
|
+
uri: https://10.11.230.105/katello/api/providers/110/product_create?description=Test%20description&name=Test_product&provider_id=110
|
51
51
|
body:
|
52
|
-
string: "{\"product\":{\"
|
52
|
+
string: "{\"product\":{\"name\":\"Test_product\",\"description\":\"Test description\"}}"
|
53
53
|
headers:
|
54
|
-
Content-Length:
|
55
|
-
- "68"
|
56
54
|
Content-Type:
|
57
55
|
- application/json
|
58
|
-
|
59
|
-
-
|
56
|
+
Content-Length:
|
57
|
+
- "68"
|
60
58
|
User-Agent:
|
61
59
|
- OAuth gem v0.4.6
|
62
60
|
Authorization:
|
63
|
-
- OAuth oauth_body_hash="
|
61
|
+
- OAuth oauth_body_hash="fK%2BDS5DCiQa4z5e7SfriRIS7iKw%3D", oauth_consumer_key="cloud_forms", oauth_nonce="EUt2dA4sTC99fQJqnRM9jUlwTmn6dLLAkKDBz6A36c", oauth_signature="KCg2KBpw%2FgPLCUKqwz88JTtVixA%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
64
62
|
Accept:
|
65
63
|
- "*/*"
|
64
|
+
Http-Katello-User:
|
65
|
+
- admin
|
66
66
|
response:
|
67
67
|
status:
|
68
68
|
code: 200
|
69
69
|
message: OK
|
70
70
|
headers:
|
71
|
-
X-Candlepin-Version:
|
72
|
-
- katello/0.2.44-1.el6
|
73
71
|
Content-Type:
|
74
72
|
- application/json; charset=utf-8
|
75
|
-
Cache-Control:
|
76
|
-
- max-age=0, private, must-revalidate
|
77
|
-
Etag:
|
78
|
-
- "\"b51b4cd8028fb21c7ef638ebd3b7c9de\""
|
79
73
|
Server:
|
80
74
|
- thin 1.2.11 codename Bat-Shit Crazy
|
81
|
-
X-Runtime:
|
82
|
-
- "0.457734"
|
83
75
|
Transfer-Encoding:
|
84
76
|
- chunked
|
77
|
+
Date:
|
78
|
+
- Wed, 22 Aug 2012 14:23:26 GMT
|
85
79
|
X-Ua-Compatible:
|
86
80
|
- IE=Edge,chrome=1
|
87
|
-
|
88
|
-
-
|
81
|
+
Cache-Control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
X-Runtime:
|
84
|
+
- "0.302024"
|
85
|
+
Etag:
|
86
|
+
- "\"73e1639c74876d7e0b417dc5a5436d3f\""
|
87
|
+
X-Candlepin-Version:
|
88
|
+
- katello/0.2.44-1.el6
|
89
89
|
body:
|
90
|
-
string: "{\"marketing_product\":false,\"gpg_key_name\":\"\",\"sync_plan_id\":null,\"multiplier\":null,\"productContent\":[],\"sync_state\":\"not_synced\",\"last_sync\":null,\"updated_at\":\"2012-08-
|
90
|
+
string: "{\"marketing_product\":false,\"gpg_key_name\":\"\",\"sync_plan_id\":null,\"multiplier\":null,\"productContent\":[],\"sync_state\":\"not_synced\",\"last_sync\":null,\"updated_at\":\"2012-08-22T14:23:26Z\",\"multiplier\":null,\"name\":\"Test_product\",\"gpg_key_id\":null,\"description\":\"Test description\",\"sync_plan_name\":null,\"provider_id\":110,\"id\":\"1345645406527\",\"attributes\":[],\"created_at\":\"2012-08-22T14:23:26Z\"}"
|
91
91
|
http_version:
|
92
92
|
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
93
93
|
- request:
|
94
94
|
method: post
|
95
|
-
uri: https://10.11.230.105/katello/api/repositories?name=Test_Repo&organization_id=ACME_Corporation&product_id=
|
95
|
+
uri: https://10.11.230.105/katello/api/repositories?name=Test_Repo&organization_id=ACME_Corporation&product_id=1345645406527&url=http://repo.example.com/repos
|
96
96
|
body:
|
97
|
-
string: "{\"repository\":{\"
|
97
|
+
string: "{\"repository\":{\"product_id\":\"1345645406527\",\"name\":\"Test_Repo\",\"organization_id\":\"ACME_Corporation\",\"url\":\"http://repo.example.com/repos\"}}"
|
98
98
|
headers:
|
99
|
-
Content-Length:
|
100
|
-
- "139"
|
101
99
|
Content-Type:
|
102
100
|
- application/json
|
103
|
-
|
104
|
-
-
|
101
|
+
Content-Length:
|
102
|
+
- "139"
|
105
103
|
User-Agent:
|
106
104
|
- OAuth gem v0.4.6
|
107
105
|
Authorization:
|
108
|
-
- OAuth oauth_body_hash="
|
106
|
+
- OAuth oauth_body_hash="mw04K6nfTX6fkEM6gRVI8SLFx70%3D", oauth_consumer_key="cloud_forms", oauth_nonce="LhIlKdhfUslrhlnuHvxDqOASk61s5NvjzDfz1P2Lpg", oauth_signature="nXoln7UVi%2FZMI1GWWEm6Hv8K%2FYQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
109
107
|
Accept:
|
110
108
|
- "*/*"
|
109
|
+
Http-Katello-User:
|
110
|
+
- admin
|
111
111
|
response:
|
112
112
|
status:
|
113
113
|
code: 200
|
114
114
|
message: OK
|
115
115
|
headers:
|
116
|
-
X-Candlepin-Version:
|
117
|
-
- katello/0.2.44-1.el6
|
118
116
|
Content-Type:
|
119
117
|
- application/json; charset=utf-8
|
120
|
-
Cache-Control:
|
121
|
-
- max-age=0, private, must-revalidate
|
122
|
-
Etag:
|
123
|
-
- "\"bd4b16bf24f9f0464cf2d4dfdccac703\""
|
124
118
|
Server:
|
125
119
|
- thin 1.2.11 codename Bat-Shit Crazy
|
126
|
-
X-Runtime:
|
127
|
-
- "1.783701"
|
128
120
|
Transfer-Encoding:
|
129
121
|
- chunked
|
122
|
+
Date:
|
123
|
+
- Wed, 22 Aug 2012 14:23:26 GMT
|
130
124
|
X-Ua-Compatible:
|
131
125
|
- IE=Edge,chrome=1
|
132
|
-
|
133
|
-
-
|
126
|
+
Cache-Control:
|
127
|
+
- max-age=0, private, must-revalidate
|
128
|
+
X-Runtime:
|
129
|
+
- "1.779499"
|
130
|
+
Etag:
|
131
|
+
- "\"0da0d9aa257d611b95c3fe73f91f802f\""
|
132
|
+
X-Candlepin-Version:
|
133
|
+
- katello/0.2.44-1.el6
|
134
134
|
body:
|
135
|
-
string: "{\"last_sync\":null,\"gpg_key_name\":\"\",\"minor\":null,\"cp_label\":\"ACME_Corporation_Test_product_Test_Repo\",\"pulp_id\":\"ACME_Corporation-Test_product-Test_Repo\",\"id\":
|
135
|
+
string: "{\"last_sync\":null,\"gpg_key_name\":\"\",\"minor\":null,\"cp_label\":\"ACME_Corporation_Test_product_Test_Repo\",\"pulp_id\":\"ACME_Corporation-Test_product-Test_Repo\",\"id\":16,\"major\":null,\"environment_product_id\":42,\"updated_at\":\"2012-08-22T14:23:28Z\",\"package_count\":0,\"name\":\"Test_Repo\",\"gpg_key_id\":null,\"enabled\":true,\"created_at\":\"2012-08-22T14:23:28Z\"}"
|
136
136
|
http_version:
|
137
137
|
recorded_at: Wed, 01 Aug 2012 17:38:22 GMT
|
138
138
|
- request:
|
139
139
|
method: get
|
140
|
-
uri: https://10.11.230.105/katello/api/repositories/
|
140
|
+
uri: https://10.11.230.105/katello/api/repositories/16
|
141
141
|
body:
|
142
142
|
string: ""
|
143
143
|
headers:
|
144
|
-
Http-Katello-User:
|
145
|
-
- admin
|
146
144
|
User-Agent:
|
147
145
|
- OAuth gem v0.4.6
|
148
146
|
Authorization:
|
149
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
147
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="tTHKlLeVBYLYTbz9NmBVTOfbCw8CftFzKZI5Ken5Lo", oauth_signature="EbsFkC61CTv9e3B%2FMNzWjeYCFCw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842702", oauth_version="1.0"
|
150
148
|
Accept:
|
151
149
|
- application/json
|
150
|
+
Http-Katello-User:
|
151
|
+
- admin
|
152
152
|
response:
|
153
153
|
status:
|
154
154
|
code: 200
|
155
155
|
message: OK
|
156
156
|
headers:
|
157
|
-
X-Candlepin-Version:
|
158
|
-
- katello/0.2.44-1.el6
|
159
157
|
Content-Type:
|
160
158
|
- application/json; charset=utf-8
|
161
|
-
Cache-Control:
|
162
|
-
- max-age=0, private, must-revalidate
|
163
|
-
Etag:
|
164
|
-
- "\"acb3edeb96134f709ac6a76ec942de1f\""
|
165
159
|
Server:
|
166
160
|
- thin 1.2.11 codename Bat-Shit Crazy
|
167
|
-
X-Runtime:
|
168
|
-
- "0.162662"
|
169
161
|
Transfer-Encoding:
|
170
162
|
- chunked
|
163
|
+
Date:
|
164
|
+
- Wed, 22 Aug 2012 14:23:28 GMT
|
171
165
|
X-Ua-Compatible:
|
172
166
|
- IE=Edge,chrome=1
|
173
|
-
|
174
|
-
-
|
167
|
+
Cache-Control:
|
168
|
+
- max-age=0, private, must-revalidate
|
169
|
+
X-Runtime:
|
170
|
+
- "0.189365"
|
171
|
+
Etag:
|
172
|
+
- "\"cd2914a33b395cd36492dfdb2ed9abed\""
|
173
|
+
X-Candlepin-Version:
|
174
|
+
- katello/0.2.44-1.el6
|
175
175
|
body:
|
176
|
-
string: "{\"cp_label\":\"ACME_Corporation_Test_product_Test_Repo\",\"minor\":null,\"gpg_key_name\":\"\",\"packagegroupcategories\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/packagegroupcategories/\",\"last_sync\":null,\"distribution\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/distribution/\",\"next_scheduled_time\":null,\"checksum_type\":\"sha256\",\"comps\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/comps/\",\"relative_path\":\"ACME_Corporation/Library/custom/Test_product/Test_Repo\",\"filters\":[],\"consumer_cert\":null,\"pulp_id\":\"ACME_Corporation-Test_product-Test_Repo\",\"_id\":\"ACME_Corporation-Test_product-Test_Repo\",\"notes\":{},\"publish\":true,\"id\":
|
176
|
+
string: "{\"cp_label\":\"ACME_Corporation_Test_product_Test_Repo\",\"minor\":null,\"gpg_key_name\":\"\",\"packagegroupcategories\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/packagegroupcategories/\",\"last_sync\":null,\"distribution\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/distribution/\",\"next_scheduled_time\":null,\"checksum_type\":\"sha256\",\"comps\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/comps/\",\"relative_path\":\"ACME_Corporation/Library/custom/Test_product/Test_Repo\",\"filters\":[],\"consumer_cert\":null,\"pulp_id\":\"ACME_Corporation-Test_product-Test_Repo\",\"_id\":\"ACME_Corporation-Test_product-Test_Repo\",\"notes\":{},\"publish\":true,\"id\":16,\"consumer_ca\":null,\"environment_product_id\":42,\"major\":null,\"sync_options\":{},\"feed_ca\":null,\"arch\":\"noarch\",\"packagegroups\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/packagegroups/\",\"source\":{\"type\":\"remote\",\"url\":\"http://repo.example.com/repos\"},\"sync_state\":\"not_synced\",\"clone_ids\":[],\"uri\":\"https://calfonso-katello.usersys.redhat.com/pulp/repos/ACME_Corporation/Library/custom/Test_product/Test_Repo/\",\"uri_ref\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/\",\"packages\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/packages/\",\"updated_at\":\"2012-08-22T14:23:28Z\",\"files\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/files/\",\"preserve_metadata\":false,\"gpg_key_id\":null,\"name\":\"Test_Repo\",\"sync_schedule\":null,\"package_count\":0,\"content_types\":\"yum\",\"keys\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/keys/\",\"errata\":\"/pulp/api/repositories/ACME_Corporation-Test_product-Test_Repo/errata/\",\"feed_cert\":null,\"files_count\":69,\"created_at\":\"2012-08-22T14:23:28Z\",\"enabled\":true,\"groupid\":[\"product:1345645406527\",\"env:1\",\"org:1\",\"content:1345645408307\"],\"distributionid\":[]}"
|
177
177
|
http_version:
|
178
178
|
recorded_at: Wed, 01 Aug 2012 17:38:22 GMT
|
179
179
|
- request:
|
180
180
|
method: delete
|
181
|
-
uri: https://10.11.230.105/katello/api/repositories/
|
181
|
+
uri: https://10.11.230.105/katello/api/repositories/16
|
182
182
|
body:
|
183
183
|
string: ""
|
184
184
|
headers:
|
185
|
-
Http-Katello-User:
|
186
|
-
- admin
|
187
185
|
User-Agent:
|
188
186
|
- OAuth gem v0.4.6
|
189
187
|
Authorization:
|
190
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
188
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="8SWFPb1G9ci3UWnk5m0nMOOeEN8FfDXDkaX80z4bRA", oauth_signature="fnGnfD22M2%2Bt3gQKTsL8TK6l3zM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842702", oauth_version="1.0"
|
191
189
|
Accept:
|
192
190
|
- application/json
|
191
|
+
Http-Katello-User:
|
192
|
+
- admin
|
193
193
|
response:
|
194
194
|
status:
|
195
195
|
code: 200
|
196
196
|
message: OK
|
197
197
|
headers:
|
198
|
-
X-Candlepin-Version:
|
199
|
-
- katello/0.2.44-1.el6
|
200
198
|
Content-Type:
|
201
199
|
- application/json; charset=utf-8
|
202
|
-
Cache-Control:
|
203
|
-
- max-age=0, private, must-revalidate
|
204
|
-
Etag:
|
205
|
-
- "\"af0516000c75ee39ac3cace5e702d991\""
|
206
200
|
Server:
|
207
201
|
- thin 1.2.11 codename Bat-Shit Crazy
|
208
|
-
X-Runtime:
|
209
|
-
- "0.522845"
|
210
202
|
Transfer-Encoding:
|
211
203
|
- chunked
|
204
|
+
Date:
|
205
|
+
- Wed, 22 Aug 2012 14:23:28 GMT
|
212
206
|
X-Ua-Compatible:
|
213
207
|
- IE=Edge,chrome=1
|
214
|
-
|
215
|
-
-
|
208
|
+
Cache-Control:
|
209
|
+
- max-age=0, private, must-revalidate
|
210
|
+
X-Runtime:
|
211
|
+
- "0.453600"
|
212
|
+
Etag:
|
213
|
+
- "\"ce3263d2546ca2dbbbfad3600bdc6627\""
|
214
|
+
X-Candlepin-Version:
|
215
|
+
- katello/0.2.44-1.el6
|
216
216
|
body:
|
217
|
-
string: Deleted repository '
|
217
|
+
string: Deleted repository '16'
|
218
218
|
http_version:
|
219
219
|
recorded_at: Wed, 01 Aug 2012 17:38:23 GMT
|
220
220
|
- request:
|
221
221
|
method: delete
|
222
|
-
uri: https://10.11.230.105/katello/api/providers/
|
222
|
+
uri: https://10.11.230.105/katello/api/providers/110
|
223
223
|
body:
|
224
224
|
string: ""
|
225
225
|
headers:
|
226
|
-
Http-Katello-User:
|
227
|
-
- admin
|
228
226
|
User-Agent:
|
229
227
|
- OAuth gem v0.4.6
|
230
228
|
Authorization:
|
231
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
229
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="jz5EGMrqlOr0GjggUnBFOJvWlV3CLWL1ysZE80TsGk", oauth_signature="Z5fuUWFJ2JZ1q7Jynr1XYuJHIY0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842703", oauth_version="1.0"
|
232
230
|
Accept:
|
233
231
|
- application/json
|
232
|
+
Http-Katello-User:
|
233
|
+
- admin
|
234
234
|
response:
|
235
235
|
status:
|
236
236
|
code: 200
|
237
237
|
message: OK
|
238
238
|
headers:
|
239
|
-
X-Candlepin-Version:
|
240
|
-
- katello/0.2.44-1.el6
|
241
239
|
Content-Type:
|
242
240
|
- application/json; charset=utf-8
|
243
|
-
Cache-Control:
|
244
|
-
- max-age=0, private, must-revalidate
|
245
|
-
Etag:
|
246
|
-
- "\"728712a61c5bf29dc38964dba52a259e\""
|
247
241
|
Server:
|
248
242
|
- thin 1.2.11 codename Bat-Shit Crazy
|
249
|
-
X-Runtime:
|
250
|
-
- "0.522474"
|
251
243
|
Transfer-Encoding:
|
252
244
|
- chunked
|
245
|
+
Date:
|
246
|
+
- Wed, 22 Aug 2012 14:23:29 GMT
|
253
247
|
X-Ua-Compatible:
|
254
248
|
- IE=Edge,chrome=1
|
255
|
-
|
256
|
-
-
|
249
|
+
Cache-Control:
|
250
|
+
- max-age=0, private, must-revalidate
|
251
|
+
X-Runtime:
|
252
|
+
- "1.069265"
|
253
|
+
Etag:
|
254
|
+
- "\"728712a61c5bf29dc38964dba52a259e\""
|
255
|
+
X-Candlepin-Version:
|
256
|
+
- katello/0.2.44-1.el6
|
257
257
|
body:
|
258
258
|
string: Deleted provider [ test_provider_name ]
|
259
259
|
http_version:
|
260
|
-
recorded_at: Wed, 01 Aug 2012 17:38:
|
260
|
+
recorded_at: Wed, 01 Aug 2012 17:38:24 GMT
|
261
261
|
recorded_with: VCR 2.2.4
|