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.
Files changed (76) hide show
  1. data/README.md +65 -3
  2. data/Rakefile +2 -4
  3. data/lib/deadwood/active_resource_oauth_client.rb +16 -8
  4. data/lib/deadwood/model/activation_key.rb +24 -8
  5. data/lib/deadwood/model/base.rb +16 -9
  6. data/lib/deadwood/model/changeset.rb +18 -10
  7. data/lib/deadwood/model/consumer.rb +16 -8
  8. data/lib/deadwood/model/crl.rb +16 -8
  9. data/lib/deadwood/model/entitlement.rb +16 -8
  10. data/lib/deadwood/model/environment.rb +22 -20
  11. data/lib/deadwood/model/errata.rb +16 -8
  12. data/lib/deadwood/model/gpg_key.rb +21 -16
  13. data/lib/deadwood/model/organization.rb +16 -8
  14. data/lib/deadwood/model/pool.rb +16 -8
  15. data/lib/deadwood/model/product.rb +22 -13
  16. data/lib/deadwood/model/provider.rb +18 -9
  17. data/lib/deadwood/model/repository.rb +16 -8
  18. data/lib/deadwood/model/role.rb +21 -14
  19. data/lib/deadwood/model/status.rb +16 -8
  20. data/lib/deadwood/model/subscription.rb +16 -8
  21. data/lib/deadwood/model/system.rb +18 -9
  22. data/lib/deadwood/model/system_group.rb +22 -13
  23. data/lib/deadwood/model/task.rb +16 -8
  24. data/lib/deadwood/model/template.rb +18 -9
  25. data/lib/deadwood/model/user.rb +16 -8
  26. data/lib/deadwood/model/version.rb +16 -8
  27. data/rake/rpmtask.rb +16 -13
  28. data/spec/models/activation_key_spec.rb +48 -8
  29. data/spec/models/base_spec.rb +16 -8
  30. data/spec/models/changeset_spec.rb +16 -8
  31. data/spec/models/crl_spec.rb +16 -8
  32. data/spec/models/environment_spec.rb +16 -8
  33. data/spec/models/gpg_key_spec.rb +16 -8
  34. data/spec/models/organization_spec.rb +16 -8
  35. data/spec/models/product_spec.rb +16 -8
  36. data/spec/models/provider_spec.rb +16 -8
  37. data/spec/models/repository_spec.rb +16 -8
  38. data/spec/models/role_spec.rb +16 -8
  39. data/spec/models/system_group_spec.rb +16 -8
  40. data/spec/models/task_spec.rb +16 -8
  41. data/spec/models/template_spec.rb +16 -8
  42. data/spec/models/user_spec.rb +16 -8
  43. data/spec/spec_helper.rb +15 -21
  44. data/spec/vcr/cassettes/create_activation_key.yml +91 -91
  45. data/spec/vcr/cassettes/create_changeset.yml +93 -93
  46. data/spec/vcr/cassettes/create_find_all_environment.yml +45 -45
  47. data/spec/vcr/cassettes/create_find_by_id_activation_key.yml +214 -0
  48. data/spec/vcr/cassettes/create_find_single_environment.yml +49 -49
  49. data/spec/vcr/cassettes/create_gpg_key.yml +64 -64
  50. data/spec/vcr/cassettes/create_provider_for_default_org.yml +63 -63
  51. data/spec/vcr/cassettes/create_repository.yml +98 -98
  52. data/spec/vcr/cassettes/create_role.yml +46 -46
  53. data/spec/vcr/cassettes/create_system.yml +59 -59
  54. data/spec/vcr/cassettes/create_template.yml +86 -86
  55. data/spec/vcr/cassettes/create_update_activation_key.yml +345 -0
  56. data/spec/vcr/cassettes/create_user.yml +48 -48
  57. data/spec/vcr/cassettes/create_user_role.yml +103 -103
  58. data/spec/vcr/cassettes/find_ACME_Corporation.yml +14 -14
  59. data/spec/vcr/cassettes/find_admin.yml +14 -14
  60. data/spec/vcr/cassettes/find_crl.yml +22 -22
  61. data/spec/vcr/cassettes/find_template.yml +13 -13
  62. data/spec/vcr/cassettes/find_users.yml +13 -13
  63. data/spec/vcr/cassettes/organization_1_exists.yml +28 -28
  64. data/spec/vcr/cassettes/organization_create.yml +46 -46
  65. data/spec/vcr/cassettes/organization_default_exists.yml +14 -14
  66. data/spec/vcr/cassettes/organization_exists.yml +13 -13
  67. data/spec/vcr/cassettes/organization_update.yml +44 -44
  68. data/spec/vcr/cassettes/provider_1_exists.yml +14 -14
  69. data/spec/vcr/cassettes/providers_all_exists.yml +15 -15
  70. data/spec/vcr/cassettes/read_products.yml +92 -92
  71. data/spec/vcr/cassettes/update_environment_name_description.yml +83 -83
  72. data/spec/vcr/cassettes/update_provider_for_org.yml +64 -64
  73. data/spec/vcr/cassettes/update_role.yml +67 -67
  74. data/spec/vcr/cassettes/update_user.yml +48 -48
  75. data/spec/vcr_setup.rb +16 -23
  76. metadata +8 -32
