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,39 +6,39 @@ 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="5jb3N5VZMcB9fzeYl1spRqIPNXJVdtLewCnUjFNll0", oauth_signature="72AvnD8afRNnePmn6r2Lyzf2cCM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645397", 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
|
-
- "\"379072b2370f9a967d92e2999ae8d266\""
|
30
24
|
Server:
|
31
25
|
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
-
X-Runtime:
|
33
|
-
- "0.077451"
|
34
26
|
Transfer-Encoding:
|
35
27
|
- chunked
|
28
|
+
Date:
|
29
|
+
- Wed, 22 Aug 2012 14:23:16 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.184374"
|
36
|
+
Etag:
|
37
|
+
- "\"379072b2370f9a967d92e2999ae8d266\""
|
38
|
+
X-Candlepin-Version:
|
39
|
+
- katello/0.2.44-1.el6
|
40
40
|
body:
|
41
41
|
string: "[{\"service_levels\":[],\"task_id\":null,\"id\":1,\"updated_at\":\"2012-08-09T14:52:28Z\",\"description\":\"Updated description\",\"name\":\"ACME_Corporation\",\"cp_key\":\"ACME_Corporation\",\"created_at\":\"2012-07-02T18:47:39Z\"}]"
|
42
42
|
http_version:
|
43
|
-
recorded_at:
|
43
|
+
recorded_at: Wed, 22 Aug 2012 14:23:17 GMT
|
44
44
|
recorded_with: VCR 2.2.4
|
@@ -6,37 +6,37 @@ 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="yoXlIGhnJJtgQTW42H58SJKIuFDN0hoFOwuzYHZK5Ac", oauth_signature="Gnov0n4dfHAh5tJUljUDwotE0iI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", 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
|
-
- "\"379072b2370f9a967d92e2999ae8d266\""
|
30
24
|
Server:
|
31
25
|
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
-
X-Runtime:
|
33
|
-
- "0.076610"
|
34
26
|
Transfer-Encoding:
|
35
27
|
- chunked
|
28
|
+
Date:
|
29
|
+
- Wed, 22 Aug 2012 14:23:16 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.078436"
|
36
|
+
Etag:
|
37
|
+
- "\"379072b2370f9a967d92e2999ae8d266\""
|
38
|
+
X-Candlepin-Version:
|
39
|
+
- katello/0.2.44-1.el6
|
40
40
|
body:
|
41
41
|
string: "[{\"service_levels\":[],\"task_id\":null,\"id\":1,\"updated_at\":\"2012-08-09T14:52:28Z\",\"description\":\"Updated description\",\"name\":\"ACME_Corporation\",\"cp_key\":\"ACME_Corporation\",\"created_at\":\"2012-07-02T18:47:39Z\"}]"
|
42
42
|
http_version:
|
@@ -6,125 +6,125 @@ 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="ssaO8wVVH40QekS229GYRosR2UvJKGOKvpsf5vcx1uA", oauth_signature="TtfYRVILSddOvRqus50JXF5bSQU%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645397", 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
|
-
- "\"379072b2370f9a967d92e2999ae8d266\""
|
30
24
|
Server:
|
31
25
|
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
-
X-Runtime:
|
33
|
-
- "0.079686"
|
34
26
|
Transfer-Encoding:
|
35
27
|
- chunked
|
28
|
+
Date:
|
29
|
+
- Wed, 22 Aug 2012 14:23:16 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.060995"
|
36
|
+
Etag:
|
37
|
+
- "\"379072b2370f9a967d92e2999ae8d266\""
|
38
|
+
X-Candlepin-Version:
|
39
|
+
- katello/0.2.44-1.el6
|
40
40
|
body:
|
41
41
|
string: "[{\"service_levels\":[],\"task_id\":null,\"id\":1,\"updated_at\":\"2012-08-09T14:52:28Z\",\"description\":\"Updated description\",\"name\":\"ACME_Corporation\",\"cp_key\":\"ACME_Corporation\",\"created_at\":\"2012-07-02T18:47:39Z\"}]"
|
42
42
|
http_version:
|
43
|
-
recorded_at:
|
43
|
+
recorded_at: Wed, 22 Aug 2012 14:23:17 GMT
|
44
44
|
- request:
|
45
45
|
method: put
|
46
46
|
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation
|
47
47
|
body:
|
48
48
|
string: "{\"organization\":{\"name\":\"ACME_Corporation\",\"description\":\"Updated description\"}}"
|
49
49
|
headers:
|
50
|
-
Content-Length:
|
51
|
-
- "80"
|
52
50
|
Content-Type:
|
53
51
|
- application/json
|
54
|
-
|
55
|
-
-
|
52
|
+
Content-Length:
|
53
|
+
- "80"
|
56
54
|
User-Agent:
|
57
55
|
- OAuth gem v0.4.6
|
58
56
|
Authorization:
|
59
|
-
- OAuth oauth_body_hash="OBvEpYrXi2TFwKS4OFEW9QsDjZA%3D", oauth_consumer_key="cloud_forms", oauth_nonce="
|
57
|
+
- OAuth oauth_body_hash="OBvEpYrXi2TFwKS4OFEW9QsDjZA%3D", oauth_consumer_key="cloud_forms", oauth_nonce="B1kfURpyrJjljT2uYax2EFRG9tv8aL6I2IaYGyUiJgs", oauth_signature="vuEGK9EMD04GjA3dpG%2F2t94Mj%2Bs%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645397", 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
|
-
- "\"b326b5062b2f0e69046810717534cb09\""
|
75
69
|
Server:
|
76
70
|
- thin 1.2.11 codename Bat-Shit Crazy
|
77
|
-
X-Runtime:
|
78
|
-
- "0.211000"
|
79
71
|
Transfer-Encoding:
|
80
72
|
- chunked
|
73
|
+
Date:
|
74
|
+
- Wed, 22 Aug 2012 14:23:17 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.089368"
|
81
|
+
Etag:
|
82
|
+
- "\"b326b5062b2f0e69046810717534cb09\""
|
83
|
+
X-Candlepin-Version:
|
84
|
+
- katello/0.2.44-1.el6
|
85
85
|
body:
|
86
86
|
string: "true"
|
87
87
|
http_version:
|
88
|
-
recorded_at:
|
88
|
+
recorded_at: Wed, 22 Aug 2012 14:23:17 GMT
|
89
89
|
- request:
|
90
90
|
method: get
|
91
91
|
uri: https://10.11.230.105/katello/api/organizations
|
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="L1HoFm4Tk9rXihGUIbDbsfL9VU0d4TCUuPUQ8qxnxUg", oauth_signature="xk4OVeXekDLQ2znkABm3QAvM4tc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645397", 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
|
-
- "\"379072b2370f9a967d92e2999ae8d266\""
|
116
110
|
Server:
|
117
111
|
- thin 1.2.11 codename Bat-Shit Crazy
|
118
|
-
X-Runtime:
|
119
|
-
- "0.066602"
|
120
112
|
Transfer-Encoding:
|
121
113
|
- chunked
|
114
|
+
Date:
|
115
|
+
- Wed, 22 Aug 2012 14:23:17 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.073546"
|
122
|
+
Etag:
|
123
|
+
- "\"379072b2370f9a967d92e2999ae8d266\""
|
124
|
+
X-Candlepin-Version:
|
125
|
+
- katello/0.2.44-1.el6
|
126
126
|
body:
|
127
127
|
string: "[{\"service_levels\":[],\"task_id\":null,\"id\":1,\"updated_at\":\"2012-08-09T14:52:28Z\",\"description\":\"Updated description\",\"name\":\"ACME_Corporation\",\"cp_key\":\"ACME_Corporation\",\"created_at\":\"2012-07-02T18:47:39Z\"}]"
|
128
128
|
http_version:
|
129
|
-
recorded_at:
|
129
|
+
recorded_at: Wed, 22 Aug 2012 14:23:18 GMT
|
130
130
|
recorded_with: VCR 2.2.4
|
@@ -6,39 +6,39 @@ 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="Wj4rxQ90FHZz0UZowqt32dLWzjiMBcy0Xmflby1eqk", oauth_signature="luMAbDIlauKv8vDkp%2FnZg%2Fdh6yw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", 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
|
-
- "\"efb2bfd71ef5f3cde147e1dcbd96a9c0\""
|
30
24
|
Server:
|
31
25
|
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
-
X-Runtime:
|
33
|
-
- "0.021125"
|
34
26
|
Transfer-Encoding:
|
35
27
|
- chunked
|
28
|
+
Date:
|
29
|
+
- Wed, 22 Aug 2012 14:23:24 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.019643"
|
36
|
+
Etag:
|
37
|
+
- "\"e0667165d4885b1551c7cdcac747beda\""
|
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:21:42Z\",\"description\":null,\"name\":\"Red Hat\",\"created_at\":\"2012-07-02T18:47:39Z\",\"repository_url\":\"https://cdn.redhat.com\"}"
|
42
42
|
http_version:
|
43
43
|
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
44
44
|
recorded_with: VCR 2.2.4
|
@@ -6,39 +6,39 @@ 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="LlHK3AzSa3PhEff9QVupxzsHjG4SPwaekiJoJyseaM", oauth_signature="i8BjV3ILks%2F1viqR1pkEf8%2F4EOs%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645405", 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
|
-
- "\"f7c1a33504b2f6c78b0c2e0a9e10d106\""
|
30
24
|
Server:
|
31
25
|
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
-
X-Runtime:
|
33
|
-
- "0.034598"
|
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.146996"
|
36
|
+
Etag:
|
37
|
+
- "\"4bbd4c6655efcbfcf897771b482798a2\""
|
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:21:42Z\",\"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:25 GMT
|
44
44
|
recorded_with: VCR 2.2.4
|
@@ -4,90 +4,90 @@ 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="yCkBzdtbgGdv9o88cwHII7OLLlgK0RuOZ9C1PQBRgM", oauth_signature="ZYJFPyc9%2BLsyhr09RsGlLt9y%2F3w%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
|
-
- "\"e249ec9e6769b5fdc74dead1fea31e6e\""
|
34
28
|
Server:
|
35
29
|
- thin 1.2.11 codename Bat-Shit Crazy
|
36
|
-
X-Runtime:
|
37
|
-
- "0.168367"
|
38
30
|
Transfer-Encoding:
|
39
31
|
- chunked
|
32
|
+
Date:
|
33
|
+
- Wed, 22 Aug 2012 14:23:22 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.048454"
|
40
|
+
Etag:
|
41
|
+
- "\"964a4eb61a795a5d42c2e7a2ef0fa12c\""
|
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\":108,\"task_status_id\":null,\"organization_id\":1,\"sync_state\":\"not_synced\",\"last_sync\":null,\"updated_at\":\"2012-08-22T14:23:22Z\",\"description\":\"Test provider description\",\"name\":\"test_provider_name\",\"created_at\":\"2012-08-22T14:23:22Z\",\"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/108/product_create?description=Test%20description&name=Test_product&provider_id=108
|
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="8Q6AK8Vlwm7snIwz6zF8S9OIICTPsG3RceUGiAMxd9w", oauth_signature="JtJeKbRmiUlpJ6tXSZFauBMFpqA%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
|
-
- "\"cecde3d78bc4b976828a52eeeb9d2e51\""
|
79
73
|
Server:
|
80
74
|
- thin 1.2.11 codename Bat-Shit Crazy
|
81
|
-
X-Runtime:
|
82
|
-
- "0.308247"
|
83
75
|
Transfer-Encoding:
|
84
76
|
- chunked
|
77
|
+
Date:
|
78
|
+
- Wed, 22 Aug 2012 14:23:22 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.480504"
|
85
|
+
Etag:
|
86
|
+
- "\"cc62b598091e58eb2b3187915c705d38\""
|
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:22Z\",\"multiplier\":null,\"name\":\"Test_product\",\"gpg_key_id\":null,\"description\":\"Test description\",\"sync_plan_name\":null,\"provider_id\":108,\"id\":\"1345645402401\",\"attributes\":[],\"created_at\":\"2012-08-22T14:23:22Z\"}"
|
91
91
|
http_version:
|
92
92
|
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
93
93
|
- request:
|
@@ -96,119 +96,119 @@ http_interactions:
|
|
96
96
|
body:
|
97
97
|
string: ""
|
98
98
|
headers:
|
99
|
-
Http-Katello-User:
|
100
|
-
- admin
|
101
99
|
User-Agent:
|
102
100
|
- OAuth gem v0.4.6
|
103
101
|
Authorization:
|
104
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
102
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="BdwWQSFQBzg7g5c0WMJpJrDcHhPoicGuiopkJzECo", oauth_signature="KrFbxD%2Fzoy6KG3PeZlHuYrfhycQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
105
103
|
Accept:
|
106
104
|
- application/json
|
105
|
+
Http-Katello-User:
|
106
|
+
- admin
|
107
107
|
response:
|
108
108
|
status:
|
109
109
|
code: 200
|
110
110
|
message: OK
|
111
111
|
headers:
|
112
|
-
X-Candlepin-Version:
|
113
|
-
- katello/0.2.44-1.el6
|
114
112
|
Content-Type:
|
115
113
|
- application/json; charset=utf-8
|
116
|
-
Cache-Control:
|
117
|
-
- max-age=0, private, must-revalidate
|
118
|
-
Etag:
|
119
|
-
- "\"e7c58684ecca0aada0cabd883935d73f\""
|
120
114
|
Server:
|
121
115
|
- thin 1.2.11 codename Bat-Shit Crazy
|
122
|
-
X-Runtime:
|
123
|
-
- "0.071656"
|
124
116
|
Transfer-Encoding:
|
125
117
|
- chunked
|
118
|
+
Date:
|
119
|
+
- Wed, 22 Aug 2012 14:23:22 GMT
|
126
120
|
X-Ua-Compatible:
|
127
121
|
- IE=Edge,chrome=1
|
128
|
-
|
129
|
-
-
|
122
|
+
Cache-Control:
|
123
|
+
- max-age=0, private, must-revalidate
|
124
|
+
X-Runtime:
|
125
|
+
- "0.067946"
|
126
|
+
Etag:
|
127
|
+
- "\"57c6187faec9688842af4a80c02f6a98\""
|
128
|
+
X-Candlepin-Version:
|
129
|
+
- katello/0.2.44-1.el6
|
130
130
|
body:
|
131
|
-
string: "[{\"marketing_product\":false,\"gpg_key_name\":\"\",\"sync_plan_id\":null,\"multiplier\":1,\"productContent\":[],\"sync_state\":\"not_synced\",\"provider_name\":\"test_provider_name\",\"last_sync\":null,\"updated_at\":\"2012-08-
|
131
|
+
string: "[{\"marketing_product\":false,\"gpg_key_name\":\"\",\"sync_plan_id\":null,\"multiplier\":1,\"productContent\":[],\"sync_state\":\"not_synced\",\"provider_name\":\"test_provider_name\",\"last_sync\":null,\"updated_at\":\"2012-08-22T14:23:22Z\",\"multiplier\":1,\"name\":\"Test_product\",\"gpg_key_id\":null,\"description\":\"Test description\",\"sync_plan_name\":null,\"provider_id\":108,\"id\":\"1345645402401\",\"attributes\":[],\"created_at\":\"2012-08-22T14:23:22Z\"}]"
|
132
132
|
http_version:
|
133
133
|
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
134
134
|
- request:
|
135
135
|
method: delete
|
136
|
-
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/products/
|
136
|
+
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/products/1345645402401
|
137
137
|
body:
|
138
138
|
string: ""
|
139
139
|
headers:
|
140
|
-
Http-Katello-User:
|
141
|
-
- admin
|
142
140
|
User-Agent:
|
143
141
|
- OAuth gem v0.4.6
|
144
142
|
Authorization:
|
145
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
143
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="Cnz5bUJ1G1j1nAwT6dMA8mKVuL6JZgySBKaThJi0cIM", oauth_signature="tomRGMNT9oIdxeVQ9Be9N0YmIOM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
146
144
|
Accept:
|
147
145
|
- application/json
|
146
|
+
Http-Katello-User:
|
147
|
+
- admin
|
148
148
|
response:
|
149
149
|
status:
|
150
150
|
code: 200
|
151
151
|
message: OK
|
152
152
|
headers:
|
153
|
-
X-Candlepin-Version:
|
154
|
-
- katello/0.2.44-1.el6
|
155
153
|
Content-Type:
|
156
154
|
- application/json; charset=utf-8
|
157
|
-
Cache-Control:
|
158
|
-
- max-age=0, private, must-revalidate
|
159
|
-
Etag:
|
160
|
-
- "\"eb46d86bab73cf8eb7d4fb84defb5545\""
|
161
155
|
Server:
|
162
156
|
- thin 1.2.11 codename Bat-Shit Crazy
|
163
|
-
X-Runtime:
|
164
|
-
- "1.178776"
|
165
157
|
Transfer-Encoding:
|
166
158
|
- chunked
|
159
|
+
Date:
|
160
|
+
- Wed, 22 Aug 2012 14:23:22 GMT
|
167
161
|
X-Ua-Compatible:
|
168
162
|
- IE=Edge,chrome=1
|
169
|
-
|
170
|
-
-
|
163
|
+
Cache-Control:
|
164
|
+
- max-age=0, private, must-revalidate
|
165
|
+
X-Runtime:
|
166
|
+
- "0.900832"
|
167
|
+
Etag:
|
168
|
+
- "\"0ce9a8a7d0c7509c74de431d3faadd0b\""
|
169
|
+
X-Candlepin-Version:
|
170
|
+
- katello/0.2.44-1.el6
|
171
171
|
body:
|
172
|
-
string: Deleted product '
|
172
|
+
string: Deleted product '1345645402401'
|
173
173
|
http_version:
|
174
|
-
recorded_at: Wed, 01 Aug 2012 17:38:
|
174
|
+
recorded_at: Wed, 01 Aug 2012 17:38:21 GMT
|
175
175
|
- request:
|
176
176
|
method: delete
|
177
|
-
uri: https://10.11.230.105/katello/api/providers/
|
177
|
+
uri: https://10.11.230.105/katello/api/providers/108
|
178
178
|
body:
|
179
179
|
string: ""
|
180
180
|
headers:
|
181
|
-
Http-Katello-User:
|
182
|
-
- admin
|
183
181
|
User-Agent:
|
184
182
|
- OAuth gem v0.4.6
|
185
183
|
Authorization:
|
186
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
184
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="BPlymVaQ1Fu5m2UMxa3ymLXLtKPwwl9dKGY8t8Eeg", oauth_signature="3m2xeKEIiet%2Bs7Vi4wRw07NzmNg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842701", oauth_version="1.0"
|
187
185
|
Accept:
|
188
186
|
- application/json
|
187
|
+
Http-Katello-User:
|
188
|
+
- admin
|
189
189
|
response:
|
190
190
|
status:
|
191
191
|
code: 200
|
192
192
|
message: OK
|
193
193
|
headers:
|
194
|
-
X-Candlepin-Version:
|
195
|
-
- katello/0.2.44-1.el6
|
196
194
|
Content-Type:
|
197
195
|
- application/json; charset=utf-8
|
198
|
-
Cache-Control:
|
199
|
-
- max-age=0, private, must-revalidate
|
200
|
-
Etag:
|
201
|
-
- "\"728712a61c5bf29dc38964dba52a259e\""
|
202
196
|
Server:
|
203
197
|
- thin 1.2.11 codename Bat-Shit Crazy
|
204
|
-
X-Runtime:
|
205
|
-
- "0.045013"
|
206
198
|
Transfer-Encoding:
|
207
199
|
- chunked
|
200
|
+
Date:
|
201
|
+
- Wed, 22 Aug 2012 14:23:23 GMT
|
208
202
|
X-Ua-Compatible:
|
209
203
|
- IE=Edge,chrome=1
|
210
|
-
|
211
|
-
-
|
204
|
+
Cache-Control:
|
205
|
+
- max-age=0, private, must-revalidate
|
206
|
+
X-Runtime:
|
207
|
+
- "0.197843"
|
208
|
+
Etag:
|
209
|
+
- "\"728712a61c5bf29dc38964dba52a259e\""
|
210
|
+
X-Candlepin-Version:
|
211
|
+
- katello/0.2.44-1.el6
|
212
212
|
body:
|
213
213
|
string: Deleted provider [ test_provider_name ]
|
214
214
|
http_version:
|
@@ -219,37 +219,37 @@ http_interactions:
|
|
219
219
|
body:
|
220
220
|
string: ""
|
221
221
|
headers:
|
222
|
-
Http-Katello-User:
|
223
|
-
- admin
|
224
222
|
User-Agent:
|
225
223
|
- OAuth gem v0.4.6
|
226
224
|
Authorization:
|
227
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
225
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="gquGGBaA9MWJOHuqb63vZoViYau9xY9aVWtrNnSvdE", oauth_signature="eLwXSlizrpPLcfQZ4%2FSOeTOhdec%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842702", oauth_version="1.0"
|
228
226
|
Accept:
|
229
227
|
- application/json
|
228
|
+
Http-Katello-User:
|
229
|
+
- admin
|
230
230
|
response:
|
231
231
|
status:
|
232
232
|
code: 200
|
233
233
|
message: OK
|
234
234
|
headers:
|
235
|
-
X-Candlepin-Version:
|
236
|
-
- katello/0.2.44-1.el6
|
237
235
|
Content-Type:
|
238
236
|
- application/json; charset=utf-8
|
239
|
-
Cache-Control:
|
240
|
-
- max-age=0, private, must-revalidate
|
241
|
-
Etag:
|
242
|
-
- "\"d751713988987e9331980363e24189ce\""
|
243
237
|
Server:
|
244
238
|
- thin 1.2.11 codename Bat-Shit Crazy
|
245
|
-
X-Runtime:
|
246
|
-
- "0.035369"
|
247
239
|
Transfer-Encoding:
|
248
240
|
- chunked
|
241
|
+
Date:
|
242
|
+
- Wed, 22 Aug 2012 14:23:24 GMT
|
249
243
|
X-Ua-Compatible:
|
250
244
|
- IE=Edge,chrome=1
|
251
|
-
|
252
|
-
-
|
245
|
+
Cache-Control:
|
246
|
+
- max-age=0, private, must-revalidate
|
247
|
+
X-Runtime:
|
248
|
+
- "0.034691"
|
249
|
+
Etag:
|
250
|
+
- "\"d751713988987e9331980363e24189ce\""
|
251
|
+
X-Candlepin-Version:
|
252
|
+
- katello/0.2.44-1.el6
|
253
253
|
body:
|
254
254
|
string: "[]"
|
255
255
|
http_version:
|