@@ -4,172 +4,172 @@ http_interactions:
4
4
  method: post
5
5
  uri: https://10.11.230.105/katello/api/roles?description=test%20role%20description&name=test_role_name
6
6
  body:
7
- string: "{\"role\":{\"description\":\"test role description\",\"name\":\"test_role_name\"}}"
7
+ string: "{\"role\":{\"name\":\"test_role_name\",\"description\":\"test role description\"}}"
8
8
  headers:
9
- Content-Length:
10
- - "72"
11
9
  Content-Type:
12
10
  - application/json
13
- Http-Katello-User:
14
- - admin
11
+ Content-Length:
12
+ - "72"
15
13
  User-Agent:
16
14
  - OAuth gem v0.4.6
17
15
  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"
16
+ - OAuth oauth_body_hash="nXWLLsK4lEwHyDf8IykUdry02q4%3D", oauth_consumer_key="cloud_forms", oauth_nonce="DtOSl84jLwWkggDqREyLO5OBoZPdHGdEDZ4cm0NLc", oauth_signature="kXTrwG71ZxQ4P9mHIyxgAI7wCrI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645413", 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
- - "\"5318c74154d215a6728de0bde27eb770\""
34
28
  Server:
35
29
  - thin 1.2.11 codename Bat-Shit Crazy
36
- X-Runtime:
37
- - "0.041841"
38
30
  Transfer-Encoding:
39
31
  - chunked
32
+ Date:
33
+ - Wed, 22 Aug 2012 14:23:32 GMT
40
34
  X-Ua-Compatible:
41
35
  - IE=Edge,chrome=1
42
- Date:
43
- - Mon, 20 Aug 2012 18:22:21 GMT
36
+ Cache-Control:
37
+ - max-age=0, private, must-revalidate
38
+ X-Runtime:
39
+ - "0.042182"
40
+ Etag:
41
+ - "\"2f2c69adbf1dca5819d11b3a32577614\""
42
+ X-Candlepin-Version:
43
+ - katello/0.2.44-1.el6
44
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\"}"
45
+ string: "{\"id\":69,\"updated_at\":\"2012-08-22T14:23:32Z\",\"name\":\"test_role_name\",\"description\":\"test role description\",\"locked\":false,\"created_at\":\"2012-08-22T14:23:32Z\"}"
46
46
  http_version:
47
- recorded_at: Mon, 20 Aug 2012 18:22:21 GMT
47
+ recorded_at: Wed, 22 Aug 2012 14:23:33 GMT
48
48
  - request:
49
49
  method: get
50
50
  uri: https://10.11.230.105/katello/api/roles
51
51
  body:
52
52
  string: ""
53
53
  headers:
54
- Http-Katello-User:
55
- - admin
56
54
  User-Agent:
57
55
  - OAuth gem v0.4.6
58
56
  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"
57
+ - OAuth oauth_consumer_key="cloud_forms", oauth_nonce="s7pfvB2jL7PuJYmZTV2vcy20yTPsx573pYZVvlmMI", oauth_signature="%2B0vikNuW5EsHDZ5qy3wvk7BdLd4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645413", oauth_version="1.0"
60
58
  Accept:
61
59
  - application/json
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
- - "\"7516be2ca1d231f87733db09daa374c8\""
75
69
  Server:
76
70
  - thin 1.2.11 codename Bat-Shit Crazy
77
- X-Runtime:
78
- - "0.150961"
79
71
  Transfer-Encoding:
80
72
  - chunked
73
+ Date:
74
+ - Wed, 22 Aug 2012 14:23:32 GMT
81
75
  X-Ua-Compatible:
82
76
  - IE=Edge,chrome=1
83
- Date:
84
- - Mon, 20 Aug 2012 18:22:21 GMT
77
+ Cache-Control:
78
+ - max-age=0, private, must-revalidate
79
+ X-Runtime:
80
+ - "0.021425"
81
+ Etag:
82
+ - "\"dcc84cf8bd818d07d14cb515b50f26ca\""
83
+ X-Candlepin-Version:
84
+ - katello/0.2.44-1.el6
85
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\"}]"
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\":69,\"updated_at\":\"2012-08-22T14:23:32Z\",\"name\":\"test_role_name\",\"description\":\"test role description\",\"locked\":false,\"created_at\":\"2012-08-22T14:23:32Z\"}]"
87
87
  http_version:
88
- recorded_at: Mon, 20 Aug 2012 18:22:22 GMT
88
+ recorded_at: Wed, 22 Aug 2012 14:23:33 GMT
89
89
  - request:
90
90
  method: put
91
- uri: https://10.11.230.105/katello/api/roles/57
91
+ uri: https://10.11.230.105/katello/api/roles/69
92
92
  body:
93
93
  string: "{\"role\":{\"name\":\"test_role_name_updated\",\"description\":\"test role description\"}}"
94
94
  headers:
95
- Content-Length:
96
- - "80"
97
95
  Content-Type:
98
96
  - application/json
99
- Http-Katello-User:
100
- - admin
97
+ Content-Length:
98
+ - "80"
101
99
  User-Agent:
102
100
  - OAuth gem v0.4.6
103
101
  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"
102
+ - OAuth oauth_body_hash="x7IVi%2BfXZuOPS4PP8%2FNykxvChGc%3D", oauth_consumer_key="cloud_forms", oauth_nonce="5RwqwWZitZjrqgLlxz1yfB0Wq7F4vGFkFUZQyU2KEk", oauth_signature="HGp%2FNwrBJzaLMLpXlj2ZypLNko4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645413", oauth_version="1.0"
105
103
  Accept:
106
104
  - "*/*"
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
- - "\"99d3e13e446df8510ba64d2b9371e390\""
120
114
  Server:
121
115
  - thin 1.2.11 codename Bat-Shit Crazy
122
- X-Runtime:
123
- - "0.055138"
124
116
  Transfer-Encoding:
125
117
  - chunked
118
+ Date:
119
+ - Wed, 22 Aug 2012 14:23:32 GMT
126
120
  X-Ua-Compatible:
127
121
  - IE=Edge,chrome=1
128
- Date:
129
- - Mon, 20 Aug 2012 18:22:21 GMT
122
+ Cache-Control:
123
+ - max-age=0, private, must-revalidate
124
+ X-Runtime:
125
+ - "0.046450"
126
+ Etag:
127
+ - "\"4ef0807589610745e9869c412af19b38\""
128
+ X-Candlepin-Version:
129
+ - katello/0.2.44-1.el6
130
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\"}"
131
+ string: "{\"id\":69,\"updated_at\":\"2012-08-22T14:23:32Z\",\"name\":\"test_role_name_updated\",\"description\":\"test role description\",\"locked\":false,\"created_at\":\"2012-08-22T14:23:32Z\"}"
132
132
  http_version:
133
- recorded_at: Mon, 20 Aug 2012 18:22:22 GMT
133
+ recorded_at: Wed, 22 Aug 2012 14:23:33 GMT
134
134
  - request:
135
135
  method: delete
136
- uri: https://10.11.230.105/katello/api/roles/57
136
+ uri: https://10.11.230.105/katello/api/roles/69
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="xxcgmIrdnLARyYYCPLyjdjJEQcLztfVT1ffxAgtAbI", oauth_signature="KzXWAFCGBfXZt71OB0XZAwMl84Q%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486942", oauth_version="1.0"
143
+ - OAuth oauth_consumer_key="cloud_forms", oauth_nonce="2bw1Oq82zdWXWltyX84ZLimR598t4onDgtKfvSt80", oauth_signature="dXyzvGISg5amNDmpMfS5GJr0yaI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645413", 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
- - "\"8677cc37763ea94b67a0084eabec0802\""
161
155
  Server:
162
156
  - thin 1.2.11 codename Bat-Shit Crazy
163
- X-Runtime:
164
- - "0.030141"
165
157
  Transfer-Encoding:
166
158
  - chunked
159
+ Date:
160
+ - Wed, 22 Aug 2012 14:23:32 GMT
167
161
  X-Ua-Compatible:
168
162
  - IE=Edge,chrome=1
169
- Date:
170
- - Mon, 20 Aug 2012 18:22:21 GMT
163
+ Cache-Control:
164
+ - max-age=0, private, must-revalidate
165
+ X-Runtime:
166
+ - "0.025490"
167
+ Etag:
168
+ - "\"7847935f0c1e68062812ced9cae4cd41\""
169
+ X-Candlepin-Version:
170
+ - katello/0.2.44-1.el6
171
171
  body:
172
- string: Deleted role '57'
172
+ string: Deleted role '69'
173
173
  http_version:
174
- recorded_at: Mon, 20 Aug 2012 18:22:22 GMT
174
+ recorded_at: Wed, 22 Aug 2012 14:23:33 GMT
175
175
  recorded_with: VCR 2.2.4
@@ -6,125 +6,125 @@ http_interactions:
6
6
  body:
7
7
  string: ""
8
8
  headers:
9
- Content-Length:
10
- - "0"
11
9
  Content-Type:
12
10
  - application/json
13
- Http-Katello-User:
14
- - admin
11
+ Content-Length:
12
+ - "0"
15
13
  User-Agent:
16
14
  - OAuth gem v0.4.6
17
15
  Authorization:
18
- - OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="cloud_forms", oauth_nonce="L17SAYLpLIKjKDdxbOm0FFTZPyGMIKzMqZacW6kZZo", oauth_signature="g%2ByX%2ByDmNBbGZErISJW%2BrauHq60%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486931", oauth_version="1.0"
16
+ - OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="cloud_forms", oauth_nonce="qcOvCG9DnQcuWLszQnLvL6mr2j4EWjW4NBCuywoLo", oauth_signature="1ORkbYpa4vqVfEf7cj8Q9xq2gLk%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645401", 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
- - "\"f812abfc7ff147cf8feb490e75b8c539\""
34
28
  Server:
35
29
  - thin 1.2.11 codename Bat-Shit Crazy
36
- X-Runtime:
37
- - "0.402862"
38
30
  Transfer-Encoding:
39
31
  - chunked
32
+ Date:
33
+ - Wed, 22 Aug 2012 14:23:20 GMT
40
34
  X-Ua-Compatible:
41
35
  - IE=Edge,chrome=1
42
- Date:
43
- - Mon, 20 Aug 2012 18:22:10 GMT
36
+ Cache-Control:
37
+ - max-age=0, private, must-revalidate
38
+ X-Runtime:
39
+ - "0.609268"
40
+ Etag:
41
+ - "\"063e71e8f25157b469682647725b4bd0\""
42
+ X-Candlepin-Version:
43
+ - katello/0.2.44-1.el6
44
44
  body:
45
- string: "{\"password_reset_token\":null,\"password_reset_sent_at\":null,\"default_organization\":null,\"helptips_enabled\":true,\"disabled\":false,\"id\":30,\"default_environment\":null,\"own_role_id\":53,\"preferences\":{},\"updated_at\":\"2012-08-20T18:22:10Z\",\"password\":\"9f22f8bfb36ef7f0a5dff06815b8a5cc8c9b89e0df370d4f99415a5560cf2b90469bdd26add8b72f55885fcb930c910d4c30c3367dbd867efa42cbb310be1d676vPNRtjL2SAbn7BHnePay1vtgD180qFP345iVAbdH7oKEJWjqlVt28NJpRv9zKNY\",\"username\":\"funzo\",\"created_at\":\"2012-08-20T18:22:10Z\",\"email\":\"spam@example.com\",\"hidden\":false,\"page_size\":25}"
45
+ string: "{\"password_reset_token\":null,\"password_reset_sent_at\":null,\"default_organization\":null,\"helptips_enabled\":true,\"disabled\":false,\"id\":36,\"default_environment\":null,\"own_role_id\":65,\"preferences\":{},\"updated_at\":\"2012-08-22T14:23:21Z\",\"password\":\"160f37dff164884ae9c21463e92d8f5b3acfad92c0040f8b38746ffa1b332c5354ab2e26e58bf341079701a336d88c07e91be757ef07e6f31ffc49d85f40af5aY04UTWZkMrAkXx74jydt4wxDf6YCB6KefFuNunJ8MEKziNz2bvtTmREK4PBqOpd3\",\"username\":\"funzo\",\"created_at\":\"2012-08-22T14:23:21Z\",\"email\":\"spam@example.com\",\"hidden\":false,\"page_size\":25}"
46
46
  http_version:
47
- recorded_at: Mon, 20 Aug 2012 18:22:11 GMT
47
+ recorded_at: Wed, 22 Aug 2012 14:23:22 GMT
48
48
  - request:
49
49
  method: get
50
50
  uri: https://10.11.230.105/katello/api/users?username=funzo
51
51
  body:
52
52
  string: ""
53
53
  headers:
54
- Http-Katello-User:
55
- - admin
56
54
  User-Agent:
57
55
  - OAuth gem v0.4.6
58
56
  Authorization:
59
- - OAuth oauth_consumer_key="cloud_forms", oauth_nonce="dMTaKMf8VX1x0NoCfZgsPTQoD7zAha6rCWPtFU9qlTk", oauth_signature="IgM6h%2FwkcG1CD%2Fh9TJKxPRZOjLw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486931", oauth_version="1.0"
57
+ - OAuth oauth_consumer_key="cloud_forms", oauth_nonce="Ea0lIS0gts2EX3DSFcJ5VUmob8GZZsprJ0SFTnmE", oauth_signature="aXhn%2BFCSEj5CQuVnmCnndhLyO%2Bg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645402", oauth_version="1.0"
60
58
  Accept:
61
59
  - application/json
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
- - "\"b2de00a35df0f21bdc2725cd563ff5dc\""
75
69
  Server:
76
70
  - thin 1.2.11 codename Bat-Shit Crazy
77
- X-Runtime:
78
- - "0.037352"
79
71
  Transfer-Encoding:
80
72
  - chunked
73
+ Date:
74
+ - Wed, 22 Aug 2012 14:23:21 GMT
81
75
  X-Ua-Compatible:
82
76
  - IE=Edge,chrome=1
83
- Date:
84
- - Mon, 20 Aug 2012 18:22:10 GMT
77
+ Cache-Control:
78
+ - max-age=0, private, must-revalidate
79
+ X-Runtime:
80
+ - "0.048548"
81
+ Etag:
82
+ - "\"d95042d7e64a9f4f0fd94eafcf10c541\""
83
+ X-Candlepin-Version:
84
+ - katello/0.2.44-1.el6
85
85
  body:
86
- string: "[{\"password_reset_token\":null,\"password_reset_sent_at\":null,\"default_organization\":null,\"helptips_enabled\":true,\"disabled\":false,\"id\":30,\"default_environment\":null,\"own_role_id\":53,\"preferences\":{},\"updated_at\":\"2012-08-20T18:22:10Z\",\"password\":\"9f22f8bfb36ef7f0a5dff06815b8a5cc8c9b89e0df370d4f99415a5560cf2b90469bdd26add8b72f55885fcb930c910d4c30c3367dbd867efa42cbb310be1d676vPNRtjL2SAbn7BHnePay1vtgD180qFP345iVAbdH7oKEJWjqlVt28NJpRv9zKNY\",\"username\":\"funzo\",\"created_at\":\"2012-08-20T18:22:10Z\",\"email\":\"spam@example.com\",\"hidden\":false,\"page_size\":25}]"
86
+ string: "[{\"password_reset_token\":null,\"password_reset_sent_at\":null,\"default_organization\":null,\"helptips_enabled\":true,\"disabled\":false,\"id\":36,\"default_environment\":null,\"own_role_id\":65,\"preferences\":{},\"updated_at\":\"2012-08-22T14:23:21Z\",\"password\":\"160f37dff164884ae9c21463e92d8f5b3acfad92c0040f8b38746ffa1b332c5354ab2e26e58bf341079701a336d88c07e91be757ef07e6f31ffc49d85f40af5aY04UTWZkMrAkXx74jydt4wxDf6YCB6KefFuNunJ8MEKziNz2bvtTmREK4PBqOpd3\",\"username\":\"funzo\",\"created_at\":\"2012-08-22T14:23:21Z\",\"email\":\"spam@example.com\",\"hidden\":false,\"page_size\":25}]"
87
87
  http_version:
88
- recorded_at: Mon, 20 Aug 2012 18:22:11 GMT
88
+ recorded_at: Wed, 22 Aug 2012 14:23:22 GMT
89
89
  - request:
90
90
  method: delete
91
- uri: https://10.11.230.105/katello/api/users/30
91
+ uri: https://10.11.230.105/katello/api/users/36
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="k5aOU5IEAPCCa0cltiKojTHHF7ZBkZurrbm4GC1p4", oauth_signature="OKLf0JftbXhed%2FuotYNDpo5Z0s4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345486931", oauth_version="1.0"
98
+ - OAuth oauth_consumer_key="cloud_forms", oauth_nonce="5es34n7HQRqyBi1bEMWBhmHD773v4G0ZNNynGX1IU", oauth_signature="R2x36Tx%2Bu6yL8Uwsj8wwxL%2BlxaM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1345645402", 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
- - "\"fbda0a836524f8edd5a2d42a4ce91b25\""
116
110
  Server:
117
111
  - thin 1.2.11 codename Bat-Shit Crazy
118
- X-Runtime:
119
- - "0.198074"
120
112
  Transfer-Encoding:
121
113
  - chunked
114
+ Date:
115
+ - Wed, 22 Aug 2012 14:23:21 GMT
122
116
  X-Ua-Compatible:
123
117
  - IE=Edge,chrome=1
124
- Date:
125
- - Mon, 20 Aug 2012 18:22:10 GMT
118
+ Cache-Control:
119
+ - max-age=0, private, must-revalidate
120
+ X-Runtime:
121
+ - "0.211597"
122
+ Etag:
123
+ - "\"133944c8fce3f28c5fa788f57080c727\""
124
+ X-Candlepin-Version:
125
+ - katello/0.2.44-1.el6
126
126
  body:
127
- string: Deleted user '30'
127
+ string: Deleted user '36'
128
128
  http_version:
129
- recorded_at: Mon, 20 Aug 2012 18:22:11 GMT
129
+ recorded_at: Wed, 22 Aug 2012 14:23:22 GMT
130
130
  recorded_with: VCR 2.2.4
@@ -1,30 +1,23 @@
1
1
  # Copyright (c) 2012 Chris Alfonso
2
- # # Permission is hereby granted, free of charge, to any person obtaining a copy
3
- # of this software and associated documentation files (the "Software"), to deal
4
- # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5
- # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions:
6
- # # The above copyright notice and this permission notice shall be included in
7
- # all copies or substantial portions of the Software. #
8
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
10
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
11
- # THE SOFTWARE.
12
-
13
- #
14
- # Copyright 2011 Red Hat, Inc.
15
2
  #
16
- # Licensed under the Apache License, Version 2.0 (the "License");
17
- # you may not use this file except in compliance with the License.
18
- # You may obtain a copy of the License at
19
- #
20
- # http://www.apache.org/licenses/LICENSE-2.0
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
21
9
  #
22
- # Unless required by applicable law or agreed to in writing, software
23
- # distributed under the License is distributed on an "AS IS" BASIS,
24
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
- # See the License for the specific language governing permissions and
26
- # limitations under the License.
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
27
12
  #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
20
+
28
21
  require 'vcr'
29
22
  require 'oauth'
30
23
  require File.join(File.dirname(__FILE__), '../lib', 'deadwood')